A bunch of Java continues to shrink! What happens on this heap size graph?

This is a screenshot of the JVM (win64, 6u17) working with ActiveMQ, after each garbage collection the heap size decreases. As the heap size decreases, garbage collection becomes more frequent and the heap decreases faster. In the end, the VM is blocked because it spends all this time in the GC.

-Xms by default, and -Xmx - 2048 MB.

What's happening!!? How can i avoid this?

http://imagebin.org/92614

Heap heap http://imagebin.org/index.php?mode=image&id=92614

nb, originally posted to serverfault.com, has moved to stackoverflow.com on request

+3
source share
3 answers

Google IBM JVM FAQ ( NLA):

Java ?

, GC , , . GC, .

Sun JVM - . Oracle Technology Network, 5.0 Java.

, . .

...

, , . , . ( ) ( ).

; , .

+6

JVM, .

-XX: MaxHeapFreeRatio

- 70. - , . 70%. Jvm , .

, -XX: MaxHeapFreeRatio. 100, , .

+6

: , . , , gc'd. , , , , gc'd .

gc- .

. ? , . , gc ,

0

Source: https://habr.com/ru/post/1740653/


All Articles