All Apps and Add-ons

JMX_TA 2.0 with custom classpath for Weblogic 10.3 not working

jason_mannering
Engager

I am trying to connect the latest version of Splunk for JMX (Monitoring of Java Virtual Machines with JMX) to be able to query specific Weblogic health metrics of remote Weblogic instances. I have added the wljmxclient.jar in the ../etc/apps/jmx_ta/lib directory and have created a custom xml config in the ../etc/apps/jmx_ta/bin/config/ directory to point the the remote instance and jmx port. I have also attempted to add "-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote" to the command jmx.py file e.g.

java_args = [ JAVA_EXECUTABLE,"-Xbootclasspath/a:"+BOOTPATH, "-classpath",CLASSPATH,"-Xms"+MIN_HEAP,"-Xmx"+MAX_HEAP,"-Dconfighome="+CONFIG_HOME,JAVA_MAIN_CLASS,"-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote"]

With "-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote"om the command line the app (JMX.PY file) does not appear to be working. It stops seeing any JMX connections, even those that I have set up locally on the Splunk instance to use for testing purposes and had been working correctly. When I remove the addition classpath argument however the app begins to work correctly. Any ideas as to what I might be doing wrong? Perhaps adding the additional classpath attributes incorrectly?

0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

You list ordering is wrong, place the JVM system property before the main class name variable :

java_args = [ JAVA_EXECUTABLE,"-Xbootclasspath/a:"+BOOTPATH, "-classpath",CLASSPATH,"-Xms"+MIN_HEAP,"-Xmx"+MAX_HEAP,"-Dconfighome="+CONFIG_HOME,"-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote",JAVA_MAIN_CLASS]

View solution in original post

Damien_Dallimor
Ultra Champion

You list ordering is wrong, place the JVM system property before the main class name variable :

java_args = [ JAVA_EXECUTABLE,"-Xbootclasspath/a:"+BOOTPATH, "-classpath",CLASSPATH,"-Xms"+MIN_HEAP,"-Xmx"+MAX_HEAP,"-Dconfighome="+CONFIG_HOME,"-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote",JAVA_MAIN_CLASS]

Damien_Dallimor
Ultra Champion

Also check your jmxserver connection settings for weblogic in your config.xml file , you will most likely need to use the "jmxServiceURL" attribute to format the weblogic specific jmx server url string.

0 Karma

Damien_Dallimor
Ultra Champion

Any errors should get written to splunkd.log.

You can search this : "index=_internal ExecProcessor error jmx.py"

0 Karma

jason_mannering
Engager

Thanks Damien. That appears to have fixed that issues and the app appears to be starting correctly now and we are seeing the jmx metrics from our local Jboss test instacne coming through. We are however still having issues with connectivity to Weblogic, although it could be a firewall issue which we are investigating.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...