Xymon Mailing List Archive search

negative values for HeapMemoryUsage (jmxstat.sh)

list Marco Avvisano
Wed, 27 Feb 2013 14:52:32 +0100
Message-Id: <user-59886d859296@xymon.invalid>

  Try to send to the list..
Someone have similar problems using this script ?
regards
Marco

Il 21/02/2013 10.56, Marco Avvisano ha scritto:
Hi Andy,

i have a problem using your script after i increase memory for one jboss istance.
I add another 1.5g of memory (3g total). The problem is the negative number for HeapMemoryUsage.
The script get right values from bean. The problem is  when it trasform these value in kb.
There some debug:on committed value:

the code :
regexp {^.*committed=([0-9]*),.*init=([0-9]*),.*max=([0-9]*),.*used=([0-9]*)} $d -> committed init max used


^HeapMemoryUsage$ {
              regexp {^.*committed=([0-9]*),.*init=([0-9]*),.*max=([0-9]*),.*used=([0-9]*)} $d -> committed init max used
              debug_print "$d"
              debug_print "VALORE COMMITTED1 $committed"
              append composite $a "Committed"
              debug_print "VALORE COMMITTED3 $committed"
                set committed [expr $committed/1024]
              debug_print "VALORE COMMITTED3 $committed"
                debug_print "got $composite=$committed"


The output:

DBG:  VALORE COMMITTED1 2438594560
DBG:  VALORE COMMITTED3 2438594560
DBG:  VALORE COMMITTED3 -1812864

Seems  that tcl could have some problems working on "big" values.
You have the similar problems ?

best regards,

Marco