gosua
gosua

Reputation: 1067

Heap grows and drops

Why is the usage of the heap of my server steadily growing till a certain point and then it drops at a certain amount of heap usage (~270mb). I assume the drop is due to a garbage collection. But why is it growing although my server is doing nothing?



enter image description here

Upvotes: 2

Views: 379

Answers (1)

Peter Lawrey
Peter Lawrey

Reputation: 533530

It has jconsole connected to it. That produces some garbage to send you the data on how much memory is used.

If you use jvisualvm instead it will show you what objects are being created as well. I suspect it uses more garbage to monitor your application and jvisuavm can be the biggest memory user reported. ;)

Upvotes: 7

Related Questions