WebPagetest Forums
WptAgent docker container is getting bigger - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: WptAgent docker container is getting bigger (/showthread.php?tid=15744)



WptAgent docker container is getting bigger - Daro - 04-09-2019 11:58 PM

Hi!
I have private instance of WPT in Docker containers. I have done everything exacly as described here.
Running tests is working fine, but container with agent is getting bigger with every test. At the beginning, its size was about 25MB, but after 25 tests it grown to 650MB. I am running tests from command line using node.js wpt wrapper.
Is that a normal situation, and if not, how can I prevent wptagent container from expanding?

EDIT: here are the parameters I call runTest method with:
{ pollResults: 5, timeout: 600, firstViewOnly: true, video: false, runs: 1 }


RE: WptAgent docker container is getting bigger - thedoc31 - 05-01-2019 03:08 AM

By default, Docker only launches a container with 64MB of shared memory. That might not be enough for headless Chrome on the agent to work based on the size of the page it's checking.

Check to see if there are a bunch of core.<pid> files in the /wptagent folder in the docker container. If there are, you may want to try launching the container with --shm-size=1g to see if that helps keep chrome from dumping whenever it runs out of shared memory.


RE: WptAgent docker container is getting bigger - Daro - 05-09-2019 09:02 PM

Thanks, I think this solved the issue