All Apps and Add-ons

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

colbymontgomery
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

bonito
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

bonito
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.

0 Karma
Get Updates on the Splunk Community!

Index This | What did the zero say to the eight?

June 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

Splunk Observability Cloud's AI Assistant in Action Series: Onboarding New Hires & ...

This is the fifth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Now Playing: Splunk Education Summer Learning Premieres

It’s premiere season, and Splunk Education is rolling out new releases you won’t want to miss. Whether you’re ...