<?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 High memory usage by splunk-MonitorNoHandle.exe in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/High-memory-usage-by-splunk-MonitorNoHandle-exe/m-p/623884#M107326</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;We have been experiencing unusually high memory usage on some of our domain controllers. The culprit here is Splunk process splunk-MonitorNoHandle.exe.&lt;BR /&gt;Here is the report of the memory usage of the domain controllers:&lt;BR /&gt;&lt;BR /&gt;DC1 splunk-MonitorNoHandle.exe &amp;nbsp; 17724&amp;nbsp;&amp;nbsp; Services 0&amp;nbsp;&amp;nbsp; 14,993,012 K&lt;BR /&gt;DC2 splunk-MonitorNoHandle.exe &amp;nbsp; 53268&amp;nbsp;&amp;nbsp; Services 0 &amp;nbsp; 38,927,688 K&lt;BR /&gt;DC3 splunk-MonitorNoHandle.exe&amp;nbsp;&amp;nbsp; 16164&amp;nbsp;&amp;nbsp; Services 0 &amp;nbsp; 43,997,828 K &lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Dec 2022 00:48:03 GMT</pubDate>
    <dc:creator>sylim_splunk</dc:creator>
    <dc:date>2022-12-10T00:48:03Z</dc:date>
    <item>
      <title>High memory usage by splunk-MonitorNoHandle.exe</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/High-memory-usage-by-splunk-MonitorNoHandle-exe/m-p/623884#M107326</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;We have been experiencing unusually high memory usage on some of our domain controllers. The culprit here is Splunk process splunk-MonitorNoHandle.exe.&lt;BR /&gt;Here is the report of the memory usage of the domain controllers:&lt;BR /&gt;&lt;BR /&gt;DC1 splunk-MonitorNoHandle.exe &amp;nbsp; 17724&amp;nbsp;&amp;nbsp; Services 0&amp;nbsp;&amp;nbsp; 14,993,012 K&lt;BR /&gt;DC2 splunk-MonitorNoHandle.exe &amp;nbsp; 53268&amp;nbsp;&amp;nbsp; Services 0 &amp;nbsp; 38,927,688 K&lt;BR /&gt;DC3 splunk-MonitorNoHandle.exe&amp;nbsp;&amp;nbsp; 16164&amp;nbsp;&amp;nbsp; Services 0 &amp;nbsp; 43,997,828 K &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 00:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/High-memory-usage-by-splunk-MonitorNoHandle-exe/m-p/623884#M107326</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2022-12-10T00:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: High memory usage by splunk-MonitorNoHandle.exe</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/High-memory-usage-by-splunk-MonitorNoHandle-exe/m-p/623885#M107327</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;'splunk-MonitorNoHandle.exe' is designed to hold data when it's not able to send to UF, use unlimited memory and this symptom can happen when there are huge amount of data to forward to the indexers while the forwarding speed by UF is limited.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;i) Check the queue status of parsing queue and tcpoutput queue to find which one is getting blocked first.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; Parsing queue blocked firstly which means it receives over the capacity - This can happen when maxKBps is throttled to the default, 256 ,change this to 0, unlimited or something your environment allows.&lt;BR /&gt;&amp;nbsp;- side effect it can bombard indexers if it's sending unlimited, huge amount of data.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;ii) In splunkd log, find any messages showing difficulties in sending data to the next receiving ends:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Even if the parsing pipeline can send more data by increasing maxKBps, if tcpoutput gets blocked then you will see the same issues again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;Below are the example logs that UF has problem in connecting to the indexers ;&lt;BR /&gt;&lt;EM&gt;11-12-2021 11:00:11.365 -0500 WARN TcpOutputProc - Cooked connection to ip=172.22.1.218:9997 timed out&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;11-12-2021 11:01:48.391 -0500 WARN TcpOutputProc - Cooked connection to ip=172.22.1.218:9997 timed out&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;11-12-2021 11:12:28.757 -0500 WARN TcpOutputProc - The TCP output processor has paused the data flow. Forwarding to output group ABC_indexers has been blocked for 500 seconds. This will probably stall the data flow towards indexing and other network outputs. Review the receiving system's health in the Splunk Monitoring Console. It is probably not accepting data.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;iii) Recommendations :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;iii-1) Parsing Queue being always full more often than the tcpoutput queue does - meaning MonitorNoHandle is sending data over the capacity that Parsing process can handle. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;This can happen when maxKBps is throttled to the default, 256 , then consider to increase the value according to your traffic size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Limitsconf" target="_blank" rel="nofollow noopener noreferrer"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Limitsconf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&amp;nbsp;- side effect it can bombard indexers if it's sending unlimited, huge amount of data.&lt;BR /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;iii-2) How to set the memory limit used by the modInput, MonitorNoHandle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;[inputproc] in limits.conf&lt;BR /&gt;monitornohandle_max_heap_mb=5000&lt;BR /&gt;monitornohandle_max_driver_mem_mb=5000&lt;BR /&gt;( 5000/5gb can be changed according to your environment)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;iii-3) If you find intermittent blockages on tcpoutput queue&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;This can also contribute to the MonitorNoHandle's memory growth as the Parsing Pipeline can not send as much data as it receives - then MonitorNoHandle.exe has to hold the backlog data within own heap memory that can grow unexpectedly. &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;Consider to implement &lt;A title="asynchronous forwarding" href="https://www.linkedin.com/pulse/splunk-asynchronous-forwarding-lightning-fast-data-ingestor-rawat/?trk=public_profile_article_view" target="_self"&gt;asynchronous forwarding&lt;/A&gt; so that it can spread the data without pausing the data flow and that way MonitorNoHandle.exe may have less chances to hit the heap limit.&amp;nbsp; You can consult with our PS resources for implementation too.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 01:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/High-memory-usage-by-splunk-MonitorNoHandle-exe/m-p/623885#M107327</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2022-12-10T01:19:53Z</dc:date>
    </item>
  </channel>
</rss>

