CentOS runs out of memory
1 Attachment(s)
I have a CentOS 5.8 with Apache and Direct Admin panel.
There is one website on this server. Some times the server runs out of memory and kills processes until it kills the "httpd" and website gets down. I used top command to find out witch process uses physical memory more than others. Here is the output just before the server runs out of memory: Attachment 9799 What's the problem? |
Do you have swap configured?
|
From reading your attachment it seems that your load average looks pretty high over all three time periods, also looks like your system isn't going in to swap so that would indicate that memory is OK.
Are you running anything that could account for the heavy load? Is this a "real" machine or a virtual server? |
Quote:
How can I find that swap is configured? Quote:
|
Quote:
|
type at the console: free -m
and paste the output, that load avg is very high - something is eating resources. how many other vm's are on this host? could it be over allocated? is there any monitoring of the host resources? it could be you have storage contention. if you also output: vmstat 1 10 |
2 Attachment(s)
Quote:
This is the output of commands: Attachment 9817 I think the swap is not configured. What's your idea? There is only one website on this server, this website hasn't many visitors: Attachment 9818 As I said I didn't configured the server but I think there is no heavy process in the server. |
Code:
Swap: 2064376k total, 2064376k used, 0k free, 12588k cached Code:
168 root 10 -5 0 0 0 D 5.1 0.0 0:16.01 [kswapd0] You've got 1 or more runaway process(es) filling your disk.... Note the amt of procs in states S or D and refer to this page http://slack-linux.blogspot.com.au/2...ate-codes.html |
How can I find those processes?
Is there any tool or any solution to find out the "runaway process(es)" ? |
Not necessarily a (just one) runaway - count those httpd. Seems you have a few around 5% of Mem (that's physical %MEM).
"top" can be run with your choice of field to sort by - I'd suggest you use %MEM, and see what floats to the top. And how many - say 18x5% doesn't leave much for anyone else. 20 is, of course, even worse ... |
All times are GMT -5. The time now is 11:42 AM. |