GARBAGE BAGE CO COLLECTIO LLECTION: N:
@EvaAndreasson, @Cloudera
GARBAGE BAGE CO COLLECTIO LLECTION: N: @EvaAndreasson, @Cloudera - - PowerPoint PPT Presentation
GARBAGE BAGE CO COLLECTIO LLECTION: N: @EvaAndreasson, @Cloudera AGENDA Garbage Collection (101) The Good The Bad The Ugly The Challenge! 2 GARBAGE COLLECTION "When you have to shoot, shoot - don't talk!" 3
@EvaAndreasson, @Cloudera
AGENDA
2
GARBAGE COLLECTION
3
"When you have to shoot, shoot - don't talk!"
WHAT IS GARBAGE COLLECTION (GC)?
4
JAVA HEAP - SPOTLIGHT
5
Java Heap: Where all Java Objects get allocated JVM Internal Memory:
REFERENCE COUNTING VS. TRACING
6
REFERENCE COUNTING VS. TRACING
7
SIDE NOTE: WHAT IS FRAGMENTATION?
8
New Object FULL HEAP POST GC FRAGMENTS New Object
COPYING VS. MARK’N’SWEEP
9
COPYING VS. MARK’N’SWEEP
10
PARALLEL VS. CONCURRENT
11
possible, without impacting running applications too much
modifications and re-mark
GENERATIONAL
12
them to the old space
COMPACTING
13
stop the world phase
14
GARBAGE IS GOOD!
15
THE GOOD
16
17
THE DESERT OF TUNING
18
A DESERT SURVIVAL KIT
19
20
RECOGNIZE THIS?
21
slower
WHAT REALLY HAPPENS
22
WHY NOT CONFIGURE A LARGER HEAP?
23
24
REMEMBER FRAGMENTATION?
25
New Object FULL HEAP POST x GCs FRAGMENTS New Object …IF multiple GCs later…
REMEMBER COMPACTION?
26
PREPARE FOR THE REAL VILLAIN…
27
"There are two kinds of people in the world my friend, those with a rope around their neck and the people that have the job of doing the cutting!"
28
STOP THE WORLD OPERATIONS
29
SUMMARY
30
I CHALLENGE THEE
31
“You see in this world, there’s two kinds of people my friend… …those with loaded guns and those who dig…you dig!”
JOIN THE FUTURE OF JAVA!
32
33
Q&A
34
@EvaAndreasson