Ad Widget

Collapse

Get HeapMemoryUsage's used bytes [Zapcat]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Keitamax
    Junior Member
    • Jun 2011
    • 19

    #1

    Get HeapMemoryUsage's used bytes [Zapcat]

    Hi everyone,
    I have a host with a zapcat monitored java application running, and I'd like to get the heap memory usage related to this app, but I can't figure out what is the JMX query the agent has to execute
    So I have to use JMX on Memory MXBean , the HeapMemoryUsage attribute is a MemoryUsage object, so I can't directly use it. I'd like to get only the 'use' attribute of HeapMemoryUsage.

    In my item, I tried with the following key :
    jmx[java.lang:type=Memory][HeapMemoryUsage][Used]
    (with numeric float type)... but I don't get any value.
    What is the key to use to make it work?
Working...