Any plans to support JVM Heap and GC stats using the Java APM agent?


(Jeremy Freedman) #1

Hi,

I was wondering if there are any plans to support monitoring the size of each generation in java's heap and the cpu time spent in gc using the Java APM agent?

I've used other APM products in the past that monitor this and have found it to be very useful.

From googling, I found a few posts that mentioned using jolokia for these stats, however, you'd have to run jolokia as it's own javaagent, and wouldn't be able to run the Java APM agent in that case.


(Felix Barnsteiner) #2

Hi and thanks for checking out Elastic APM!

We are currently working on metrics support. In fact, there is already an open PR: https://github.com/elastic/apm-agent-java/pull/360

Are you actually interested in stats for all memory pools? In the current state of the PR, we only have metrics for heap an non-heap without dedicated metaspace stats, for example. Is that enough for you or do you need more fine-grained stats?

BTW, you can actually add multiple javaagent flags.

Cheers,
Felix


(Jeremy Freedman) #3

Thanks, great to hear there is already a PR for it. The information you are capturing now is definitely helpful.

At least for me, it is also helpful to be able to look at usage of each pool, I'd be interested in the max, committed, and used space of each.

Thanks!


#4

Looking at the PR it appears the JVM heap and GC metrics changes are now merged. Please confirm. If merged, can you point to release information (snapshot or agent build number?)


(Felix Barnsteiner) #5

Hi, it has been merged but not yet been released. You can try out the latest snapshot though: https://github.com/elastic/apm-agent-java/blob/master/README.md#snapshots

You will have to build your own Kibana dashboards for it currently. See the documentation for the metrics here: https://www.elastic.co/guide/en/apm/agent/java/master/metrics.html


(system) closed #6

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.