This content has been marked as final. Show 2 replies
Where are you looking in jvisualvm to determine your heap size? In the Monitor tab you should see the heap usage graph on the top right. There you will see the reported heap size and max, as well as the currently used heap. In your case, both heap size and max should be roughly around 4096M, but the used heap will fluctuate along with your application needs.
BTW, looking at your config you have 768M configured for your PermGen. It's surprisingly large, but depending on what your application does it may be warranted.
Hi Sebastien, Thanks for responding.
In fact I'm looking exactly where you say to determine your heap size.
The thing is that I can't understand why one instance takes some minor heap size and fluctuates the size while the other instance take around 4 Gb and kept static in this value. I can see there is no diferences on configuration for both. I know that the used heap must present diferent behavior, but not the total size. I think that the size should be fixed and static with Xmx=Xms=4096, but this is not happening.
I would like to show an image to ilustrate what I'm describing.
About the PermGen, I think there's no problem with that, around 80% is in effective use, and this value is stable.