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!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

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