Linked by Thom Holwerda on Sat 8th Oct 2005 18:40 UTC, submitted by anonymous
Thread beginning with comment 42018
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: Question on Java memory usage
by BryanFeeney on Sat 8th Oct 2005 23:51
in reply to "RE: Question on Java memory usage"
Firefox uses that much memory because it has to store uncompressed image data (for immediate display) and maintain an in-memory cache (which will grow as you browse more).
It's mainly the JVM. Fortunately Sun (with a little prodding from Apple) has been improving this situation since Java5 by sharing pieces of memory between instances.




Member since:
2005-10-08
"The speed of the allocation / deallocation of memory is fine, the question is why is the average java app consume a lot more memory then a native app?"
Because of the virtual machine that makes sure the code you are running is safe, etc.
But also, this is not always true. For example, Firefox routinely uses 50 to 70 Mb of RAM on my system. Most of my Java applications use less.