--On Monday, September 09, 2002 1:44 PM -0400 David Nolan 
<[EMAIL PROTECTED]> wrote:

> Has anyone else seen strange memory usage problems with Mon?
>
> I've got 3 mon servers, two doing most of the work and sending traps to a
> third server that sends alerts.  Of the two slave servers, the one which
> is running more processes is using about 200M of memory for mon (with a
> 700 line config file), the other is using about 25M (350 line config
> file). (Both are linux).  My alert server (Solaris) is only using about
> 14M (1400 line config file).
>
> I'm not sure if this is a memory leak in mon, or in perl, or what.
>


I appear to have found a solution to my problem.  I started running mon 
under 'perl -w' to look for problems, and found *lots* of undefined values 
being used.  I've modified every one of them to have a defined $foo check 
as well, and suddenly the memory footprint of my running mon system has 
gone from 200M to 8M.

It's probably still a bug in perl that Mon was triggering by being careless 
about undefined hash entries.

-David Nolan
 Network Software Developer
 Computing Services
 Carnegie Mellon University

_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to