This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Clarification of Java Generation and Garbage Collector concepts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Clarification of Java Generation and Garbage Collector concepts?" Watch "Clarification of Java Generation and Garbage Collector concepts?" New topic
Author

Clarification of Java Generation and Garbage Collector concepts?

scott miles
Ranch Hand

Joined: Jun 16, 2011
Posts: 70
Below are the statments i found at http://www.springsource.com/files/uploads/all/pdf_files/news_event/Inside_the_JVM.pdf while going thru memory management

Statement1:-

All new objects are created in young generation Only moved to Old Gen if they survive one or more minor GC

Question1 :- Did not get what minor GC mean here?

Statement2:-

Major collections occur when the tenured space fills up

Question2:- Did not get what major collection mean here?

Looks like , young generation is minor collection because its size is much less than old generation which is a major collection.This a guess. Not sure?

As per my understanding,
all new objects are created in young generation then GC runs then deallocate the memory for the objects whose reference is not reachable and transfer the all other objects to old generation.

Question3 : Now when does the JVM decide to run GC on old and young generation? Does it run when young and old generation fills up the some specified space of each generation?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Clarification of Java Generation and Garbage Collector concepts?
 
Similar Threads
View the objects which are getting stored in permgen and total non heap space
java.lang.OutOfMemoryError: PermGen space
a simple WeakReference and SoftReference exemple
How setting an Object to null help Garbage Collection?
generational garbage collection--please help