I have problem with monitoring few things on tomcat, specificaly GrabageCollectionAggregator and CPU monitoring. As in image i tried many combinations of \"\", added name=, etc but still it does not work... with other items this thread helped me jmx-tomcat-monitoring, because default template is broken.
Asked
Active
Viewed 659 times
0
-
Please show the key of an item that works for you in this Tomcat instance. – Richlv Aug 17 '17 at 09:05
-
jmx["java.lang:type=Memory","HeapMemoryUsage.used"] works perfectly and i found out that CPU sometimes gets the value but then became not supported.. – Kasik Aug 17 '17 at 10:11
-
What is the error message when it becomes unsupported? If it's about value type, try setting it to "Numeric (float)". – Richlv Oct 02 '17 at 15:10
-
@Richlv well processCpuLoad works somehow but HeapLiveSet is still not Supported with error: com.sun.management:type=GarbageCollectionAggregator – Kasik Oct 04 '17 at 05:36
-
I think problem might be with com.sun.management because everything else works. Any ideas how to fix that? – Kasik Jan 18 '18 at 07:06
-
I recall fixing something similar a long time ago, but don't recall the details. Any useful messages in the Java gateway log? If not, try increasing the verbosity of that log. – Richlv Jan 18 '18 at 09:47
1 Answers
0
HeapLiveSet is a synthetic item - in other words it's a client side calculated value. Those items can not be requested directly via jmx but you can calculate it yourself with all the values under LastGcInfo.

Luuklag
- 3,897
- 11
- 38
- 57

user218594
- 1
- 1