modperl_apache_gtop_vmonitor_memory_usage_info

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



To: martin langhoff <martin@scim.net>
From: Stas Bekman <stas@stason.org>
Subject: Re: Mem Sizing tool [was: splitting the code sets
across more than
Date: Wed, 13 Dec 2000 17:18:16 +0100 (CET)

On Wed, 13 Dec 2000, martin langhoff wrote:

> 
> hi,
> 
>         [now to the list, also]
> 
>         maybe all of these mathematical formulae can be made into a
> smallish perl script that grabs this info from `top ax`. I am not sure
> that top is the proper source of memory usage across platforms.
> 
>         In fact, as I am not a unix old-timer, I should be asking
> *where* to get that info reliably from. With that info, I could prepare
> such a script ... it'd be quite useful, I'm building a few servers with
> very low memory.
> 
> 	Stas wrote (privately) that there is no consistent cross platform
> command that will reliably report memory usage for a given set of
> processes. He also mentioned Apache::GTop, but I was thinking about an
> external script. A script I can call from the command line and will
> evaluate my three HTTPDs and their children, and report global and
> detailed memory usage. 

(sorry it should be GTop)

> 	It should be a general purpose tool, not something mod_perl-dependant
> at all. It might be system dependant, of course. It could be checking
> what OS it's on and call the proper command accordingly.

Apache::VMonitor does exactly this, but it's based on GTop. You are
welcome to patch it to use other libraries. And it reports the real memory
usage of any applications that you choose for it to monitor (mysql for
example). 

BTW, the formula was developed especially for Apache::VMonitor :)

===

the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu