[NTLUG:Discuss] Process memory
brian@pongonova.net
brian at pongonova.net
Fri Jun 14 14:15:21 CDT 2002
How about /proc/PID/status? That also appears to provide memory info (at least on
my system). FWIW, I'm unable to cat/less my mem entry under the PID (this is on a
2.2.x kernel).
--Brian
On Fri, Jun 14, 2002 at 09:16:10AM -0500, George Lass wrote:
> I guess my kernel is too old to support the "mem" pseudo file
> (I am forced to use RedHat 5.2 with a 2.0.36 kernel due to the
> vendor software in question). If I try to "cat", "dd", or "od"
> /proc/518/mem I get an error saying:
>
> mem: No such process
>
>
> Any other ideas?
>
>
> TIA
>
>
> George
>
> Steve Baker wrote:
> >
> > George Lass wrote:
> > > I have a vendor supplied API process that is eating up memory
> > > on my PC and am wanting to know if there is a safe and somewhat
> > > easy way to "look" at its memory without stopping the
> > > process or causing it to core dump.
> >
> > Check out /proc/{process_id}/mem - that "file" is actually hooked up
> > to a kernel device driver that returns you the memory space of the
> > process indicated in the filename.
> >
> > _______________________________________________
> > http://www.ntlug.org/mailman/listinfo/discuss
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list