Nagios 3.0 hanging (10/23 CVS)

Ethan Galstad nagios at nagios.org
Wed Oct 24 15:59:38 CEST 2007


Andreas Ericsson wrote:
> Shad L. Lords wrote:
>>>> Valgrind should be able to give a few hints. If you've got time to 
>>>> run Nagios
>>>> under it on your system, it would most likely be very valuable.
>>> Not sure how to do this but I've got the time and  willingness to 
>>> learn. Just point me at some documentation and I'll plug away at it. 
>>> I've done a little googling and have run the program with this for 
>>> tonight:
>>>
>>> valgrind --leak-check=yes --time-stamp=yes 
>>> --log-file=/tmp/trace/nagios-valgrind nagios /etc/nagios/nagios.cfg
>>>
>>> I'll make the results available tomorrow.  If you would like other 
>>> options please let me know which ones.
>> Well that didn't take nearly as long to fail as previous attempts.  I've 
>> attached both the nagios.log and the valgrind save.  Let me know if 
>> there is anything else you need.
>>
> 
> I've only browsed it briefly for now, but it looks as if some insignificant
> leaks are happning when reading the config (one-time hit though, so not
> very important). The macro releasing code seems to leak a bit too. That might
> be sorted by the recent CVS commit. Other than that, the embedded perl
> interpreter seems by far the most prominent leak.
> 
> In total, Nagios leaks about 0.8MiB / second on your system when valgrind is
> running. Quite astonishing, really. Try without embedded perl. It should plug
> the worst leak, and the rest shouldn't be enough for you to notice between
> restarts.

One other thought as well - If you set "use_large_installation_tweaks" 
to 1, set it back to zero.  When enabled, this option will make child 
processes (i.e. host/service checks) not free memory before they exit. 
The Linux kernel frees this memory if not done explicity/properly by the 
code, and its more efficient at doing it.  However, the BSD kernel may 
act a bit differently and not free memory, which could cause a memory leak.

Just another option to try out.


Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web:   www.nagios.org

-------------------------------------------------------------------------
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