Closed zepumph closed 3 weeks ago
Today's investigation about this was largely blocked by changes made from
https://github.com/phetsims/perennial/issues/386
and
https://github.com/phetsims/chipper/issues/1498
I am beginning to think that all the trouble we have had on main is from the registerTasks arg splitting. It is hard to test on servers, but I seem to get consistent args that look like (psuedo code) "node pm2/ProcessForwarder.js quick-server" where the ProcessForwarder knows how to splice in grunt for itself. I'll need to come back to this tomorrow.
I made some progress today. I think there is a serious concern that something in our processes are taking up way too much processing. My theories:
I'll need to come back to this.
Some more discussion and summary with @samreid this morning:
problems:
->
" indicated hypothesis with listed potential investigations and solutions.->
gruntSpawn sub process is slow
->
old puppeteer 19 + Node 20 = timeouts and other problems
->
ct-puppeteer-client has 502 on aquaserver/next-test
-- We traced back to this failure on CT-main:
Ok. I'm testing without cluster mode, and I think this error may help show the memory leak from puppeteer's side. Likely we still need to do https://github.com/phetsims/perennial/issues/393.
ct-chrom | 2024-10-31T17:59:03: (node:10112) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 101 SIGINT listeners added to [process]. MaxListeners is 100. Use emitter.setMaxListeners() to increase limit
2|ct-chrom | 2024-10-31T17:59:03: (node:10112) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 101 SIGTERM listeners added to [process]. MaxListeners is 100. Use emitter.setMaxListeners() to increase limit
2|ct-chrom | 2024-10-31T17:59:08: (node:10112) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 101 exit listeners added to [process]. MaxListeners is 100. Use emitter.setMaxListeners() to increase limit
2|ct-chrom | 2024-10-31T17:59:08: (node:10112) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 101 SIGHUP listeners added to [process]. MaxListeners is 100. Use emitter.setMaxListeners() to increase limit
I believe that all the trouble we have been encountering this week was because of a memory leak in browserPageLoad(). Fixed by https://github.com/phetsims/perennial/commit/f6a0b7a4a62383470b797d0391f0450b78aa6b94 above. CT is working well now.
We will continue optimizing sparky tasks over in https://github.com/phetsims/aqua/issues/220
Added a TODO here to test https://github.com/phetsims/perennial/issues/362
Reopening because there is a TODO marked for this issue.
Re-closing for more testing.
Reopening because there is a TODO marked for this issue.
Excellent!
Creating this issue since we kinda broke all of CT. Perhaps it is an se linux problem, and perhaps we should upgrade our Puppeteer version. I'll take a look.
CTQ is running correctly.