boyney123 / garie-lighthouse

Lighthouse Garie plugin. Polls websites to checkout performance metrics also supports webhooks.
MIT License
50 stars 24 forks source link

Multiple Chrome processes forks #26

Open ayushchatur opened 4 years ago

ayushchatur commented 4 years ago

Relevant code or config

What you did:

We have been using gaire for production setup and i am currently using 15 URls to monitor with a cron of 25 min Each url takes ~15 sec to be calculate and data pushed into influx

What happened:

After a day or two the chrome process count reaches in 3 figures. And eventually in a week or so it overloads the machine

Problem description: I cannot figure out where the problem is, when i try to runit with couple of urls the problem do not seem to replicate, it launches 3 other processes as expected with the parent chrome process and closes all the processes after processing of each url

I tried different combination of flag when chrome is being launched below is the current set: '--headless', '--disable-gpu', '--disable-component-extensions-with-background-pages', '--disable-gpu-sandbox', '--disable-default-apps', '--disable-backgrounding-occluded-windows', '--disable-background-timer-throttling', '--disable-renderer-backgrounding', '--disable-notifications ', '--disable-web-security', '--disable-extensions', '--disable-sync', '--no-zygote', '--no-sandbox', '--headless', '--mute-audio', Requesting your inputs @boyney123