<?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: Constant Memory growth with Universal Forwarder UDP / tcp inputs and third party forwarding enabled. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder-UDP-tcp-inputs/m-p/620337#M106908</link>
    <description>&lt;P&gt;This issue is applicable only on UF if&amp;nbsp;&lt;FONT color="#FF0000"&gt;sendCookedData=false.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;You may want to check&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder/m-p/635030#M108664" target="_self"&gt;General forwarder memory growth&lt;/A&gt;&amp;nbsp;.&lt;BR /&gt;&lt;BR /&gt;Do you see a trend, where channels are gradually increasing and one of the tcpout group is set to&amp;nbsp;&lt;FONT color="#FF0000"&gt;sendCookedData=false?&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Metrics.log entries pointing to&amp;nbsp; channels growth.&lt;BR /&gt;INFO&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Metrics - group=map, ingest_pipe=0, name=pipelineinputchannel, &lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;current_size=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;12950&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;&lt;FONT color="#333333"&gt;INFO&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Metrics - group=map, ingest_pipe=0, name=pipelineinputchannel,&lt;/FONT&gt; &lt;SPAN class=""&gt;&lt;STRONG&gt;current_size=&lt;/STRONG&gt;&lt;/SPAN&gt;12955&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;&lt;FONT color="#333333"&gt;INFO&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Metrics - group=map, ingest_pipe=0, name=pipelineinputchannel,&lt;/FONT&gt; &lt;SPAN class=""&gt;&lt;STRONG&gt;current_size=&lt;/STRONG&gt;&lt;/SPAN&gt;12959&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#333333"&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;It's a known issue with universal forwarder where some sources (monitor/udp/tcp) may emit EOF marker late. This results in UF not able to free up channels. However the same config ( 3rd party forwarding) on HF is not an issue.&lt;BR /&gt;One way to test if you are hitting the issue, restart 3rd party receiver. If UF memory drops immediately, apply following workaround.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#333333"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;BR /&gt;Until the issue is fixed by new patch, use following workaround.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#333333"&gt;&lt;SPAN class=""&gt;Set following config for 3rd party tcpout group only.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;forceTimebasedAutoLB=true&lt;/PRE&gt;&lt;P class=""&gt;&lt;FONT color="#333333"&gt;&lt;SPAN class=""&gt;This setting will force close connections and allow consolidation of channels. Thus every `&lt;EM&gt;autoLBFrequency&lt;/EM&gt;` interval reclaim memory.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp;For all 8.2.x and older releases,&amp;nbsp;forceTimebasedAutoLB works only if the total number of distinct &lt;STRONG&gt;3rd party valid target &amp;lt;ip address:port&amp;gt; combinations are &amp;gt;&lt;/STRONG&gt; 1. If there is only one receiver,&amp;nbsp;forceTimebasedAutoLB setting is no-op. Please don't add dummy/no-existent&amp;nbsp;&amp;lt;ip address:port&amp;gt; combination.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#333333"&gt;&lt;SPAN class=""&gt;If your 3rd party receiver is on same box as UF, then you should be able to&amp;nbsp; make &amp;gt; 1 receivers by adding `127.0.0.1` in `server` list.&lt;BR /&gt;&lt;BR /&gt;[tcpout:thirdpartytcpout]&lt;BR /&gt;server=127.0.0.1:&amp;lt;target port&amp;gt;, &amp;lt;ip address of UF host&amp;gt;:&amp;lt;target port&amp;gt;&lt;BR /&gt;sendCookedData=false&lt;BR /&gt;&lt;BR /&gt;For 9.x UFs,&amp;nbsp;&lt;EM&gt;connectionsPerTarget&lt;/EM&gt; setting, if set to `auto` or &amp;gt; 1, then&amp;nbsp;forceTimebasedAutoLB=true works for single receiver tcpout groups.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;connectionsPerTarget = [&amp;lt;integer&amp;gt;|auto]
* The maximum number of allowed outbound connections for each target IP address
  as resolved by DNS on the machine.
* A value of "auto" or &amp;lt; 1 means splunkd configures a value for connections for each
  target IP address. Depending on the number of IP addresses that DNS resolves,
  splunkd sets 'connectionsPerTarget' as follows:
  * If the number of resolved target IP addresses is greater than or equal to 10,
    'connectionsPerTarget' gets a value of 1.
  * If the number of resolved target IP addresses is greater than 5
    and less than 10, 'connectionsPerTarget' gets a value of 2.
  * If the number of resolved target IP addresses is greater than 3
    or less than equal to 5, 'connectionsPerTarget' gets a value of 3.
  * If the number of resolved target IP addresses is less than or equal to 3,
    'connectionsPerTarget' gets a value of 4.
* Default: auto&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Mar 2023 14:19:58 GMT</pubDate>
    <dc:creator>hrawat</dc:creator>
    <dc:date>2023-03-18T14:19:58Z</dc:date>
    <item>
      <title>Constant Memory growth with Universal Forwarder UDP / tcp inputs and third party forwarding enabled.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder-UDP-tcp-inputs/m-p/620334#M106906</link>
      <description>&lt;P&gt;Constant Memory growth with Universal Forwarder with ever increasing channels.&lt;/P&gt;&lt;P&gt;Once third party receiver is restarted, UF re-sends lot of duplicate data and frees up channels.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 13:51:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder-UDP-tcp-inputs/m-p/620334#M106906</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2024-07-31T13:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Constant Memory growth with Universal Forwarder UDP / tcp inputs and third party forwarding enabled.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder-UDP-tcp-inputs/m-p/620337#M106908</link>
      <description>&lt;P&gt;This issue is applicable only on UF if&amp;nbsp;&lt;FONT color="#FF0000"&gt;sendCookedData=false.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;You may want to check&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder/m-p/635030#M108664" target="_self"&gt;General forwarder memory growth&lt;/A&gt;&amp;nbsp;.&lt;BR /&gt;&lt;BR /&gt;Do you see a trend, where channels are gradually increasing and one of the tcpout group is set to&amp;nbsp;&lt;FONT color="#FF0000"&gt;sendCookedData=false?&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Metrics.log entries pointing to&amp;nbsp; channels growth.&lt;BR /&gt;INFO&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Metrics - group=map, ingest_pipe=0, name=pipelineinputchannel, &lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;current_size=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;12950&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;&lt;FONT color="#333333"&gt;INFO&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Metrics - group=map, ingest_pipe=0, name=pipelineinputchannel,&lt;/FONT&gt; &lt;SPAN class=""&gt;&lt;STRONG&gt;current_size=&lt;/STRONG&gt;&lt;/SPAN&gt;12955&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;&lt;FONT color="#333333"&gt;INFO&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Metrics - group=map, ingest_pipe=0, name=pipelineinputchannel,&lt;/FONT&gt; &lt;SPAN class=""&gt;&lt;STRONG&gt;current_size=&lt;/STRONG&gt;&lt;/SPAN&gt;12959&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#333333"&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;It's a known issue with universal forwarder where some sources (monitor/udp/tcp) may emit EOF marker late. This results in UF not able to free up channels. However the same config ( 3rd party forwarding) on HF is not an issue.&lt;BR /&gt;One way to test if you are hitting the issue, restart 3rd party receiver. If UF memory drops immediately, apply following workaround.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#333333"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;BR /&gt;Until the issue is fixed by new patch, use following workaround.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#333333"&gt;&lt;SPAN class=""&gt;Set following config for 3rd party tcpout group only.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;forceTimebasedAutoLB=true&lt;/PRE&gt;&lt;P class=""&gt;&lt;FONT color="#333333"&gt;&lt;SPAN class=""&gt;This setting will force close connections and allow consolidation of channels. Thus every `&lt;EM&gt;autoLBFrequency&lt;/EM&gt;` interval reclaim memory.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp;For all 8.2.x and older releases,&amp;nbsp;forceTimebasedAutoLB works only if the total number of distinct &lt;STRONG&gt;3rd party valid target &amp;lt;ip address:port&amp;gt; combinations are &amp;gt;&lt;/STRONG&gt; 1. If there is only one receiver,&amp;nbsp;forceTimebasedAutoLB setting is no-op. Please don't add dummy/no-existent&amp;nbsp;&amp;lt;ip address:port&amp;gt; combination.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT color="#333333"&gt;&lt;SPAN class=""&gt;If your 3rd party receiver is on same box as UF, then you should be able to&amp;nbsp; make &amp;gt; 1 receivers by adding `127.0.0.1` in `server` list.&lt;BR /&gt;&lt;BR /&gt;[tcpout:thirdpartytcpout]&lt;BR /&gt;server=127.0.0.1:&amp;lt;target port&amp;gt;, &amp;lt;ip address of UF host&amp;gt;:&amp;lt;target port&amp;gt;&lt;BR /&gt;sendCookedData=false&lt;BR /&gt;&lt;BR /&gt;For 9.x UFs,&amp;nbsp;&lt;EM&gt;connectionsPerTarget&lt;/EM&gt; setting, if set to `auto` or &amp;gt; 1, then&amp;nbsp;forceTimebasedAutoLB=true works for single receiver tcpout groups.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;connectionsPerTarget = [&amp;lt;integer&amp;gt;|auto]
* The maximum number of allowed outbound connections for each target IP address
  as resolved by DNS on the machine.
* A value of "auto" or &amp;lt; 1 means splunkd configures a value for connections for each
  target IP address. Depending on the number of IP addresses that DNS resolves,
  splunkd sets 'connectionsPerTarget' as follows:
  * If the number of resolved target IP addresses is greater than or equal to 10,
    'connectionsPerTarget' gets a value of 1.
  * If the number of resolved target IP addresses is greater than 5
    and less than 10, 'connectionsPerTarget' gets a value of 2.
  * If the number of resolved target IP addresses is greater than 3
    or less than equal to 5, 'connectionsPerTarget' gets a value of 3.
  * If the number of resolved target IP addresses is less than or equal to 3,
    'connectionsPerTarget' gets a value of 4.
* Default: auto&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 14:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder-UDP-tcp-inputs/m-p/620337#M106908</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2023-03-18T14:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Constant Memory growth with Universal Forwarder and third party forwarding enabled.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder-UDP-tcp-inputs/m-p/621420#M107034</link>
      <description>&lt;P&gt;Reference:-&amp;nbsp;&lt;SPAN&gt;If your 3rd party receiver is on same box as UF, then you should be able to&amp;nbsp; make &amp;gt; 1 receivers by adding `127.0.0.1` in `server` list.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Question:- If the 3rd party receiver is on the same box as UF and if the server list already has an entry for 127.0.0.1 as in&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[tcpout:todisk]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;server=127.0.0.1:10010&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then is the suggestion to add one more entry for ip 127.0.0.1 and a dummy port?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 22:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder-UDP-tcp-inputs/m-p/621420#M107034</guid>
      <dc:creator>ravis_splunk</dc:creator>
      <dc:date>2022-11-18T22:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Constant Memory growth with Universal Forwarder and third party forwarding enabled.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder-UDP-tcp-inputs/m-p/621565#M107048</link>
      <description>&lt;P&gt;No dummy/invalid ipaddress/port to use.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If the receiver is on same localhost and one of the following is true.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If &lt;EM&gt;`server`&lt;/EM&gt;&amp;nbsp; already has 127.0.0.1 then as per the answer add UF ip address.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If &lt;EM&gt;`server`&lt;/EM&gt;&amp;nbsp; already has UF ip address then as per the answer add&amp;nbsp;127.0.0.1 .&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcpout:thirdpartytcpout]
server=127.0.0.1:&amp;lt;target port&amp;gt;, &amp;lt;ip address of UF host&amp;gt;:&amp;lt;target port&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:33:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder-UDP-tcp-inputs/m-p/621565#M107048</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2022-11-21T12:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Constant Memory growth with Universal Forwarder and third party forwarding enabled.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder-UDP-tcp-inputs/m-p/694960#M115447</link>
      <description>&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;Issue is fixed by 8.2.5 and above.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 09:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Constant-Memory-growth-with-Universal-Forwarder-UDP-tcp-inputs/m-p/694960#M115447</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2024-08-01T09:58:33Z</dc:date>
    </item>
  </channel>
</rss>

