Quantcast
Channel: WebPagetest Forums - All Forums
Viewing all 3879 articles
Browse latest View live

Why have my web so slow loading at start loading?


New GCE agents instances are not connecting to a private instance

$
0
0
- WPT server settings have not changed
- Agent instance template has not changed

As agents are preemptible they are recreated at east every 24 hrs.

Old agents are still connected while newly created agents are not showing on the server (both on getLocations, and getTesters)

Is that a known issue, any other idea?

How can I further debug/diagnose this issue?

Appreciate the help!

## UPDATE!
Agents are starting to connect (not sure if this was a GCE problem)
If I look at the the monitoring history of the instance I see that while it was not connected CPU was at steady 60% and network about idle. Once it connect CPU was much lower, and there was much network activity as expected.

I'm attaching an image...

Would still be helpful to have more insights about how to debug/diagnose an issue like that in the future.

Thanks again Smile

.png  Screen Shot 2019-01-23 at 15.33.54.png (Size: 52.69 KB / Downloads: 56)

Suggestion: Expose lighthouse options/enable scripting of node-lighthouse

$
0
0
I have a series of test cases that utilize localStorage and cookies for authentication. Right now, with the defaults automatically being applied the lighthouse testing built into WPT is useless since it clears storage by default. This leads to the test de-authing and the lighthouse score being based on an error page. I have worked around this locally by running the node version of lighthouse with cache disabled on the puppeteer instance and the clear storage flag set to false.

It would be great if we could also do something similar on WPT and otherwise specify which tests/options are enabled using the built-in browser version of webpagetest. It would be fantastic if we could track these numbers using the standard testing environment instead of having to caveat locally run test results due to machine differences.

test history respository

$
0
0
Hello,

I am running a private webpagetest server and agent. Its running fine but I lose the test history when restarting the container (running on K8s in GCP). How can I default the test history to a GCP bucket so that a restart doesn't lose the test history?

- Khalid

Running wpt server and agent with docker-compose

$
0
0
Hi,

I'm trying to setup a server and an agent using docker and docker-compose, both running on the same machine (my laptop). No matter how I set the compose file I cannot get the agent to show up in the Test Location combo. This is my locations.ini:

Quote:root@8a37986239aa:/var/www/html# cat settings/locations.ini
[locations]
1=Test_loc
default=Test_loc

[Test_loc]
1=Test
label="Test Location"
;group=Desktop

[Test]
browser=Chrome
label="Test Location"

When starting the containers with this docker-compose.yml file, mapping server's container port to a host port and exposing the agent's port:

Code:
version: "2.2"
services:
  wpt_server:
    #The Dockerfile just adds location.ini and server.ini
    build: .
    image: webpagetest/server:custom
    volumes:
      - ./volumes/wpt_data/dat:/var/www/html/dat
      - ./volumes/wpt_data/results:/var/www/html/results
      - ./volumes/wpt_data/logs:/var/www/html/logs
    ports:
      - 4000:80
  wpt_agent:
    image: webpagetest/agent:latest
    init: true
    environment:
      SERVER_URL: http://wpt_server/work/
      LOCATION: Test
      EXTRA_ARGS: "-m debug --checknet yes --log /debug.log -vvvv"
      NAME: "Docker Test"
    depends_on:
      - wpt_server
    cap_add:
      - NET_ADMIN


I get this error:

Code:
wpt_agent_1   | 03:22:06.880 - Resetting dropped connection: wpt_server
wpt_agent_1   | 03:22:06.881 - http://wpt_server:80 "GET /work/getwork.php?f=json&shards=1&reboot=1&location=Test&pc=Docker&version=18.10&screenwidth=1920&screenheight=1200&freedisk=0.760&upminutes=8866 HTTP/1.1" 400 422

And when also mapping agent port and using http://localhost:4000 instead of http://wpt_server for SERVER_URL:

Code:
version: "2.2"
services:
  wpt_server:
    build: .
    image: webpagetest/server:latest
    volumes:
      - ./volumes/wpt_data/dat:/var/www/html/dat
      - ./volumes/wpt_data/results:/var/www/html/results
      - ./volumes/wpt_data/logs:/var/www/html/logs
    ports:
      - 4000:80
  wpt_agent:
    image: webpagetest/agent:test
    init: true
    environment:
      SERVER_URL: http://localhost:4000/work/
      LOCATION: Test
      EXTRA_ARGS: "-m debug --checknet yes --log /debug.log -vvvv"
      NAME: "Docker Test"
    depends_on:
      - wpt_server
    cap_add:
      - NET_ADMIN
    ports:
      - 4001:80

From the agent side everything seems fine, I see on the the agent logs these messages that seems to mean that everything is working ok but not getting any work from the server ?

Code:
wpt_agent_1   | 04:21:00.931 - Checking for work: http://localhost:4000/work/getwork.php?f=json&shards=1&reboot=1&location=Test&pc=Docker&version=18.10&screenwidth=1920&screenheight=1200&freedisk=0.759&upminutes=8925
wpt_agent_1   | 04:21:00.933 - Starting new HTTP connection (1651): localhost:4000
wpt_agent_1   | 04:21:00.934 - Get Work Error: None
wpt_agent_1   | sudo: reboot: command not found

But still the agent does not show up on the Test Location combo and no errors on the server logs, I'm really clueless with what I'm missing. Any ideas ??

Thanks in advance.

Google Analytics Site Speed Differences

$
0
0
Hey. Wondering if anyone else has seen massive discrepancies between Google Analytics Site Speed (in GA, under behaviour > site speed). As a heads up, completely aware that different services have different measurements.

On our site, we're seeing avg. page loads of over 12 seconds, which is crazy. It's also really turbulent, when you break it down hourly, we sometimes have loads of over 100 seconds. But not matter what we do with testing through webpagetest, we're unable to get anything close to these speeds. On average through webpagetest we're getting times of around 4 seconds.

We've ruled out things like mobile connections, devices, locations, and really scratching our heads here.

Has anyone experienced anything similar? Did you manage to find the cause?

Do you think this site speed is good?

new aws privte instance

$
0
0
Deploying new aws private instance is running.

however most of the test are hung at Waiting at the front of the queue....

also cannot login to the instance .what is the id to use .

Does it require internet connection .

Regards,
Zaki

strange event order: 1. DOM inter. 2. Doc complete 3. RUM FP 4. Starts render

$
0
0
[Image: 0FE83m4.png]

My event order is:
  1. DOM interactive
  2. Document complete
  3. RUM First Paint
  4. Starts render

Shouldn't it be:

  1. RUM First Paint || Starts render
  2. DOM interactive
  3. Document complete

Why do I have such strange order of events?

how to speed up requests from other end of planet?

$
0
0
My server is in Europe. When user from Japan or Australia comes, there is almost 500ms SSL handshake.

On the other site, Google Analytics has still short SSL handshake. How does Google do it. What is the technique?

[Image: 3iLzAU0.png]

My idea is to use dedicated hosting for each significant region (Europe, North America, SE Asia) and then what... I don't know what to search for.

Site slower after switching to HTTP2

$
0
0
Hi ,

Site is https://www.czarfloors.com
Our hosting recently switched our site to newer IIS10 with support for HTTP/2
Performance suffered as a result. All images now showing simultaneously on one connection but much slower load times. Hosting assured us that there is no bandwidth limit and raised number of concurrent connections to 100. . What gives?
Test results before switch:

Before swicth to http2

Now showing this result :After http/2

sitespeed.io integration

$
0
0
Hi,

I'm testing out wpt and sitespeed.io integration with a private instance. When running sitespeed.io it seems wpt is called with no issues, but I'm confused on what should I see on sitespeed.io results regarding wpt. On the documentation it says this:
Quote:We love WebPageTest (WPT), so we have integrated WebPageTest with sitespeed.io (it’s a plugin). When including WPT you will get a tab for each result and if you are using Graphite, WebPageTest metrics will be automatically sent.

Reading that I supposed I was going to see another tab at the top of the page (where detailed summary, pages, etc), with wpt results or somehing like that, but I only see these three metrics on thr detailed summary page:

WPT render (firstView)
WPT SpeedIndex (firstView)
WPT Fully loaded (firstView)

Is this correct or should I be seeing more details from wpt ?

I'm running sitespeed like this:

Quote:docker run --shm-size=1g --name ss --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io https://www.mysite.com/ -b chrome --webpagetest.host http://192.168.1.103:4000 --webpagetest.key xxxxxxx --webpagetest.location desktop --webpagetest.connectivity lan --webpagetest.runs 3

Thanks for the help.

Black Film Strips

Firefox custom metrics

$
0
0
Greetings,

I have a private instance of WPT Service running version 18.10, along with Linux agents that also run 18.10.

I am able to retrieve custom metrics from tests on Chrome at test time. I do it by extracting those from js, like that:
-----
[atf]
return newrelic.info.jsAttributes["atf"];
.
.
.
-----

However, it seems that those same metrics can't be retrieved by firefox. I was wondering whether the behaviour is different between two browsers and what might be possible causes of that

API Key

$
0
0
I Requested for an API key, but didn't receive any email. kindly helpSad

Navigation Error when scripting

$
0
0
I've tried a variety of techniques to log in to a website using scripting. For example:

logData 1
SetEventName Goto Login
navigate https://www.example.com/secure/login
logData 1
SetEventName Set Username
setValue id=username testUser
logData 1
SetEventName Set Password
setValue id=password password
logData 1
SetEventName Submit Form
clickAndWait id=signInBtn
//execAndWait document.forms[0].querySelector('button[id=signInBtn]').click()
//submitForm id=signInForm

The id values are correct, I've checked multiple times. Every step after "Goto Login" results in "Error: Navigation Error". Obviously, it fails to log in -- If I finish the script off with a "navigate" to a page only accessible by logged in users, I'm sent to a generic, non-logged in page. What is going on?

Can't simulate mobile 3GSlow with scripting.

$
0
0
Hi,

Can some one help on how to simulate 3G slow network from scripting? following script is defaulting to 3G.

please help if there are any other location that supports 3Gslow network.

wpt.runTest(script,{
connectivity: "3GSlow",
location: 'Dulles_iPhone6',
firstViewOnly: true,
runs: 1,
pollResults: 5,
video: true
},

following is my test

https://www.webpagetest.org/result/19022...549a506eb/

Thanks,
Anil.

Start Render event before data arrived

WPTAPIError', code: 403, message: 'Forbidden'

$
0
0
Hi,

I am getting below error. please help
"WPTAPIError', code: 403, message: 'Forbidden'"

my test.js file:
var WebPageTest = require('./node_modules/webpagetest/lib/webpagetest');
var wpt = new WebPageTest('http://www.webpagetest.org/', 'myApiKey');
// var fs=require('fs');
var testSettings = {
proxy: 'my.proxy',
// location: 'Local:IE11',
runs: 1,
firstViewOnly: false,
"pollResults": 5,
"timeout": 60,
"reporter": "xunit",
video: false,
location: 'Dulles:Chrome',
};

const script = wpt.scriptToString([
{ logData: 0 },
{ navigate: "https://google.com" },
{ logData: 1 },
// {clickAndWait: 'id=globalTMLUSearch'},
'waitForComplete'
]);
wpt.runTest(script, testSettings, (err, data) => {
console.log(err || data);
});

Cache static content F

$
0
0
Hi guys,

I am trying to figure out how I can improve the F that I got for the caching static content results. But I just can not figure out if everything is cached or not. Can anyone help me out, with what I need to improve with my caching? I did other caching tests and these tests seem to point out that my everything is correctly cached.

My test results

Thank you so much!
Viewing all 3879 articles
Browse latest View live


Latest Images