Reputation: 1067
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?
Upvotes: 2
Views: 379
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