jvm.mem[Perm Gen]

104 views
Skip to first unread message

Alejandro Valcarcel - ODEC

unread,
Oct 16, 2014, 5:37:01 AM10/16/14
to zorka...@googlegroups.com
Hi,

using zorka 1.0.7, zabbix 2.2.4, jboss7.1.3, sunjdk1.6.0_45

using Template_Zorka_JVM.xml:
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>2.0</version>
    <date>2013-04-14T04:34:29Z</date>
    <groups>
        <group>
            <name>Templates</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Template_Zorka_JVM</template>
            <name>Template_Zorka_JVM</name>
...
            <items>
...
<item>
                    <name>Perm Gen utilization</name>
                    <type>0</type>
                    <snmp_community/>
                    <multiplier>0</multiplier>
                    <snmp_oid/>
                    <key>jvm.memutil[&quot;Perm Gen&quot;]</key>
...

In zabbix I'm getting that key:

 jvm.memutil["Perm Gen"]

is not supported by zabbix agent so I have disabled the key ;-)

I see on jvm.bsh:

__jvm() {
...
memutil(name) {
    mem_used = zorka.jmx("java", "java.lang:name="+name+",type=MemoryPool", "Usage", "used");
    mem_max = zorka.jmx("java", "java.lang:name="+name+",type=MemoryPool", "PeakUsage", "max");
    if (mem_used == null || mem_max == null) return null;
    if (mem_used.equals(0L) || mem_max.equals(0L)) return 0.0;
    return 100.0 * mem_used.longValue() / mem_max.longValue();
  }
...

Maybe the combination of template and .bsh are not the correct ones?
I was just wondering, how to read the item. 


Alejandro Valcarcel - ODEC

unread,
Oct 16, 2014, 7:16:42 AM10/16/14
to zorka...@googlegroups.com
discovered my self:

item name "Template_Zorka_JVM: Perm Gen utilization" using key "jvm.memutil["Perm Gen"]" and it's trigger only works for 32bits jvms :-(

 since my jvms are 64bits only "PS Perm Gen" is avaliable ;-)

Changed the item and trigger and OK. 



Rafal Lewczuk

unread,
Oct 17, 2014, 2:56:15 PM10/17/14
to zorka...@googlegroups.com

Memory pool names vary depending on which garbage collector implementation is used at the moment. Difference between 32 and 64 bit is really difference between default GC implementations used.

Regarding this particular template, memory pools are detected by zabbix discovery feature and this particular item is there because trigger had to be configured for it. It should really be configurable, so I've replaced "Perm Gen" with macro (which defaults to "Perm Gen"). Change will appear in nearest release.

Regards,
rle

Reply all
Reply to author
Forward
0 new messages