# Can't disable swap on Windows

**URL:** <https://discuss.elastic.co/t/cant-disable-swap-on-windows/67967>\
**Category:** Elasticsearch\
**Created:** [December 5, 2016, 12:14am UTC](https://discuss.elastic.co/t/cant-disable-swap-on-windows/67967 "2016-12-05T00:14:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jthoni](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@jthoni](https://discuss.elastic.co/u/jthoni)\
**Post date:** [December 5, 2016, 12:14am UTC](https://discuss.elastic.co/t/cant-disable-swap-on-windows/67967/1 "2016-12-05T00:14:38Z")

</div>

I have been trying to reduce our swapping:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/c/c5b02ecda030e824976990997fd9655752b0742a.PNG)

The cluster is running on Azure VMs (ES is actually running on a secondary hd):  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/3/30b281416ec34de77e1e55177862840127aa5f30.png)

On one of the nodes:

- I have ES\_HEAP\_SIZE set to 14g

- I have the Windows Virtual Memory page file disabled

- I have mlock enabled

I still have these warnings about swapping. Note that I have not rebooted the VM. I don't want the node to be down that long. Is that required?

Any idea how to tune this?

---

<div class="post-metadata">

**Author:** ![tanguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tanguy/32/6030_2.png) [@tanguy](https://discuss.elastic.co/u/tanguy)\
**Post date:** [December 6, 2016, 9:17am UTC](https://discuss.elastic.co/t/cant-disable-swap-on-windows/67967/2 "2016-12-06T09:17:10Z")

</div>

Hi,

What is the version of ES?

---

<div class="post-metadata">

**Author:** ![jthoni](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@jthoni](https://discuss.elastic.co/u/jthoni)\
**Post date:** [December 6, 2016, 7:48pm UTC](https://discuss.elastic.co/t/cant-disable-swap-on-windows/67967/3 "2016-12-06T19:48:29Z")

</div>

2.3.2

Thanks

---

<div class="post-metadata">

**Author:** ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)\
**Post date:** [December 7, 2016, 12:43am UTC](https://discuss.elastic.co/t/cant-disable-swap-on-windows/67967/4 "2016-12-07T00:43:14Z")

</div>

Whats the output of "wmic pagefile list /format:list"?

---

<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:** [January 4, 2017, 12:43am UTC](https://discuss.elastic.co/t/cant-disable-swap-on-windows/67967/5 "2017-01-04T00:43:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
