Garbage Collection in Java

preview_player
Показать описание
JVM flags to tune garbage collection:

-verbose:gc (to log information about the heap and garbage collection)
-XX:MaxGCPauseMillis=[number] (maximum pause-time)
-XX:GCTimeRatio=[number] (time spent collecting garbage)
-Xms=[number] (minimum heap size)
-Xmx=[number] (maximum heap size)

Garbage collectors available:

-XX:+UseSerialGC (serial)
-XX:+UseParallelGC (parallel)
-XX:+UseConcMarkSweepGC (concurrent mark sweep)
-XX:+UseG1GC (garbage-first)
-XX:+UseZGC (z garbage collector)

Timestamps:

0:00 Intro
0:30 Role of Garbage Collector
1:11 Java Memory Model
2:26 GC tuning flags
3:30 Garbage Collectors available
Рекомендации по теме
Комментарии
Автор

Excellent garbage collection tutorial. My Java isn't great, so this was helpful!

ealmiladi
Автор

My minecraft says gc and something about allocations in place of the processor how do i get it to shoe my processor? In the f 3 menu

existinglikeanormalpersoni
Автор

Good one.. can you share us reference links

sureshsadanala