What does Percentage of Java Heap Used under GC Monitor show?
I want to keep a track of Java heap size and threads.
Vaibhav --> % of Java Heap Used shows = Java Heap Used \ Total Java Heap assigned to that JVM instance.
You can keep a track of java heap usage % metric or 'heap in use'
Regarding - 'I want to keep a track of Java Heap size used by particular service'
You cannot track heap usage per service (I am assuming you are referring webservice or SOA call) but you can track heap usage for that JVM instance.
But what could be done is, you can stop all other services and test for an individual service and track your heap utilization.
Hope it helps.
Anyone has any idea on this ? I want to keep a track of Java Heap size used by particular service. Can I track java heap used by particular service or will it show the java heap used by the entire application ?
Scripts is where you want to place the calculcators, unless you meant under "examples"?
Yes, I knew there was one written! lol
It's under <em_home>/examples/scripts, exactly where Viruvaibhav_apm mentions. Just copy the JS file to <em_home>/scripts; no EM restart needed.
Lolz.. yeah I was referring the examples folder only.
Hi, I didn't get any Java Heap calculator under EM/ examples/scripts folder. Also I searched under community docs. Could you please let me know the exact name of the calculator and where can I get the same ?
May I know what exactly are you looking for from that script ? Also your APM version please.
I want to show the exact GC Heap, Java Heap and Threads currently consumed based on the overall available capacity. If I see the graph I cannot find the overall capacity along with the heap currently used so that we can be sure of how much capacity is still available.
APM version - 18.104.22.168
GC heap = Java heap. The metric "GC Monitor:Percentage of Java Heap Used" shows you the relative value (%). If you want to see both the absolute and relative on one page you have to build a dashboard or type view.
Threads are shown under app server node (e.g. Tomcat) and/or JMX node.
Seems like Guenter’s suggestion should work. Are you looking for a percentage of “Used GC Heap vs Total GC Heap” for example? That’s what Guenter pointed to. For Threads, some appservers publish a similar counter through PMI or JMX.
Or I misunderstand what you need?
Retrieving data ...