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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...