<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Monitoring of Java Virtual Machines with JMX stopped working on four virtual machines in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-of-Java-Virtual-Machines-with-JMX-stopped-working-on/m-p/314075#M37547</link>
    <description>&lt;P&gt;Does anyone know anything about this? We are still getting these errors on some of the Universal Forwarders&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 21:50:17 GMT</pubDate>
    <dc:creator>thirusama</dc:creator>
    <dc:date>2018-10-23T21:50:17Z</dc:date>
    <item>
      <title>Monitoring of Java Virtual Machines with JMX stopped working on four virtual machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-of-Java-Virtual-Machines-with-JMX-stopped-working-on/m-p/314073#M37545</link>
      <description>&lt;P&gt;JMX monitoring stopped working on 4 of our VMs, where as the other servers (around 100) are still working. There was an upgrade of OS on all of these machines along with Java upgrade. Nothing seem different from working ones to non-working ones.&lt;/P&gt;

&lt;P&gt;We are using config file &amp;amp; this is how our &lt;STRONG&gt;inputs.conf&lt;/STRONG&gt; looks like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[jmx://jmx]
config_file = config.xml
_TCP_ROUTING = myindexset
polling_frequency = 60
sourcetype = jmx
index = my_index_jmx
disabled = 0
interval = 60
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Below are the errors/messages, we are getting. Did anyone face similar issue?&lt;/P&gt;

&lt;P&gt;Taking one non-working host as as example, it stopped receiving data since "9/30/17 1:25:11.542 AM".&lt;BR /&gt;
This is from "/opt/splunkforwarder/var/log/splunk/&lt;STRONG&gt;jmx.log&lt;/STRONG&gt;"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 2017-09-30 01:25:49,924 - com.splunk.modinput.ModularInput -159035 [Thread-1] ERROR  - Probing socket connection to SplunkD failed.Eith
    er SplunkD has exited ,or if not,  check that your DNS configuration is resolving your system's hostname (127.0.0.1) correctly : Connection refused

2017-09-30 01:25:57,735 - com.splunk.modinput.ModularInput -166846 [main] ERROR  - Error executing modular input : Connection refused : java.lang.RuntimeException: Connection refused
        at com.splunk.HttpService.send(Unknown Source)
        at com.splunk.Service.send(Unknown Source)
        at com.splunk.HttpService.get(Unknown Source)
        at com.splunk.ResourceCollection.list(Unknown Source)
        at com.splunk.ResourceCollection.refresh(Unknown Source)
        at com.splunk.ResourceCollection.refresh(Unknown Source)
        at com.splunk.Resource.validate(Unknown Source)
        at com.splunk.ResourceCollection.validate(Unknown Source)
        at com.splunk.ResourceCollection.values(Unknown Source)
        at com.splunk.jmx.InfoManager.getAccounts(Unknown Source)
        at com.splunk.jmx.JMXModularInputV3.doRun(Unknown Source)
        at com.splunk.modinput.ModularInput.init(Unknown Source)
        at com.splunk.jmx.JMXModularInputV3.main(Unknown Source)
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
        at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
        at sun.net.www.protocol.https.HttpsClient.&amp;lt;init&amp;gt;(HttpsClient.java:264)
        at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
        ... 13 more
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Below is from &lt;STRONG&gt;splunkd.log&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09-30-2017 01:25:44.479 -0700 INFO  WatchedFile - Will use tracking rule=modtime for file='/etc/alternatives/java_sdk_oracle/lib/missioncontrol/plugins/com.jrockit.mc.rjmx_5.5.1.172852/plugin.properties'.

09-30-2017 01:25:57.735 -0700 ERROR ExecProcessor - message from "python /opt/splunkforwarder/etc/apps/Splunk_TA_jmx/bin/jmx.py" Error executing modular input : Connection refused : java.lang.RuntimeException: Connection refused
09-30-2017 01:25:57.735 -0700 ERROR ExecProcessor - message from "python /opt/splunkforwarder/etc/apps/Splunk_TA_jmx/bin/jmx.py"
       at com.splunk.HttpService.send(Unknown Source)
09-30-2017 01:25:57.735 -0700 ERROR ExecProcessor - message from "python /opt/splunkforwarder/etc/apps/Splunk_TA_jmx/bin/jmx.py"
       at com.splunk.Service.send(Unknown Source)
09-30-2017 01:25:57.735 -0700 ERROR ExecProcessor - message from "python /opt/splunkforwarder/etc/apps/Splunk_TA_jmx/bin/jmx.py"
       at com.splunk.HttpService.get(Unknown Source)
09-30-2017 01:25:57.735 -0700 ERROR ExecProcessor - message from "python /opt/splunkforwarder/etc/apps/Splunk_TA_jmx/bin/jmx.py"
       at com.splunk.ResourceCollection.list(Unknown Source)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;java -version on both WORKING &amp;amp; NON-WORKING VM&lt;BR /&gt;
java version "1.8.0_141"&lt;BR /&gt;
Java(TM) SE Runtime Environment (build 1.8.0_141-b15)&lt;BR /&gt;
Java HotSpot(TM) 64-Bit Server VM (build 25.141-b15, mixed mode)&lt;/P&gt;

&lt;P&gt;We tried to compare everything, tried re-push the app from deployment server. No luck. &lt;/P&gt;

&lt;P&gt;A few things we validated on non-working VM&lt;BR /&gt;
1) port is open to the localhost&lt;BR /&gt;
2) port is configured in JVM/JMX&lt;BR /&gt;
3) JMX metrics are coming fine in the JConsole&lt;/P&gt;

&lt;P&gt;Please let us know if anyone faced similar issue and were able to fix.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-of-Java-Virtual-Machines-with-JMX-stopped-working-on/m-p/314073#M37545</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2020-09-29T16:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring of Java Virtual Machines with JMX stopped working on four virtual machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-of-Java-Virtual-Machines-with-JMX-stopped-working-on/m-p/314074#M37546</link>
      <description>&lt;P&gt;Any help on this is highly appreciated. &lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 17:48:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-of-Java-Virtual-Machines-with-JMX-stopped-working-on/m-p/314074#M37546</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2017-10-24T17:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring of Java Virtual Machines with JMX stopped working on four virtual machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-of-Java-Virtual-Machines-with-JMX-stopped-working-on/m-p/314075#M37547</link>
      <description>&lt;P&gt;Does anyone know anything about this? We are still getting these errors on some of the Universal Forwarders&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 21:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-of-Java-Virtual-Machines-with-JMX-stopped-working-on/m-p/314075#M37547</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2018-10-23T21:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring of Java Virtual Machines with JMX stopped working on four virtual machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-of-Java-Virtual-Machines-with-JMX-stopped-working-on/m-p/314076#M37548</link>
      <description>&lt;P&gt;We found out the root cause for this. Looks like &lt;CODE&gt;Splunk_TA_jmx&lt;/CODE&gt; app requires port 8089 to be enabled. In one of our &lt;CODE&gt;server.conf&lt;/CODE&gt;, below configuration is enabled. After commenting this out, JMX data has started coming in. We had to also install latest version of app (3.2.0).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[httpServer]
disableDefaultPort = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We found this bu running below command on the working and non-working nodes.&lt;BR /&gt;
&lt;CODE&gt;sudo netstat  -tulpn | grep 8089&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 17:28:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Monitoring-of-Java-Virtual-Machines-with-JMX-stopped-working-on/m-p/314076#M37548</guid>
      <dc:creator>thirusama</dc:creator>
      <dc:date>2018-10-25T17:28:32Z</dc:date>
    </item>
  </channel>
</rss>

