Memory leak in Nagios3?

Andreas Ericsson ae at op5.se
Sun Nov 4 14:29:59 CET 2007


Hendrik Bäcker wrote:
> Hi List,
> 
> after a four days running nagios 3 (latest cvs) I've recognized that my
> system has only 80 MByte of free Memory (top).
> After stopping Nagios the amount of free memory jumps up to 2,7 GByte.
> 

Are you using embedded perl? It's the single largest memory-sink in Nagios
at the moment.

> Now my question: What is the best way to find such a leak (if there is one)?
> 

Ues valgrind.

> I know tools like valgrind, but I am not familar with right use of it.
> 
> So, if someone can hit me to the right direction, I will try to debug.
> 

man valgrind, or learn how to implement ref-counting in C and add it to
Nagios. If done properly, it will eliminate all in-core leaks and leave
only the embedded perl ones.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/




More information about the Developers mailing list