garie-lighthouse icon indicating copy to clipboard operation
garie-lighthouse copied to clipboard

Multiple Chrome processes forks

Open ayushchatur opened this issue 4 years ago • 0 comments

  • node version: v11.11.0
  • npm version: 6.7.0

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

ayushchatur avatar Jan 10 '20 07:01 ayushchatur