Share on Facebook Share on Twitter Email
Answers.com

Java Virtual Machine heap

 
Wikipedia: Java Virtual Machine heap

The Java Virtual Machine heap is the area of memory used by the Java Virtual Machine (and specifically HotSpot) for dynamic memory allocation[1].

The heap is split up into "generations":

  • The Young generation store short-lived Objects that are created and immediately Garbage collected.
  • Objects that persist longer are moved to the Old generation (also called Tenured generation).
  • The Permanent Generation is used for class definitions.

Contents

Permanent Generation

A separate area of the heap called Permanent generation (or permgen) is used to store class definitions and the associated Metadata[2][3].

There was originally no permanent generation, and Objects and classes were just stored together in the same area. But as class unloading occur much more rarely than Objects are collected, moving class structures to a specific area allows significant performance improvements[2].

See also

References

External links



Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
 
 

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Java Virtual Machine heap" Read more