Home  |  Linux  | Mysql  | PHP  | XML
From:Yue Chen Date:Mon Feb  8 15:49:15 2010
Subject:Re: Perl script to monitor memory usage on unix box
Hi Dave

Have you ever tried module Proc-ProcessTable? It is a wonderful tool
to collect process information such as PID, cmdline, CPU usage and Mem
usage.

> Hi everybody,
>
> I want to write a script that checks memory usage of my RHEL box, and ran as
> a cron job say every 10 minutes.
>
> I could write the Perl script to run a system command like "ps aux", parse
> that information and kill a job if >90% of the total system memory (and I
> realise most of the times memory is sitting in cached) is being used. And I
> guess if 8 jobs are already using 80%, the job that topples the threshold
> will have to be stopped. But since that isn't a Perl question, I won't ask
> if that is a good implementation.
>
> Since I didn't want to reinvent the wheel and/or write an inelegant script,
> I wanted to ask if there are CPAN modules, which people have used, to help
> with achieving my task?
>
> Many thanks,
>
> Dave
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>
Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
RE: Substitution question
More compact way to write this
Re: sequential value check
Re: sequential value check
Re: Substitution question



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants