Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

heap memory touches new high every time

jconsole heap graph

the peek in my graph is touching new high every time. my vm arguments as follows,

-XX:+UseCompressedOops -XX:+TieredCompilation -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

is it fine or something wrong with the arguements?

like image 973
Sureshkumar Natarajan Avatar asked Dec 29 '15 12:12

Sureshkumar Natarajan


1 Answers

This looks normal to me.

Objects are created in the Eden space and you appear to have about 400 MB of Eden. (The size between the peak and minimum memory usage)

This indicates you are creating about 3 of these every 3 hours or about 400 MB/hour. Note: your monitoring tool could be creating a lot or even most of this garbage.

After each minor collection, surviving objects are added to the Survivor spaces. Once these objects have been copied enough times they are added to the tenured space.

As you are using JMX / RMI, this could be both the main cause of garbage in the eden and retained objects. I suggest you reconnect and perform a full GC. This will let you know how much is actually being retained.

If the amount retained after a full GC is increasing, you might have a memory leak.

like image 183
Peter Lawrey Avatar answered Nov 20 '22 09:11

Peter Lawrey