ltseng Posted 11 hours ago Share Posted 11 hours ago The Account Load always shows that the memory and CPU usage are very high,but I have stopped the node service and did not run other applications. I think it is a bug. Please help me solve it. You can reset my host if necessary. Thank you. Quote Link to comment Share on other sites More sharing options...
MoneyBroz Posted 10 hours ago Share Posted 10 hours ago This support request is being escalated to our root admins. Quote Link to comment Share on other sites More sharing options...
wolstech Posted 9 hours ago Share Posted 9 hours ago Node really uses that many resources, and it's the second leading cause of suspension behind Wordpress. It is extremely inefficient. It is worth noting that if you noticed a spike specifically in the memory numbers in the past day or so for a program that has worked previously, the memory calculations were recently updated to more accurately reflect memory usage. This was the result of a user who managed to almost crash the server, and the new calculations will reflect as an increase in memory usage for users with long-running programs like Node and Python. PHP users are less likely to be affected by the changes because PHP both exits after each page is loaded, and times out after a minute or so if it doesn't finish. Quote Link to comment Share on other sites More sharing options...
ltseng Posted 8 hours ago Author Share Posted 8 hours ago 1 hour ago, wolstech said: Node really uses that many resources, and it's the second leading cause of suspension behind Wordpress. It is extremely inefficient. It is worth noting that if you noticed a spike specifically in the memory numbers in the past day or so for a program that has worked previously, the memory calculations were recently updated to more accurately reflect memory usage. This was the result of a user who managed to almost crash the server, and the new calculations will reflect as an increase in memory usage for users with long-running programs like Node and Python. PHP users are less likely to be affected by the changes because PHP both exits after each page is loaded, and times out after a minute or so if it doesn't finish. It has been restored now, but as you can see from the picture, after I found that the usage was high and disabled the app, the peak still lasted for seven or eight hours. Isn't this a bit strange? Quote Link to comment Share on other sites More sharing options...
Krydos Posted 7 hours ago Share Posted 7 hours ago It looks like you started these two processes npm run start node index.js and they were running up until 2 hours ago. When you start processes that never exit they ... never exit. If you want to run a Node.js website we strongly recommend following the guide that we wrote https://wiki.helionet.org/tutorials/node.js It uses Passenger which means if you don't get any page hits for 5-10 minutes your Node.js processes are killed and when someone views your website again they are started again. Unless you are getting constant visitors to your website every few minutes it will save you massive amounts of memory usage. If you follow some random Node.js guide on the internet they will most likely tell you to run a command like the above that never exits, and you will most likely end up suspended. If you didn't run the above commands then you should change your password because someone else has access to your account. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.