All Apps and Add-ons

Where to add additional JVM arguments to the Splunk Add-on for Java Management Extensions?

New Member

In the previous application ("SPLUNK4JMX") there was a configuration item that allowed us to set extra JVM arguments. These were configured under the "Data inputs" -> JMX -> "JMX Input Name"-> "Additional JVM System Properties".

I have not been able to find a similar location in the new Splunk_TA_jmx add-on. Does the capability to pass JVM arguments remain in this TA? I need to add this JVM argument in order to read the JMX MBeans from my IBM Liberty servers:

-Dcom.ibm.ws.jmx.connector.client.disableURLHostnameVerification=true

0 Karma
1 Solution

Explorer

In the more recent JMX add-on, a single JVM process is used for all connections. It's spawned in the jmx.py script, so you need to set it's arguments there.

You can add arguments to it, by modifying the jmx.py script in Splunk_TA_JMX/bin

Roughly line 68:

JAVA_ARGS.insert(-1, "-Dcom.ibm.ws.jmx.connector.client.disableURLHostnameVerification=true")

Yes, it would be nice if the ability to set these properties more easily was returned -- almost every JMX connection that I've used needs something like this to function properly.

View solution in original post

0 Karma

Explorer

In the more recent JMX add-on, a single JVM process is used for all connections. It's spawned in the jmx.py script, so you need to set it's arguments there.

You can add arguments to it, by modifying the jmx.py script in Splunk_TA_JMX/bin

Roughly line 68:

JAVA_ARGS.insert(-1, "-Dcom.ibm.ws.jmx.connector.client.disableURLHostnameVerification=true")

Yes, it would be nice if the ability to set these properties more easily was returned -- almost every JMX connection that I've used needs something like this to function properly.

View solution in original post

0 Karma