Our site's run fine for about 3 years now, now all of a sudden Node is eating CPU like crazy. I don't use node in any of our custom apps but I know it's used in Boonex core. Unfortunately the most info top has come up with is that it's node main.js but there's several of those. Anyone have any idea where I should look / do? We're lagging horribly. Thanks!
http://prntscr.com/d2el5h
|
I see that you are averaging 75%. Sometimes this is acceptable. CPU is supposed to work & get used. I would monitor it closely to make sure it doesn't reach max. However, if you haven't add any new sites, databases or other loads to your server and all of sudden you see the spike, I would check for adware infection which can be a factor for your CPU sudden increase. You may also need to look into your system and see if it needs any patches/upgrade..
> Here is a good link that can help you understand how the CPU is being used, cause etc.. http://blog.scoutapp.com/articles/2015/02/24/understanding-linuxs-cpu-stats
|
Thank you for trying to help but a webserver running at 75% CPU load is never acceptable. Malware would only be a concern if this was Windows system, it's not. As the article you posted says having a single process eating all the CPU is a sign that the script has gone haywire, seeing as it's one of Boonex's scripts I'm hoping someone here can help me troubleshoot the scripts and find out why node main.js is eating 75% of the cpu causing our server to come to a crawl. These are enterprise gaming servers, they should not be having this issue. |
I rebooted the server and it seems to be running well for the last hour or so. My hunch is it's Chat+ acting up, that's the only real change we've had in months. |
Glad your issue is resolved for now. I was wondering what version of Chat+ you are running.. I just upgraded to v.043, and I also upgraded its mongoDB to latest version 3.2.10. I know mongoDB new engine uses memory heavily, but not CPU unless you are are running Twitter-like platform. |
Have the same problem since upgrading Chat+ to v0.43.0
Any hints?
http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro |
|
Using nodejs version 4.6.2 fixes the high CPU load http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro |
Glad to see your CPU issue has been resolved.. Just to be on the safe side & to check things on my end, can you share your platform info such as your OS flavor, OS version and your Chat+ current version. I believe I am running nodejs 4.5 and would like to make sure I don't run into the same issue in the future. If we have the same platforms, maybe it would be a good idea for me to upgrade nodejs to 4.6.2 as well.. How do you check what version of nodejs you are running ?
Thanks. |