How do I make sure "spikes" in CPU usage does not keep happening?
Every so often, I see some "spikes" in CPU usage. I wanted to make sure I did not need extra space requirements.
For the most part, the CPU usage is okay.
I see these spikes when IPv6 usage is high and when Disk I/O is high.
This goes for inbound and outbound traffic.
P.S. Any pointers would be nice. So, if you have time, please let me know if you need any more info. and I will stay patient.
Hello Once More,
I looked through the older articles. I found this:
iostat 1 10
top -bn 1 | head -15
I ran both commands. I found nothing in the commands b/c the "spike" was not during the running of those commands. There seems to be very specific times when "spikes" in CPU usage occur.
I'm happy to give you some pointers and guidance on this.
The two commands that you posted are great to use in cases like this. The
iostat 1 10 command will help you check on overall system performance.
Another command that's good for monitoring purposes is
vmstat. This will collect and report data about several things, including your Linode's processor resource ultilization in real time. We have a guide that goes over using
top command you posted is one I recommend as well, there are other iterations of the command that you may find useful. The link below will give you our guide on using
top to its full potential:
As you've pointed out, however, these commands are the most useful when these spikes are happening. You really have to catch your server in the act of consuming a large amount of CPU in order to catch the process(es) that are causing the spikes.
I do recommend seeing if there are any cron jobs that you've set up that might coincide with the timing of these spikes.
Another step you can take is checking your server's log files to see if you can find clues as to what may have caused the spikes. We have another post on our Community Site which goes over the logs in detail, which I recommend taking a look at:
If you have specific output from any of the commands you've run, you can always open up a Support Ticket and we'll be happy to take a look with you to help you interpret it.
Hello Linode Staff,
Seth here. Yep. You are right. I would really have to catch it. I do not have any cron jobs running that I am aware of now.
At least, I did not set any up.
P.S. I will read over those articles and report back. Thank you for your service.