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


Mohit Garg <gargmohit3890@...>
 

​Hi Team,

I am deploying application on cloud foundry with 1 Gb memory. It fails
after sometime when i push load on it. Could you help me the tool with
which I can analyse my memory usage on cloud foundry.
At my end I deployed my app on localmachine (deployed on system in tomcat)
and analysed with new relic, and everything was fine.I tried to integrate
Newrelic with my app but failed to do thus unable to analyse the app.

Please help me in integrating the new relic with my app or suggest me tool
for cloud foundry.

Thanks in advance,
Mohit Garg


Paul Bakare
 

Mohit,

Have you tried Ops metrics,
https://docs.pivotal.io/pivotalcf/customizing/use-metrics.html . You can
easily view memory usage using JMX client jconsole

HTH

On Wed, Feb 10, 2016 at 5:19 AM, Mohit Garg <gargmohit3890(a)gmail.com> wrote:


​Hi Team,

I am deploying application on cloud foundry with 1 Gb memory. It fails
after sometime when i push load on it. Could you help me the tool with
which I can analyse my memory usage on cloud foundry.
At my end I deployed my app on localmachine (deployed on system in tomcat)
and analysed with new relic, and everything was fine.I tried to integrate
Newrelic with my app but failed to do thus unable to analyse the app.

Please help me in integrating the new relic with my app or suggest me tool
for cloud foundry.

Thanks in advance,
Mohit Garg
--
Odeyemi 'Kayode O.
http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde


Gwenn Etourneau
 

OpsMetrics is a pivotal product for PCF. I don't think It's intend to be
use outside of PCF.


Of course you can use new relic but it depends on which runtime, seems you
are using Java Buildpack the documentation is here

https://github.com/cloudfoundry/java-buildpack/blob/master/docs/framework-new_relic_agent.md
https://www.cloudfoundry.org/monitoring-cloud-foundry-applications-with-new-relic/

If you use, Diego you can get a lot of metrics through the firehose
(ContainerMetrics) there is plenty of solution to listen to the firehose.
You can use https://github.com/logsearch/logsearch-for-cloudfoundry which
is a fully ELK stack and OSS.

On Wed, Feb 10, 2016 at 2:58 PM, Kayode Odeyemi <dreyemi(a)gmail.com> wrote:

Mohit,

Have you tried Ops metrics,
https://docs.pivotal.io/pivotalcf/customizing/use-metrics.html . You can
easily view memory usage using JMX client jconsole

HTH

On Wed, Feb 10, 2016 at 5:19 AM, Mohit Garg <gargmohit3890(a)gmail.com>
wrote:


​Hi Team,

I am deploying application on cloud foundry with 1 Gb memory. It fails
after sometime when i push load on it. Could you help me the tool with
which I can analyse my memory usage on cloud foundry.
At my end I deployed my app on localmachine (deployed on system in
tomcat) and analysed with new relic, and everything was fine.I tried to
integrate Newrelic with my app but failed to do thus unable to analyse the
app.

Please help me in integrating the new relic with my app or suggest me
tool for cloud foundry.

Thanks in advance,
Mohit Garg


--
Odeyemi 'Kayode O.
http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde


Mohit Garg <gargmohit3890@...>
 

Hi All,

Can any tell me how to change the Garbage collection policy in
javabuildpack.
I know Default policy is parallel GC for minor collection and MarkAndSweep
for Full GC.

But I want to change it to G1GC collection. Could you help where to
configure the changes in buildpack or in my manifest file.

Thanks,
Mohit



--
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-tp3716p3823.html
Sent from the CF Dev mailing list archive at Nabble.com.


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.