<?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: App - Monitoring of Java Virtual Machines in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138407#M11737</link>
    <description>&lt;P&gt;Is the Splunk process and the JVM process running under the same User ?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Apr 2014 12:28:35 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2014-04-25T12:28:35Z</dc:date>
    <item>
      <title>App - Monitoring of Java Virtual Machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138401#M11731</link>
      <description>&lt;P&gt;I've been attempting to install this app within the Universal Forwarder on a Solaris server. I've had some success with installing the app on my Splunk indexer, and connecting to a remote JMX port, but wanted to try this method.&lt;/P&gt;

&lt;P&gt;After installing and setting up the .xml file, I get this error in splunkd.log when starting the Universal Forwarder. Can anyone advise where I am going wrong ?&lt;/P&gt;

&lt;P&gt;Solaris server is running JRE 1.6.0_45. &lt;BR /&gt;
Splunk version 6.&lt;/P&gt;

&lt;P&gt;Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError: sun.tools.attach.LinuxVirtualMachine.isLinuxThreads()Z&lt;BR /&gt;
at sun.tools.attach.LinuxVirtualMachine.isLinuxThreads(Native Method)&lt;BR /&gt;
at sun.tools.attach.LinuxVirtualMachine.&lt;CLINIT&gt;(LinuxVirtualMachine.java:325)&lt;BR /&gt;
at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:46)&lt;BR /&gt;
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:195)&lt;BR /&gt;
at com.splunk.modinput.jmx.JMXModularInput$ProcessServerThread.getURLForPid(Unknown Source)&lt;BR /&gt;
at com.splunk.modinput.jmx.JMXModularInput$ProcessServerThread.getJMXServiceURL(Unknown Source)&lt;BR /&gt;
at com.splunk.modinput.jmx.JMXModularInput$ProcessServerThread.connect(Unknown Source)&lt;BR /&gt;
at com.splunk.modinput.jmx.JMXModularInput$ProcessServerThread.run(Unknown Source)&lt;/CLINIT&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 15:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138401#M11731</guid>
      <dc:creator>saas_sirsidynix</dc:creator>
      <dc:date>2014-04-22T15:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: App - Monitoring of Java Virtual Machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138402#M11732</link>
      <description>&lt;P&gt;I read my post again and realised I didn't mention that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Yes, I'm attempting to connect directly to the PID of a tomcat process.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 11:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138402#M11732</guid>
      <dc:creator>saas_sirsidynix</dc:creator>
      <dc:date>2014-04-23T11:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: App - Monitoring of Java Virtual Machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138403#M11733</link>
      <description>&lt;P&gt;You might not have &lt;STRONG&gt;libattach.so&lt;/STRONG&gt; in your Java environment.&lt;/P&gt;

&lt;P&gt;Refer to this from the docs :&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;JVM "ATTACH" NATIVE LIBRARYS&lt;/P&gt;

&lt;P&gt;When connecting directly to local JVM&lt;BR /&gt;
using a process ID, native librarys&lt;BR /&gt;
are used. You shouldn't need to do&lt;BR /&gt;
anything, they are loaded&lt;BR /&gt;
automatically.&lt;/P&gt;

&lt;P&gt;Windows : JRE_HOME/bin/attach.dll&lt;BR /&gt;
Linux :&lt;BR /&gt;
JDK_HOME/jre/lib/i386/libattach.so&lt;/P&gt;

&lt;P&gt;NOTE : For some reason the Linux&lt;BR /&gt;
"attach" library is only packaged in&lt;BR /&gt;
the JRE that is part of a JDK install.&lt;BR /&gt;
Weird. So if you don't have&lt;BR /&gt;
libattach.so , you can get it from the&lt;BR /&gt;
JDK and copy it into the jre lib&lt;BR /&gt;
directory.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138403#M11733</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2020-09-28T16:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: App - Monitoring of Java Virtual Machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138404#M11734</link>
      <description>&lt;P&gt;JAVA_HOME points to /usr/java&lt;/P&gt;

&lt;P&gt;I have a libattach.so in /usr/java/jre/lib/i386 and /usr/java/jre/lib/amd64&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 12:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138404#M11734</guid>
      <dc:creator>saas_sirsidynix</dc:creator>
      <dc:date>2014-04-23T12:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: App - Monitoring of Java Virtual Machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138405#M11735</link>
      <description>&lt;P&gt;You are going to have to get the JMX Mod Input to use the sun.tools.attach.SolarisVirtualMachine implementation. &lt;/P&gt;

&lt;P&gt;A couple of ways to go about this. &lt;/P&gt;

&lt;P&gt;Browse to SPLUNK_HOME/etc/apps/jmx_ta/bin/lib/lin&lt;/P&gt;

&lt;P&gt;You should see a file called tools-lin.jar&lt;/P&gt;

&lt;P&gt;Try 2 things : &lt;/P&gt;

&lt;P&gt;1) delete this file&lt;/P&gt;

&lt;P&gt;or if that doesn't work&lt;/P&gt;

&lt;P&gt;2) replace this file with the tools.jar from the Java Environment on your Solaris host&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:27:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138405#M11735</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2020-09-28T16:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: App - Monitoring of Java Virtual Machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138406#M11736</link>
      <description>&lt;P&gt;Thanks !&lt;/P&gt;

&lt;P&gt;The first option didn't work, I got this error :&lt;/P&gt;

&lt;P&gt;message from "python jmx.py" Exception in thread "Thread-4" java.lang.NoClassDefFoundError: com/sun/tools/attach/VirtualMachine&lt;/P&gt;

&lt;P&gt;The second option has appeared to have done the trick. I get this error now which I need to look into.&lt;/P&gt;

&lt;P&gt;04-24-2014 12:18:16.733 +0100 ERROR ExecProcessor - message from "python /opt/splunkforwarder/etc/apps/jmx_ta/bin/jmx.py" host=, jmxServiceURL=, jmxport=0, jvmDescription=XXXX, processID=9999,stanza=jmx://ZZZZ,systemErrorMessage="Unable to open door: target process not responding or HotSpot VM not loaded"&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 11:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138406#M11736</guid>
      <dc:creator>saas_sirsidynix</dc:creator>
      <dc:date>2014-04-24T11:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: App - Monitoring of Java Virtual Machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138407#M11737</link>
      <description>&lt;P&gt;Is the Splunk process and the JVM process running under the same User ?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 12:28:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138407#M11737</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2014-04-25T12:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: App - Monitoring of Java Virtual Machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138408#M11738</link>
      <description>&lt;P&gt;No it wasn't , trying that now.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 15:10:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138408#M11738</guid>
      <dc:creator>saas_sirsidynix</dc:creator>
      <dc:date>2014-04-25T15:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: App - Monitoring of Java Virtual Machines</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138409#M11739</link>
      <description>&lt;P&gt;Yep, things seem to be working fine now.&lt;/P&gt;

&lt;P&gt;Thanks for your help !&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 15:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/App-Monitoring-of-Java-Virtual-Machines/m-p/138409#M11739</guid>
      <dc:creator>saas_sirsidynix</dc:creator>
      <dc:date>2014-04-25T15:59:44Z</dc:date>
    </item>
  </channel>
</rss>

