In Java the heap is broken down into different generations:
Generations make garbage collection more efficient. Short-lived objects are garbage collected more often, because higher is the chance they lose all the references.
The young generation is further broken down into eden, where the objects are first created, and survivor space 0 and 1, where objects are promoted.
The JVM has some command line parameters to size the heap areas as desired:
-Xms initial heap size -Xmx max heap size -Xmn young gen size -XX:PermSize initial permgen size -XX:MaxPermSize max permgen size
Copyright © 2013 Welcome to the website of Davis Fiore. All Rights Reserved.