Ad Widget

Collapse

Problem : Zapcat with JRockit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • denisss
    Member
    • May 2011
    • 36

    #1

    Problem : Zapcat with JRockit

    Hi,

    always the same problem, I still manage to better understand what is the real problem. I'll try my best to describe the problem, and I hope someone can help me.

    For a while, I try to monitor JRockit JVM for Tomcat. To do this, I chose the solution zabbix + zapcat. The only problem, zapcat was designed for Sun JVM. After much research (and lots of little details forgotten stupidly), I found that there was apparently only one small difference to enable the JMX agent necessary zapcat:

    For Sun JVM:
    -Dcom.sun.management.jmxremote

    For JRockit:
    -Dcom.oracle.management.jmxremote

    I confess that I saw a little ashamed that I took time to find this ... But it turned out that this was not the only difference.

    To test, I first tried with a Sun JVM to verify that everything worked properly. After several parameters forgotten (unblocking listening ports for example ...), everything was OK, MBeans (created by the JMX agent) were correctly transmitted by the Zapcat JMX Bridge to Zabbix server.
    I therefore turn to JRockit, and there the beginning of the investigation begins:

    After putting the correct argument in the Tomcat console I could see that the JMX bridge was done correctly:

    Click image for larger version

Name:	Tomcat_JRockit.jpg
Views:	1
Size:	46.1 KB
ID:	315778
    Click image for larger version

Name:	zabbix_JRockit.png
Views:	1
Size:	3.5 KB
ID:	315780

    But there is a problem of MBeans:

    Click image for larger version

Name:	Wireshark_JRockit.jpg
Views:	1
Size:	24.5 KB
ID:	315779

    Each JMX demands from zabbix's server, the agent returns that is not supported (although these demands worked correctely with Sun's JVM):
    jmx[Catalina:type=Manager,path=/,host=localhost][activeSessions]

    I have several assumptions, some may be deficient:
    - The command doesn't enable the JMX agent (there was another command, -Xmanagement, but prevented from starting the Tomcat server)
    - There is a difference between JRockit's MBeans and Sun JVM MBeans (but which?)
    - (more wacky, I think) the command that enables the JMX agent, opens a default listening port to the local machine, the default listening port is noted in the Zapcat agent to retrieve and transmit MBeans . But this default listening port can be different for JRockit?

    I despair about this problem, would really need help ... Please let me know your ideas

    Thanks
  • denisss
    Member
    • May 2011
    • 36

    #2
    I found, another simple solution where I missed ... It's time I take a vacation!

    Beans are different: 'Catalina' should be replaced by 'java.lang'

    Comment

    Working...