[Israel.pm] memory usage

guy keren choo at actcom.co.il
Tue Sep 5 10:02:13 PDT 2006


On Tue, 5 Sep 2006, Eitan Schuler wrote:

> quick and dirty:
> print STDERR `ps -auxw | fgrep <your program name> | fgrep -v fgrep `;
> you can add an awk to this. look at the RSS column if increases.

NOT the RSS. he should look at the 'VSZ' column.

--guy

> >On 9/5/06, Gabor Szabo <szabgab at gmail.com> wrote:
> > >vmstat does not seem to provide per process statistics and I would prefer
> > > a Perl module for this or something that has a Perl wrapper already.
> > >
> > > The issues is that I need to test if a given script has memory leak.
> > > I know it used to have on Solaris and Ihope I have fixed it.
> > > In the end I think I would like to have a module that could just report
> > > the total memory usage of the process it is running in.
> > >
> > > Gabor
> > >
> > >
> > >On 9/5/06, Yishay Weiss <yishayjobs at hotmail.com> wrote:
> > > >vmstat, as shown in
> > > >
> > > > http://www.adminschoice.com/docs/iostat_vmstat_netstat.htm
> > > >
> > > >
> > > > >From: "Gabor Szabo" <szabgab at gmail.com>
> > >
> > > > >How can I find out (preferably cross platform, but at least on Unix/Linux)
> > >> >what is the total memory used by my own process?
> > > > >
> > > > >Not the memory usage of a single variable but the full process.
> > > > >
> > > _______________________________________________
> > > Perl mailing list
> > > Perl at perl.org.il
> > > http://perl.org.il/mailman/listinfo/perl
> > >
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
>

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy




More information about the Perl mailing list