I am experiencing a huge spikes on the server with CPU usage constantly around 50%, and sometimes up to 100% and more, which makes the app really slow and unusable. Server has 1GB RAM at the moment, but it has never reached to that point, so I don’t think the RAM is insufficient
I have followed some suggestions here (CPU jumping up like crazy and crashing production server). Below is the htop I ran on the server. It seems like the problem is the node ?!
Server is Ubuntu. I ran this command to install node, then
node -v shows the version is 4.8.4
But the problem is still there, so I’m not sure what to do next.
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
Can anyone help me? Thank you.