ePN and memory leaks
atonns at mail.ivillage.com
atonns at mail.ivillage.com
Mon Jan 13 21:32:00 CET 2003
Has anyone else done an in-depth investigation of memory leaks in ePN and/or
custom checks written for ePN?
> -----Original Message-----
> From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU]
> Sent: Monday, December 30, 2002 10:31 PM
> To: atonns at mail.ivillage.com
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] ePN and memory leaks
>
> > Are there any suggestions for finding memory leaks in ePN?
> (I'm going to be
> > looking at Apache::Leak and Devel::Leak, but there might be
> other debug
> > options in nagios I'm not aware of).
> >
>
> Not that I am aware of. It sounds like you are on the right track
> though.
Well, I've run several tests with both Apache::Leak and Devel::Leak and have
found that it's not my code that's leaking, but either p1.pl or mini_epn.
The number of SVs before and after executing my code stays the same (or
decreases!). BUT the number of SVs between invocations when called by
mini_epn increases. Below is an example where I use Devel::Leak and have
changed the output of my service check to be the ENTER and LEAVE values
returned by NoteSV and CheckSV (note that the first invocation increases
dramatically because of DynaLoaded modules)
$ ./mini_epn 2>/dev/null
Enter file name: check_remote_interfaces-leak_test
embedded perl plugin output was -12820724,ENTER: 32488 LEAVE:32674
Enter file name: check_remote_interfaces-leak_test
embedded perl plugin output was -12820724,ENTER: 32686 LEAVE:32686
Enter file name: check_remote_interfaces-leak_test
embedded perl plugin output was -12820724,ENTER: 32694 LEAVE:32693
Enter file name: check_remote_interfaces-leak_test
embedded perl plugin output was -12820724,ENTER: 32701 LEAVE:32700
Enter file name: check_remote_interfaces-leak_test
embedded perl plugin output was -12820724,ENTER: 32708 LEAVE:32707
> You could also run any suggestions past the ePN author (noted in the
> source).
I couldn't find this person's info (is it not Ethan Galstad?).
I don't want to bother who are no longer involved in the project.
--
"Computer science is as much about computers as
astronomy is about telescopes" -- Edsger Dijkstra
---------------------------------------------------------
Anthony Tonns, UNIX Administrator - atonns at mail.ivillage.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030113/aae20ba4/attachment.html>
More information about the Users
mailing list