Re: Memory utilization

Endre Stølsvik <[email protected]> Thu, 31 Jan 2008 02:06:37 +0100
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
Avinash Lakshman wrote:
> I ran the very same experiment and I am enclosing the image of the NetBeans profiler having captured the memory utilized. The heap utilization by the program was around 600MB but the memory used by the data that I use is around 150MB. So how does it manifest itself as 4 times the amount of heap memory consumed?

Try with a couple of System.gc()'s  before checking memory from within
the JVM, and then going into some sleep and checking the memory as
observed from the OS (do e.g. 10 GCs in a row - more than one actually
makes a difference sometimes - might be finalization and stuff?).

If you're concerned with the process-allocated memory, you should read
the link I posted as reply to Carfield's post.

Endre.

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com