Memory Accounting, JDKs [was: Re: [Techtalk] Java on Linux]
Val Henson
val at nmt.edu
Thu Jan 10 18:34:36 EST 2002
Hi Nicole,
What does cat /proc/meminfo say? I don't know if it will suffer from
the same accounting problems as ps and top do, but it's worth a try.
Also, what does vmstat say?
-VAL
On Thu, Jan 10, 2002 at 04:12:47PM -0800, Nicole Zimmerman wrote:
> This is what I'm doing right now (they all report the same value) and it
> doesn't seem right.
>
> Server = 254M
> Client = 226M
> GUI = 205M
>
> System reports: 243M memory used, 6M free
>
> -nicole
>
> At 17:33 on Jan 10, Aaron Mulder combined all the right letters to say:
>
> > When running with "native threads" (one process per thread), you
> > get this effect. All the processes representing threads in the same VM
> > report the same memory numbers, I think. So if you were able to get
> > processes from all 3 JVMs showing in "top", you should see only 3 distinct
> > memory numbers (though each repeated across several processes).
> > It should be fairly easy to record the process number of the
> > initial java process as each VM is launched (there's a shell variable,
> > like $! or something), and there has got to be some way to show a
> > process's ID and parent process ID through top or ps or something if you
> > really want to track them all down. But I don't know how to do that
> > without spending some time communing with man pages.
>
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://www.linuxchix.org/mailman/listinfo/techtalk
More information about the Techtalk
mailing list