Memory Accounting, JDKs [was: Re: [Techtalk] Java on Linux]

Nicole Zimmerman colby at wsu.edu
Thu Jan 10 17:12:47 EST 2002


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.




More information about the Techtalk mailing list