[Israel.pm] memory usage

Eitan Schuler eitan.schuler at gmail.com
Tue Sep 5 06:11:18 PDT 2006


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.

Eitan

>
>
>
>
>  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 I hope 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
> >



More information about the Perl mailing list