<?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: Number of appserver.py processes increasing, causing OOM in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Number-of-appserver-py-processes-increasing-causing-OOM/m-p/677618#M10000</link>
    <description>&lt;P&gt;Due to some issue with proper cleanup of idle&lt;SPAN&gt;&amp;nbsp;processes, number of&amp;nbsp;python process ( appserver.py)&amp;nbsp;running on the system constantly grow. Thus due to&amp;nbsp; systemwide memory growth,&amp;nbsp; these stale processes,&amp;nbsp;eventually causes an OOM.&lt;BR /&gt;&lt;BR /&gt;Run following search to find if any search head is impacted by this issue and what % of total system memory these stale processes running more than 24 hours. If these processes using more than 15% of total system memory, then run script to kill stales processes.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_introspection host=&amp;lt;all search heads&amp;gt;  appserver.py data.elapsed &amp;gt; 86400
| dedup host, data.pid
| stats dc(data.pid) as cnt sum("data.pct_memory") AS appserver_memory_used by  host
| sort - appserver_memory_used&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;On linux/unix you can use following script to kill stale processes and reclaim memory.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;kill -TERM  $(ps -eo etimes,pid,cmd | awk '{if ( $1 &amp;gt;= 86400) print $2 " " $4 }' |grep appserver.py | awk '{print $1}')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 23:51:43 GMT</pubDate>
    <dc:creator>hrawat</dc:creator>
    <dc:date>2024-02-14T23:51:43Z</dc:date>
    <item>
      <title>Number of appserver.py processes increasing, causing OOM</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Number-of-appserver-py-processes-increasing-causing-OOM/m-p/677617#M9999</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Search Head appears to have a rogue python&amp;nbsp; process ( appserver.py) that slowly eats away all memory on the system, then eventually causes an OOM, which requires a manual restart of splunkd, then the issue starts slowly creeping up to happen again.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 23:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Number-of-appserver-py-processes-increasing-causing-OOM/m-p/677617#M9999</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2024-02-14T23:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Number of appserver.py processes increasing, causing OOM</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Number-of-appserver-py-processes-increasing-causing-OOM/m-p/677618#M10000</link>
      <description>&lt;P&gt;Due to some issue with proper cleanup of idle&lt;SPAN&gt;&amp;nbsp;processes, number of&amp;nbsp;python process ( appserver.py)&amp;nbsp;running on the system constantly grow. Thus due to&amp;nbsp; systemwide memory growth,&amp;nbsp; these stale processes,&amp;nbsp;eventually causes an OOM.&lt;BR /&gt;&lt;BR /&gt;Run following search to find if any search head is impacted by this issue and what % of total system memory these stale processes running more than 24 hours. If these processes using more than 15% of total system memory, then run script to kill stales processes.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_introspection host=&amp;lt;all search heads&amp;gt;  appserver.py data.elapsed &amp;gt; 86400
| dedup host, data.pid
| stats dc(data.pid) as cnt sum("data.pct_memory") AS appserver_memory_used by  host
| sort - appserver_memory_used&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;On linux/unix you can use following script to kill stale processes and reclaim memory.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;kill -TERM  $(ps -eo etimes,pid,cmd | awk '{if ( $1 &amp;gt;= 86400) print $2 " " $4 }' |grep appserver.py | awk '{print $1}')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 23:51:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Number-of-appserver-py-processes-increasing-causing-OOM/m-p/677618#M10000</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2024-02-14T23:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Number of appserver.py processes increasing, causing OOM</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Number-of-appserver-py-processes-increasing-causing-OOM/m-p/694653#M10288</link>
      <description>&lt;P&gt;I see this behaviour, too, also for another process coming from the ITSI app:&lt;/P&gt;&lt;P&gt;&amp;nbsp; /opt/splunk/etc/apps/SA-ITOA/bin/command_health_monitor.py&lt;/P&gt;&lt;P&gt;Besides killing processes or restarting splunk as a workaround, do you know whether there are efforts to finally resolve this bug?&lt;/P&gt;&lt;P&gt;Thanks, Jan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 09:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Number-of-appserver-py-processes-increasing-causing-OOM/m-p/694653#M10288</guid>
      <dc:creator>waechtler_amaso</dc:creator>
      <dc:date>2024-07-30T09:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Number of appserver.py processes increasing, causing OOM</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Number-of-appserver-py-processes-increasing-causing-OOM/m-p/694655#M10289</link>
      <description>&lt;P&gt;Splunk 9.3.0 has the fix.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 10:23:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Number-of-appserver-py-processes-increasing-causing-OOM/m-p/694655#M10289</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2024-07-30T10:23:01Z</dc:date>
    </item>
  </channel>
</rss>

