<?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: Is there a way set CPU and Memory consumption for splunkd process to a particular limit? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-set-CPU-and-Memory-consumption-for-splunkd/m-p/315911#M59114</link>
    <description>&lt;P&gt;Related and also from today - &lt;A href="https://answers.splunk.com/answers/567219/how-can-we-minimize-the-memory-footprint-of-a-forw.html"&gt;How can we minimize the memory footprint of a forwarder?&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2017 16:47:45 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2017-09-01T16:47:45Z</dc:date>
    <item>
      <title>Is there a way set CPU and Memory consumption for splunkd process to a particular limit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-set-CPU-and-Memory-consumption-for-splunkd/m-p/315910#M59113</link>
      <description>&lt;P&gt;We have more than 3000+ forwarders in our environment. Few weeks back unix team has published a report showing all the top process that consume more cpu and memory usage. &lt;/P&gt;

&lt;P&gt;Splunkd was among the top 3. We need to somehow restrict splunkd from taking up so much usage. on few them the report was showing splunkd had taken more than 90% mem usage.&lt;/P&gt;

&lt;P&gt;Please suggest a way to mitigate this issue. &lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 15:52:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-set-CPU-and-Memory-consumption-for-splunkd/m-p/315910#M59113</guid>
      <dc:creator>sandyIscream</dc:creator>
      <dc:date>2017-09-01T15:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way set CPU and Memory consumption for splunkd process to a particular limit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-set-CPU-and-Memory-consumption-for-splunkd/m-p/315911#M59114</link>
      <description>&lt;P&gt;Related and also from today - &lt;A href="https://answers.splunk.com/answers/567219/how-can-we-minimize-the-memory-footprint-of-a-forw.html"&gt;How can we minimize the memory footprint of a forwarder?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 16:47:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-set-CPU-and-Memory-consumption-for-splunkd/m-p/315911#M59114</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-09-01T16:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way set CPU and Memory consumption for splunkd process to a particular limit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-set-CPU-and-Memory-consumption-for-splunkd/m-p/315912#M59115</link>
      <description>&lt;P&gt;The CPU and memory usage for splunkd on a forwarder is directly related to the amount of work it has to do.&lt;/P&gt;

&lt;P&gt;One of the most common reasons for a busy splunkd is that the forwarder is monitoring a lot of files. Even if the files are inactive, it still requires resources to monitor them. If you run &lt;CODE&gt;splunk list monitor&lt;/CODE&gt; on a forwarder, you may be surprised at the list of files that are being watched.&lt;/P&gt;

&lt;P&gt;If that is the case, you should set up regular log file rotation to remove older files from the production servers where the forwarders run. Another alternative is to use the &lt;CODE&gt;ignoreOlderThan&lt;/CODE&gt; setting in inputs.conf. See &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.1/Data/Monitorfilesanddirectorieswithinputs.conf"&gt;Monitor files and directories&lt;/A&gt; for more details, but be careful not to exclude files that might be updated.&lt;/P&gt;

&lt;P&gt;You should find that reducing the number of files monitored will reduce the memory footprint and the cpu usage.&lt;/P&gt;

&lt;P&gt;PS. Greater than 90% CPU usage for splunkd definitely indicates a problem. If not this, then something else is misconfigured. The only time that splunkd &lt;EM&gt;might&lt;/EM&gt; need this much CPU is if it is monitoring a very high volume input... and that may require special attention.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 17:42:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-set-CPU-and-Memory-consumption-for-splunkd/m-p/315912#M59115</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-09-01T17:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way set CPU and Memory consumption for splunkd process to a particular limit?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-set-CPU-and-Memory-consumption-for-splunkd/m-p/315913#M59116</link>
      <description>&lt;P&gt;Yes this was the exact thing we are looking for. On that particular system splunk indeed is monitoring a lot of files. Around 100k different source paths, though there filesystem do have a log rotation policy but maybe the no of files is the problem here.  &lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2017 11:56:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-way-set-CPU-and-Memory-consumption-for-splunkd/m-p/315913#M59116</guid>
      <dc:creator>sandyIscream</dc:creator>
      <dc:date>2017-09-02T11:56:58Z</dc:date>
    </item>
  </channel>
</rss>

