| Linode Forum https://forum.linode.com/ |
|
| High CPU https://forum.linode.com/viewtopic.php?f=19&t=11417 |
Page 1 of 1 |
| Author: | sneakyfitch [ Thu Nov 13, 2014 2:17 pm ] |
| Post subject: | High CPU |
I am trying to determine the source of and find a remedy to consistently high CPU use in my VPS. By high, I mean 90% and above. When I less /var/log/messages I see the majority of the messages are Firewall: *TCP_IN Blocked* messages. Is this the source of my problem, or should I be looking deeper? |
|
| Author: | akerl [ Thu Nov 13, 2014 2:22 pm ] |
| Post subject: | Re: High CPU |
Have you considered checking what is using your CPU? |
|
| Author: | sneakyfitch [ Thu Nov 13, 2014 4:09 pm ] |
| Post subject: | Re: High CPU |
akerl wrote: Have you considered checking what is using your CPU? Actually, I did and I should have mentioned that. However, while I understand some of the things going on I don't understand everything. I'm not a sysadmin by training and only in practice when I have to be. As I look at top I don't see anything that jumps out at me as a problem. The sites being hosted are low traffic sites, so I don't expect to see and am not seeing a lot of activity from MySQL and PHP. Code: mysql 20 0 1192m 416m 6276 S 2 27.6 1423:56 mysqld |
|
| Author: | akerl [ Thu Nov 13, 2014 4:13 pm ] |
| Post subject: | Re: High CPU |
That would probably be saner to read if you'd left the headers, but it looks like MySQL is what's using the most CPU. |
|
| Author: | sneakyfitch [ Thu Nov 13, 2014 4:21 pm ] |
| Post subject: | Re: High CPU |
sneakyfitch wrote: ...while I understand some of the things going on I don't understand everything. I'm not a sysadmin by training and only in practice when I have to be. I read where elsewhere that something to look at was to run echo l > /proc/sysrq-trigger and then see what it reports by using dmesg. Doing that I get a lot of the same things I saw before. There are lots of Firewall: *TCP_IN Blocked* and an occasional Firewall: *UDP_IN Blocked* and Firewall: *Port Flood*. At the end of that report I see this, but I don't know what it means of it it has any significance at all: Quote: SysRq : Show backtrace of all active CPUs
sending NMI to all CPUs: xen: vector 0x2 is not implemented SysRq : Show backtrace of all active CPUs sending NMI to all CPUs: xen: vector 0x2 is not implemented |
|
| Author: | akerl [ Thu Nov 13, 2014 4:24 pm ] |
| Post subject: | Re: High CPU |
I have no idea why you're looking around at your firewall logs or sysrqs. Any utility like top or htop will show you what is using CPU. Based on what you pasted above, it's MySQL. Figure out what's happening when your usage spikes, and then figure out how to make that not use as much CPU. - Les |
|
| Author: | sneakyfitch [ Thu Nov 13, 2014 4:30 pm ] |
| Post subject: | Re: High CPU |
akerl wrote: That would probably be saner to read if you'd left the headers, but it looks like MySQL is what's using the most CPU. Sorry. You are correct. I don't know why it didn't copy. Code: aegir:~# top |
|
| Author: | sneakyfitch [ Thu Nov 13, 2014 4:40 pm ] |
| Post subject: | Re: High CPU |
When I look at Longview from the Linode Manager I see almost a flat line at around 100% in the CPU graph. "User" appears to be the primary consumer. That may or may not be helpful, but this is where I start to run short on understanding what's going on. |
|
| Author: | akerl [ Thu Nov 13, 2014 4:45 pm ] |
| Post subject: | Re: High CPU |
Go look at the processes section to see which processes that refers to |
|
| Author: | sneakyfitch [ Thu Nov 13, 2014 5:07 pm ] |
| Post subject: | Re: High CPU |
akerl wrote: Go look at the processes section to see which processes that refers to If you mean look at the Process Explorer section of Longview, nothing jumps out at me there. The highest CPU consumer is mysqld at just 2%. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|