# Swap Space is high in HQ plugin

**URL:** <https://discuss.elastic.co/t/swap-space-is-high-in-hq-plugin/17165>\
**Category:** Elasticsearch\
**Created:** [April 24, 2014, 5:53am UTC](https://discuss.elastic.co/t/swap-space-is-high-in-hq-plugin/17165 "2014-04-24T05:53:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![derekm](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@derekm](https://discuss.elastic.co/u/derekm)\
**Post date:** [April 24, 2014, 5:53am UTC](https://discuss.elastic.co/t/swap-space-is-high-in-hq-plugin/17165/1 "2014-04-24T05:53:01Z")

</div>

Hi,all:

this is my issue:

1 I am using plugin of HQ.0.99  
2 the Swap Space is 9.3125 mb, high than the suggested value(1)  
3 my config is bootstrap.mlockall: true, and ulimit -l ulimit

I am confused with:  
1, the Swap Space in HQ plugin means " the Swap Space used of the whole processes on the machine" or "only the ElasticSearch process"?

2 if the Swap Space means the ElasticSearch process, did I do the wrong config?

3 How do I reduce the "Swap Space"?

Cheers

---

<div class="post-metadata">

**Author:** ![derekm](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@derekm](https://discuss.elastic.co/u/derekm)\
**Post date:** [April 24, 2014, 10:13am UTC](https://discuss.elastic.co/t/swap-space-is-high-in-hq-plugin/17165/2 "2014-04-24T10:13:57Z")

</div>

sorry for disturbing

I check in es-document and found that discription:

"Operating system stats, load average, cpu, mem, swap"

and check the value of "swap used" in HQ plugin(9.3125 mb)  
is equal to the machine current swap used which I check by the "free" command:

free -m  
total used free shared buffers cached  
Mem: 64371 63494 877 0 142 29116  
-/+ buffers/cache: 34235 30136  
Swap: 8191 9 8182

I so appreciate someone would explain my confused:  
1 es-process already lock the memory by config "bootstrap.mlockall: true", does the swap action is done by other process?  
2 if the swap action is done by other process,how does it affect es-process's gc-action?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:33am UTC](https://discuss.elastic.co/t/swap-space-is-high-in-hq-plugin/17165/3 "2017-07-06T01:33:48Z")

</div>


