<?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: splunk Enterprise high swap memory usage in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/744359#M22104</link>
    <description>Can you explain more detail level what you have in this splunk instance? Like it’s role, are there modular inputs, own SPL commands, amount of users, queries, DMA, other accelerations, daily data size etc</description>
    <pubDate>Thu, 17 Apr 2025 05:30:10 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2025-04-17T05:30:10Z</dc:date>
    <item>
      <title>splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/740702#M21752</link>
      <description>&lt;P&gt;&lt;SPAN&gt;free -m&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As a result of this command, we found that the memory usage is about 3% lower, but the swap memory is 100% in use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The same thing happens when you restart Splunk shortly after.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know the cause of the phenomenon and how to solve it&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The server environment is as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OS: CentOS 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Splunk Enterprise 9.0.4&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 09:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/740702#M21752</guid>
      <dc:creator>khj</dc:creator>
      <dc:date>2025-03-04T09:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/740704#M21753</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264445"&gt;@khj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Typically your server will use swap if there is not enough RAM available on the system for the processes that are running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please could you let us know how much RAM the server has, and how much is typically being used? It could be that it is under-spec'd for the ES role.&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 09:55:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/740704#M21753</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-04T09:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/740752#M21765</link>
      <description>&lt;P&gt;There are two things to tackle here.&lt;/P&gt;&lt;P&gt;One is general memory usage. It can be caused by many different things depending on the component and its activity. But most typically the more searching you do, the bigger memory usage you cause.&lt;/P&gt;&lt;P&gt;Another thing is swap. I'm not a big fan of swap use in modern scenarios. OK, some small amount of swap to let the system move some "running but not quite" daemons out of the way might be useful but nothing more. If your main task (in your case - splunkd) starts swapping out, you're getting into a loop where the system cannot keep up with requests for memory so it starts swapping so it cannot allocate any more memory so it wants to swap some more... I prefer my systems with little or no swap at all. It's very often better for the user to simply kill the process due to memory exhaustion and restart it than to wait for it to crash badly because of the same reason but after a long time of heavy I/O use possibly affecting other components should you be using shared storage infrastructure.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 11:59:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/740752#M21765</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-04T11:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/740880#M21774</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Let me tell you about the exact phenomenon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Splunk Enterprise is currently running two separate categories: search header server and index server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The server environment is as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OS version: CentOS 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Splunk version: 9.0.4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ram: 256G&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;swap: 16G&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using about 5% of memory on average, but I'm using 100% of swaps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 06:18:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/740880#M21774</guid>
      <dc:creator>khj</dc:creator>
      <dc:date>2025-03-05T06:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/740896#M21780</link>
      <description>&lt;P&gt;OK. YMMV but with 256G of RAM I would definitely _not_ want any swap at all.&lt;/P&gt;&lt;P&gt;I know that:&lt;/P&gt;&lt;P&gt;1) Many&amp;nbsp; Linux installers create swap space by default whether it's needed or not.&lt;/P&gt;&lt;P&gt;2) There are still some myths back from... the eighties(?) circulating around that "you should have twice as much swap as RAM". In your case that would be 0.5TB of swap which - as you will surely admit - would be completely ridiculous.&lt;/P&gt;&lt;P&gt;But every use case is different so in Splunk's case I think it's better to fail early and restart than to get your load sky high and wait to crash anyway.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 08:46:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/740896#M21780</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-05T08:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/744089#M22078</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;also we have the problem with increased SWAP&lt;/P&gt;&lt;P&gt;OS: RHEL 9.5&lt;BR /&gt;RAM: 32GB&lt;BR /&gt;SWAP: 16GB&lt;BR /&gt;SPLUNK: 9.4.1&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# free -m
 total used free shared buff/cache available
Mem: 31837 6853 358 0 24953 24984
Swap: 16383 16292 91&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 07:29:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/744089#M22078</guid>
      <dc:creator>Christian_Wohlg</dc:creator>
      <dc:date>2025-04-14T07:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/744142#M22081</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I couldn't find any other cause and solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have any problems with Splunk operations, so I'm just using it..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 01:00:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/744142#M22081</guid>
      <dc:creator>khj</dc:creator>
      <dc:date>2025-04-15T01:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/744310#M22094</link>
      <description>&lt;P&gt;I totally agree with&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;you should disable your swap at least temporarily and after you have confirmed that everything is working and/or fix the root cause for swap usage then remove it permanently. When you have dedicated servers for splunk those should sized correctly to run your normal workload.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 17:15:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/744310#M22094</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-04-16T17:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/744351#M22102</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Through the top command, we found that the Splunkd process is using 100% of the swap space. However, it is impossible to determine the root cause because there is no way to check exactly what kind of operation the swap space is using. Do you know anything about a case that solved the problem of using 100% of the swap space?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 00:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/744351#M22102</guid>
      <dc:creator>khj</dc:creator>
      <dc:date>2025-04-17T00:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/744359#M22104</link>
      <description>Can you explain more detail level what you have in this splunk instance? Like it’s role, are there modular inputs, own SPL commands, amount of users, queries, DMA, other accelerations, daily data size etc</description>
      <pubDate>Thu, 17 Apr 2025 05:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/744359#M22104</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-04-17T05:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/746007#M22240</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Splunk as a software running on top of the OS doesn't have any privilege to choose between the swap and real memory as it's purely decided by the OS. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There used to be many swap issues in Linux which could be better addressed or explained by the Vendor Support.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Frequent swap access could impact the Splunk performance negatively - you may want to control 'swappiness' with the help of OS admin.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.techtarget.com/searchdatacenter/definition/Linux-swappiness" target="_blank"&gt;https://www.techtarget.com/searchdatacenter/definition/Linux-swappiness&lt;/A&gt;&amp;nbsp; FYI.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 06:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/746007#M22240</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2025-05-13T06:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/746169#M22249</link>
      <description>As &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/197616"&gt;@sylim_splunk&lt;/a&gt; already stated. Its managed by the OS.&lt;BR /&gt;&lt;BR /&gt;If your memory usage however is minimal and swap is completely used, it is usually no problem. Especially on modern Servers with NVMe SSD storage. If you really dont want the system to swap you can disable swap via:&lt;BR /&gt;sudo swapoff -a&lt;BR /&gt;&lt;BR /&gt;Keep in mind in case the system uses all RAM and swap is off, the OOM-Killer in Linux might kill your splunk processes, which can lead to loss of searches/searchresults.</description>
      <pubDate>Wed, 14 May 2025 09:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/746169#M22249</guid>
      <dc:creator>effem</dc:creator>
      <dc:date>2025-05-14T09:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: splunk Enterprise high swap memory usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/746172#M22250</link>
      <description>&lt;P&gt;Wait. You're mixing different things here.&lt;/P&gt;&lt;P&gt;If you have very low memory usage and there are still some pages swapped out it means that you have huge chunks of process memory which has not been used for a long time (for example, a daemon which is just sleeping for most of the time and most of its code and data is never accessed). In that case it's indeed better for the OS to swap it out and use the freed memory pages for cache/buffers. One big caveat though - if at some point the process requests access to those swapped out pages the kernel will start loading them from the disk. If it's only at the price of dropping some cache pages probably noone will even notice. But if it needs to swap out some active memory pages... that might get ugly.&lt;/P&gt;&lt;P&gt;And even with modern systems with NVMe disks (which are not that widespread yet) RAM access is way faster than disk transfer.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 10:28:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/splunk-Enterprise-high-swap-memory-usage/m-p/746172#M22250</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-05-14T10:28:57Z</dc:date>
    </item>
  </channel>
</rss>

