<?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 What would you say is a normal amount of threads for a a Splunk Universal forwarder to have? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-would-you-say-is-a-normal-amount-of-threads-for-a-a-Splunk/m-p/485268#M193550</link>
    <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;Member of our management team is concerned about a Splunk Forwarder with a number of processes and threads. Curious what's normal ? What might create more threads? Less?  Most my servers have anywhere from 40-49. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# ps auwxH|grep splunk|wc -l
43

ps auwwxH | grep -i splunk
Tue Mar 3 11:24:51 PST 2020
root 4980 0.0 0.2 362396 166344 ? Sl Feb27 0:24 splunkd -p 8089 restart
root 4980 0.0 0.2 362396 166344 ? Sl Feb27 0:00 splunkd -p 8089 restart
[...........]
root 4980 0.0 0.2 362396 166344 ? Sl Feb27 0:12 splunkd -p 8089 restart
root 4980 0.0 0.2 362396 166344 ? Sl Feb27 4:59 splunkd -p 8089 restart
root 4980 0.0 0.2 362396 166344 ? Sl Feb27 0:00 splunkd -p 8089 restart
root 4986 0.0 0.0 86200 1056 ? Ss Feb27 0:00 [splunkd pid=4980] splunkd -p 8089 restart [process-runner]
root 7619 0.0 0.0 103328 916 pts/32 S+ 11:24 0:00 grep -i splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My knee jerk is that maybe we have we have thread per file, another one reaching back to deployment server and maybe another per scripted input from Splunk_TA_nix? &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:27:21 GMT</pubDate>
    <dc:creator>daniel333</dc:creator>
    <dc:date>2020-09-30T04:27:21Z</dc:date>
    <item>
      <title>What would you say is a normal amount of threads for a a Splunk Universal forwarder to have?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-would-you-say-is-a-normal-amount-of-threads-for-a-a-Splunk/m-p/485268#M193550</link>
      <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;Member of our management team is concerned about a Splunk Forwarder with a number of processes and threads. Curious what's normal ? What might create more threads? Less?  Most my servers have anywhere from 40-49. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# ps auwxH|grep splunk|wc -l
43

ps auwwxH | grep -i splunk
Tue Mar 3 11:24:51 PST 2020
root 4980 0.0 0.2 362396 166344 ? Sl Feb27 0:24 splunkd -p 8089 restart
root 4980 0.0 0.2 362396 166344 ? Sl Feb27 0:00 splunkd -p 8089 restart
[...........]
root 4980 0.0 0.2 362396 166344 ? Sl Feb27 0:12 splunkd -p 8089 restart
root 4980 0.0 0.2 362396 166344 ? Sl Feb27 4:59 splunkd -p 8089 restart
root 4980 0.0 0.2 362396 166344 ? Sl Feb27 0:00 splunkd -p 8089 restart
root 4986 0.0 0.0 86200 1056 ? Ss Feb27 0:00 [splunkd pid=4980] splunkd -p 8089 restart [process-runner]
root 7619 0.0 0.0 103328 916 pts/32 S+ 11:24 0:00 grep -i splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My knee jerk is that maybe we have we have thread per file, another one reaching back to deployment server and maybe another per scripted input from Splunk_TA_nix? &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:27:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-would-you-say-is-a-normal-amount-of-threads-for-a-a-Splunk/m-p/485268#M193550</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2020-09-30T04:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: What would you say is a normal amount of threads for a a Splunk Universal forwarder to have?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-would-you-say-is-a-normal-amount-of-threads-for-a-a-Splunk/m-p/485269#M193551</link>
      <description>&lt;P&gt;Your output indicates to me that you have several Splunk daemons which are defunct. Likely a result of initial installation/startup.&lt;BR /&gt;
It's not good practice to run Splunk as root (major security risk). Obviously, test in non-prod first if possible, but my suggestion would be to bring down Splunk gracefully (/opt/splunk/bin/splunk stop or systemctl stop splunk), then search for any errant processes (ps -ef |grep -i splunk) and kill them (kill -9 ).&lt;/P&gt;

&lt;P&gt;Then modify /opt/splunk/etc/splunk-launch.conf and change the process owner to splunk, or Splunk, etc.).&lt;/P&gt;

&lt;P&gt;Then restart the daemon, and all should be well.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 23:49:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-would-you-say-is-a-normal-amount-of-threads-for-a-a-Splunk/m-p/485269#M193551</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2020-03-16T23:49:36Z</dc:date>
    </item>
  </channel>
</rss>

