Page 1 of 1

Nagios consuming memory

Posted: Tue Nov 05, 2013 11:12 am
by Helio
I have an Ubuntu 10.10, and Nagios 3.5.1, and MKlivestatus. At the beginning my ram memory has nearly 50% free (I have 1GB ram). But, day by day, the memory is been consumed. After 5 days working, my system has only 10% memory free, and swap starts working logically. How Nagios increase the use of ram memory? Nagios are sending pings and snmpget commands to 44 different machines (no one are accesible, it´s a test). Why continue consuming memory? Is a problem with MKLivestatus?
Thank you in advanced.
Helio.-

Re: Nagios consuming memory

Posted: Tue Nov 05, 2013 11:16 am
by tmcdonald
Can you run the "top" command and post a screenshot or the actual output?

Re: Nagios consuming memory

Posted: Tue Nov 05, 2013 11:17 am
by abrist
Helio wrote:Is a problem with MKLivestatus?
Possibly. What does the ram usage look like? What process name is mostly to blame? Are the nagios forks for checks hanging?

Code: Select all

ps -aux

Re: Nagios consuming memory

Posted: Tue Nov 05, 2013 11:57 am
by Helio
This is a screenshot

Re: Nagios consuming memory

Posted: Wed Nov 06, 2013 11:29 am
by slansing
When you restart nagios does your unassigned memory reset to a more suitable number?

Re: Nagios consuming memory

Posted: Thu Nov 07, 2013 4:22 am
by Helio
When I restart Nagios, memory goes from 164KB free to 262kB free, but at the begining my system had 500KB free. Day by day my memory continues reducing my free memory. I attach two snapshot, one before de restart Nagios, and the other after restart Nagios.
It should be the use of mklivestatus...
Thank in advanced.
Helio.-

Re: Nagios consuming memory

Posted: Thu Nov 07, 2013 4:23 am
by Helio
And this is the snapshot after restart...

Re: Nagios consuming memory

Posted: Thu Nov 07, 2013 1:04 pm
by abrist
Lets check the amount of ram that is used for disk buffers:

Code: Select all

free -m
Could you also run:

Code: Select all

ps -aux

Re: Nagios consuming memory

Posted: Fri Nov 08, 2013 8:09 am
by Helio
After 7 days working I did your commented command: free -m
As you can see I think I´m losing buffers day by day (or is not used).
Thank you.
Helio.-

Re: Nagios consuming memory

Posted: Fri Nov 08, 2013 11:12 am
by abrist
It looks like you only have around 200mbs free after buffers. It the server load/memory spikes, you start using swap. Can you increase the provisioned ram for this vm?