<?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 OutOfMemoryError: Java heap space error in Splunk add-on for JMX in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/OutOfMemoryError-Java-heap-space-error-in-Splunk-add-on-for-JMX/m-p/473341#M8472</link>
    <description>&lt;P&gt;I am trying to reproduce a case where the following error occurs in splunkd.log and as a result data collection stops:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;09-24-2019 21:44:45.713 +0200 ERROR ExecProcessor - message from "python /$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/jmx.py" Exception in thread "Thread-20" java.lang.OutOfMemoryError: Java heap space
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this case, the datacollection resumes only after restarting Splunk.&lt;/P&gt;
&lt;P&gt;I am able to get OutOfMemory Error by reducing the maximum heap space in java by making the following changes in file&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/java_consts.py (line 43) 
JAVA_COMMON_ARGS = [JAVA_EXECUTABLE, "-Xmx8m","-classpath", CLASSPATH, "-Dconfighome=" + CONFIG_HOME,
                    "-Dsplunkhome=" + SPLUNK_HOME]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, in my case, the OutOfMemory Error goes away after a few minutes and datacollection resumes.&lt;/P&gt;
&lt;P&gt;For the issue I am trying to reproduce, 151 inputs are configured in the addon.&lt;/P&gt;
&lt;P&gt;Can anyone tell why this error occurs, how can I reproduce it and is there a way to resolve it?&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jun 2020 18:48:51 GMT</pubDate>
    <dc:creator>kkarthik_splunk</dc:creator>
    <dc:date>2020-06-07T18:48:51Z</dc:date>
    <item>
      <title>OutOfMemoryError: Java heap space error in Splunk add-on for JMX</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/OutOfMemoryError-Java-heap-space-error-in-Splunk-add-on-for-JMX/m-p/473341#M8472</link>
      <description>&lt;P&gt;I am trying to reproduce a case where the following error occurs in splunkd.log and as a result data collection stops:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;09-24-2019 21:44:45.713 +0200 ERROR ExecProcessor - message from "python /$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/jmx.py" Exception in thread "Thread-20" java.lang.OutOfMemoryError: Java heap space
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this case, the datacollection resumes only after restarting Splunk.&lt;/P&gt;
&lt;P&gt;I am able to get OutOfMemory Error by reducing the maximum heap space in java by making the following changes in file&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/java_consts.py (line 43) 
JAVA_COMMON_ARGS = [JAVA_EXECUTABLE, "-Xmx8m","-classpath", CLASSPATH, "-Dconfighome=" + CONFIG_HOME,
                    "-Dsplunkhome=" + SPLUNK_HOME]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, in my case, the OutOfMemory Error goes away after a few minutes and datacollection resumes.&lt;/P&gt;
&lt;P&gt;For the issue I am trying to reproduce, 151 inputs are configured in the addon.&lt;/P&gt;
&lt;P&gt;Can anyone tell why this error occurs, how can I reproduce it and is there a way to resolve it?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 18:48:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/OutOfMemoryError-Java-heap-space-error-in-Splunk-add-on-for-JMX/m-p/473341#M8472</guid>
      <dc:creator>kkarthik_splunk</dc:creator>
      <dc:date>2020-06-07T18:48:51Z</dc:date>
    </item>
  </channel>
</rss>

