Re: [Nagios-devel] Memory leak in Nagios3?
Posted: Sun Nov 04, 2007 5:29 am
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 [email protected]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
> 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 [email protected]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]