简体   繁体   中英

Nodejs process not responding after sometime

I am testing node-webrtc project on 16 core cpu and 32 GB RAM. I started process with pm2 and after some time node process stop responding. Url returns not reachable, video streaming stopped.

What i noticed:

1) Every time it stopped at memory consumption 3.5 GB, CPU 900% but i tried to increase old memory size to 24 GB then it failed randomly after reaching 9 GB Memory and 1100 cpu..

2) In pm2 logs i found

"(node:3397) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 newBroadcast listeners added. Use emitter.setMaxListeners() to increase limit" but process keep running after this warning..

A) not sure this is memory leakage issue?

B) cpu consumption (900% out of 1600%) as i know node is single thread process so is there any chance thread assign to main node process reached to their peak point?

Please any suggestion how i can debug it..

concurrent users that time are around 110-120

Issue was server outbound bandwidth. Server has maximum uplink speed 128 MB/s (~1 Gbps) and stream consuming maximum allowed bandwidth and after that connection to server goes unreachable... It fixed by swtcihing our server to 500 MB/s bandwidth..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM