I have gone thru this Link and got some questions on Major Garbage collection and Parallel collector
Question1:-
Link says "Often a major collection is much slower because it involves all live objects" , i did not get how working on live objects make major collection slower in comparison Minor collection which works on mix of unreachable objects and live objects.
Question2:-
Link says "Major garbage collection are also Stop the World events".
On other hand it says "CMS collector attempts to minimize the pauses due to garbage collection by doing most of the garbage collection work concurrently with the application threads" So does CMS collector stop the main application thread till it completes or it runs concurrently with application thread
Question3:-
As there objects is moved from eden >(Minor GC) surivivor >(Minor GC) old generation > (Major GC) > Clean up old generation and compact it.
As per my understanding object memory location is changed when object is either moved from surivivor to old generation or when compaction is done major GC( though object memory location is not changed when its moved fron eden to survivor space)