Professional Documents
Culture Documents
Lesson 1
Lesson 1
Lesson 1
Poonam Parhar
JVM Sustaining Engineer
Oracle
Poonam Parhar
JVM Sustaining Engineer
Oracle
Poonam Parhar
JVM Sustaining Engineer
Oracle
//no need to explicitly free memory occupied by 's'. It would be released by the
garbage collector when 's' goes out of scope.
Heap
Heap
Heap
Heap
Heap
Heap
Heap
Poonam Parhar
JVM Sustaining Engineer
Oracle
Young Generation
Old
Generation
Promotions to
Old Generation
Old
Generation
_mark Klass
_klass
<Object Fields> Other
metadata
Klass
Poonam Parhar
JVM Sustaining Engineer
Oracle
G1
Parallel Old
Serial Old
(Mark Sweep Compact)
CMS
CMS Concurrent mode failure
• G1 is the Garbage First collector for large heaps and provides reliable short
GC pauses
– Has generations but uses different memory layout
Poonam Parhar
JVM Sustaining Engineer
Oracle