Re: Tool To analyse memory on cf ||Application crashing on cloud foundry with java.lang.OutOfMemoryError: Metaspace


Mohit Garg <gargmohit3890@...>
 

Hi All,

I have configured new relic with my application on cloud foundry.

My applicaition is crashing on cloud foundry with following error:
java.lang.OutOfMemoryError: Metaspace
2016-02-12T09:09:52.71+0000 [App/0] OUT #
-XX:OnOutOfMemoryError="/home/vcap/app/.java-buildpack/open_jdk_jre/bin/killjava.sh"
2016-02-12T09:09:52.71+0000 [App/0] OUT # Executing /bin/sh -c
"/home/vcap/app/.java-buildpack/open_jdk_jre/bin/killjava.sh"

But in new relic my metaspace is less than total allocated memory. and
loaded class count is 13.9K.

So I have few questions:

Does Code Cache memory and Used Compressed Class Space is part of Used
Metaspace in new relic graph under JVMs tab?
Does Used Metaspace contains the size of the loaded classes in new relic
graph under JVMs tab?
How to find the size of loaded classes in jvm by newrelic?
P.S. : I know that loaded class is part of java Metaspace. Getting confused
with new relic graphs





--
View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-Tool-To-analyse-memory-on-cf-Application-crashing-on-cloud-foundry-with-java-lang-OutOfMemorye-tp3716p3825.html
Sent from the CF Dev mailing list archive at Nabble.com.

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.