# Windows Server 2012 - Bootstrap Check Fail- Unable to lock memory

**URL:** <https://discuss.elastic.co/t/windows-server-2012-bootstrap-check-fail-unable-to-lock-memory/105834>\
**Category:** Elasticsearch\
**Created:** [October 31, 2017, 4:55am UTC](https://discuss.elastic.co/t/windows-server-2012-bootstrap-check-fail-unable-to-lock-memory/105834 "2017-10-31T04:55:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [October 31, 2017, 4:55am UTC](https://discuss.elastic.co/t/windows-server-2012-bootstrap-check-fail-unable-to-lock-memory/105834/1 "2017-10-31T04:55:13Z")

</div>

Hi All,

I am running ES 5.4.1 on Windows Server R12 and I have enabled bootstrap.mlock :true in elasticsearch.yml file and during boot up i get the below error and ES doesn't start.

[2017-10-30T21:35:37,484][INFO][o.e.t.TransportService] [slc06yrm] publish\_a  
ddress {152.69.26.93:9300}, bound\_addresses {[2002:9845:1a5d::9845:1a5d]:9300},  
{152.69.26.93:9300}, {[fe80::2045:e3cf:f94c:719d]:9300}  
[2017-10-30T21:35:37,484][INFO][o.e.b.BootstrapChecks] [slc06yrm] bound or  
publishing to a non-loopback or non-link-local address, enforcing bootstrap chec  
ks  
ERROR: [1] bootstrap checks failed  
[1]: **memory locking requested for elasticsearch process but memory is not locked**

I tried disabling swap by

> On Windows, the equivalent can be achieved by disabling the paging file entirely via System Properties → Advanced → Performance → Advanced → Virtual memory.

but it didnt help.

How to set virtuallock in windows to overcome this issue

---

<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:** [November 28, 2017, 4:55am UTC](https://discuss.elastic.co/t/windows-server-2012-bootstrap-check-fail-unable-to-lock-memory/105834/2 "2017-11-28T04:55:23Z")

</div>

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