<?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: Why is there Constant Memory growth with Search Head and Universal Forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/647685#M110141</link>
    <description>&lt;P&gt;It's not a splunkd memory leak. It's how the memory allocated depending on overcommit setting.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2023 22:09:55 GMT</pubDate>
    <dc:creator>hrawat</dc:creator>
    <dc:date>2023-06-20T22:09:55Z</dc:date>
    <item>
      <title>Why is there constant memory growth with Search Head and Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/635030#M108664</link>
      <description>&lt;P&gt;Installed Universal forwarder and no inputs are added yet, still gradual memory growth.&lt;BR /&gt;Why there is constant memory growth with&amp;nbsp;Universal Forwarder?&lt;BR /&gt;More importantly i&lt;SPAN&gt;n the K8 cluster setting, every extra MB memory usage matters.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Applicable for all splunk instances except Indexers/Heavy forwarders.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 06:05:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/635030#M108664</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2023-05-09T06:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is there Constant Memory growth with Search Head and Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/635033#M108666</link>
      <description>&lt;P&gt;The reason for memory growth is auto tuning for&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;max_inactive and&amp;nbsp;lowater_inactive&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;configurations in limits.conf.&lt;BR /&gt;With auto tuning,&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;max_inactive = 96&amp;nbsp;&lt;FONT color="#000000"&gt;( if total system memory is &amp;lt; 8GB)&lt;/FONT&gt;&lt;BR /&gt;max_inactive = 1024&amp;nbsp;&amp;nbsp;&lt;FONT color="#000000"&gt;( if total system memory is &amp;gt;= 8GB and &amp;lt; 26GB )&lt;/FONT&gt;&lt;BR /&gt;max_inactive =&amp;nbsp;32768&amp;nbsp;&amp;nbsp;&lt;FONT color="#000000"&gt;( if total system memory is &amp;gt;= 26GB)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;lowater_inactive = (max_inactive/3)&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;max_inactive = &amp;lt;integer&amp;gt;
* The Maximum number of inactive input channel configurations to keep in cache.
* Each source/sourcetype/host combination requires an independent input
  channel, which contains all relevant settings for ingestion.
* When set to 'auto', the Splunk platform will tune this setting based on the
  physical RAM present in the server at startup.
* Increasing this number might help with low ingestion throughput when there
  are no blocked queues (i.e., no 'blocked=true' events for 'group=queue' in
  metrics.log), and splunkd is creating a very high number of new input
  channels (see the value of 'new_channels' in
  'group=map, name=pipelineinputchannel', also in metrics.log), usually in the
  order of thousands. However, this action is only effective when those input
  channels could have been reused: for example, the source, sourcetype, and
  host fields are not generated randomly and tend to be reused within the
  lifetime of cached channel entries.
* Default: auto

lowater_inactive = &amp;lt;integer&amp;gt;
* Size of the inactive input channel cache after which entries will be
  considered for recycling: having its memory reused for storing settings
  for a different input channel.
* When set to 'auto', the Splunk platform will tune this setting value based
  on the value of 'max_inactive'.
* Default: auto&lt;/PRE&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;As a result Universal forwarder/Search Head is creating a minimum cache of inactive channels as per&amp;nbsp;&lt;FONT color="#FF0000"&gt;lowater_inactive&lt;/FONT&gt; configuration.&lt;BR /&gt;However these high settings are useful for only Indexer and Heavy forwarder. For edge Universal forwarder and search head these high values don't matter.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Workaround:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;Set `max_inactive` as low as possible.&lt;BR /&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Example&lt;BR /&gt;[input_channels]&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;max_inactive=10&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 22:14:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/635033#M108666</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2023-04-17T22:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Constant Memory growth with Universal Forwarder.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/635035#M108668</link>
      <description>&lt;P&gt;Unless you deliberately disable inputs there are at least some internal splunk inputs enabled by default right after the installation. So splunk reads its own logs and wants to send them to the indexers, as configured in outputs.conf. You can't therefore say that you just installed the UF and didn't enable any inputs.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 16:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/635035#M108668</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-03-18T16:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why is there Constant Memory growth with Search Head and Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/642567#M109526</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;I believe the intent of the original post is memory usage of a newly installed Splunk UF that hasn't been configured with additional `inputs.conf` aside from Splunk's defaults.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/118813"&gt;@hrawat&lt;/a&gt;&amp;nbsp;What, if any, drawbacks are there to setting `&lt;SPAN&gt;max_inactive = 10`? Splunk Support referred me to your post for a support case I filed that matches your original post.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 00:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/642567#M109526</guid>
      <dc:creator>jstratton</dc:creator>
      <dc:date>2023-05-09T00:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is there Constant Memory growth with Search Head and Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/642569#M109527</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224044"&gt;@jstratton&lt;/a&gt;&amp;nbsp;no negative impact. You can also set&amp;nbsp;&lt;SPAN&gt;max_inactive =&amp;nbsp;96 which was the default value for all splunk versions upto 7.3.6.&lt;BR /&gt;&lt;BR /&gt;Higher&amp;nbsp;max_inactive is needed only on receiving side.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 01:09:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/642569#M109527</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2023-05-09T01:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is there Constant Memory growth with Search Head and Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/647089#M110038</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224044"&gt;@jstratton&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;vm.overcommit_memory = 1 not ok. It must be&amp;nbsp;vm.overcommit_memory = 0.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 05:29:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/647089#M110038</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2023-06-15T05:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is there Constant Memory growth with Search Head and Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/647093#M110039</link>
      <description>&lt;P&gt;vm.overcommit_memory has nothing to do with whether the splunkd process leaks memory or not. It changes the kernel's memory management mechanisms and might cause it to trigger oom-killer earlier or later but it has nothing to do with the process itself.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 06:06:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/647093#M110039</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-06-15T06:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is there Constant Memory growth with Search Head and Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/647685#M110141</link>
      <description>&lt;P&gt;It's not a splunkd memory leak. It's how the memory allocated depending on overcommit setting.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 22:09:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-there-constant-memory-growth-with-Search-Head-and/m-p/647685#M110141</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2023-06-20T22:09:55Z</dc:date>
    </item>
  </channel>
</rss>

