# Solaris 10 mlockall error code

**URL:** <https://discuss.elastic.co/t/solaris-10-mlockall-error-code/18758>\
**Category:** Elasticsearch\
**Created:** [July 21, 2014, 9:09am UTC](https://discuss.elastic.co/t/solaris-10-mlockall-error-code/18758 "2014-07-21T09:09:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Pace](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_pace/32/1399_2.png) [@James\_Pace](https://discuss.elastic.co/u/James_Pace)\
**Post date:** [July 21, 2014, 9:09am UTC](https://discuss.elastic.co/t/solaris-10-mlockall-error-code/18758/1 "2014-07-21T09:09:45Z")

</div>

We have been having issues running ES with the bootstrap.mlockall: true  
setting. We get the following error:

[2014-07-21 09:56:44,436][WARN][common.jna] Unknown mlockall error 11

I have googled around and looked in the solaris documentation for the  
description of the error codes and I have been unsuccessful. The solaris  
docs are here  
[http://docs.oracle.com/cd/E26505\_01/html/816-5168/mlockall-3c.html#REFMAN3Amlockall-3c](http://docs.oracle.com/cd/E26505_01/html/816-5168/mlockall-3c.html#REFMAN3Amlockall-3c) but  
they only list 3 error codes. Is the error code 11 generated by ES?

Our box has a total of 64 gigs of RAM and we give 32gigs to ES. We are  
running it using Oracle Java 1.7.13 64bit. Any help on the matter would be  
greatly appreciated!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 21, 2014, 9:16am UTC](https://discuss.elastic.co/t/solaris-10-mlockall-error-code/18758/2 "2014-07-21T09:16:51Z")

</div>

What elasticsearch version are you on?

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 21 July 2014 19:09, James Pace [james.a.pace@gmail.com](mailto:james.a.pace@gmail.com) wrote:

> We have been having issues running ES with the bootstrap.mlockall: true  
> setting. We get the following error:
> 
> [2014-07-21 09:56:44,436][WARN][common.jna] Unknown mlockall error 11
> 
> I have googled around and looked in the solaris documentation for the  
> description of the error codes and I have been unsuccessful. The solaris  
> docs are here  
> [http://docs.oracle.com/cd/E26505\_01/html/816-5168/mlockall-3c.html#REFMAN3Amlockall-3c](http://docs.oracle.com/cd/E26505_01/html/816-5168/mlockall-3c.html#REFMAN3Amlockall-3c) but  
> they only list 3 error codes. Is the error code 11 generated by ES?
> 
> Our box has a total of 64 gigs of RAM and we give 32gigs to ES. We are  
> running it using Oracle Java 1.7.13 64bit. Any help on the matter would be  
> greatly appreciated!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624YbdrUjNe-S4UKvZcBQgnPup4QF3nidxLzLmDc82yd4mg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624YbdrUjNe-S4UKvZcBQgnPup4QF3nidxLzLmDc82yd4mg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![James\_Pace](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_pace/32/1399_2.png) [@James\_Pace](https://discuss.elastic.co/u/James_Pace)\
**Post date:** [July 21, 2014, 9:23am UTC](https://discuss.elastic.co/t/solaris-10-mlockall-error-code/18758/3 "2014-07-21T09:23:37Z")

</div>

Ooops good point! We are running version 1.2.1

On Monday, 21 July 2014 10:18:15 UTC+1, Mark Walkom wrote:

> What elasticsearch version are you on?
> 
> Regards,  
> Mark Walkom
> 
> Infrastructure Engineer  
> Campaign Monitor  
> email: [ma...@campaignmonitor.com](mailto:ma...@campaignmonitor.com) \<javascript:\>  
> web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> 
> On 21 July 2014 19:09, James Pace \<[james....@gmail.com](mailto:james....@gmail.com) \<javascript:\>\>  
> wrote:
> 
> > We have been having issues running ES with the bootstrap.mlockall: true  
> > setting. We get the following error:
> > 
> > [2014-07-21 09:56:44,436][WARN][common.jna] Unknown mlockall error 11
> > 
> > I have googled around and looked in the solaris documentation for the  
> > description of the error codes and I have been unsuccessful. The solaris  
> > docs are here  
> > [http://docs.oracle.com/cd/E26505\_01/html/816-5168/mlockall-3c.html#REFMAN3Amlockall-3c](http://docs.oracle.com/cd/E26505_01/html/816-5168/mlockall-3c.html#REFMAN3Amlockall-3c) but  
> > they only list 3 error codes. Is the error code 11 generated by ES?
> > 
> > Our box has a total of 64 gigs of RAM and we give 32gigs to ES. We are  
> > running it using Oracle Java 1.7.13 64bit. Any help on the matter would be  
> > greatly appreciated!
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9b4fa7b1-2561-4f33-8a60-969ff317206b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9b4fa7b1-2561-4f33-8a60-969ff317206b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [July 21, 2014, 11:35am UTC](https://discuss.elastic.co/t/solaris-10-mlockall-error-code/18758/4 "2014-07-21T11:35:57Z")

</div>

Error 11 is a POSIX error number (errno) and means EAGAIN, "Resource  
temporarily unavailable", which is documented.

On Solaris 10, this means, you must first allow the Elasticsearch user to  
allocate this amount of virtual memory.

Switch to Elasticsearch user and then check the following values

prctl -n project.max-shm-memory $$  
prctl -n process.max-address-space $$

Then the sys admin could create a project with projadd and projmod and  
change resource limits for the Elasticsearch user.

The error can also mean that Solaris has not enough memory for mlockall  
because there is already software running using the memory, or it the free  
memory is too fragmented.

Jörg

On Mon, Jul 21, 2014 at 11:09 AM, James Pace [james.a.pace@gmail.com](mailto:james.a.pace@gmail.com) wrote:

> We have been having issues running ES with the bootstrap.mlockall: true  
> setting. We get the following error:
> 
> [2014-07-21 09:56:44,436][WARN][common.jna] Unknown mlockall error 11
> 
> I have googled around and looked in the solaris documentation for the  
> description of the error codes and I have been unsuccessful. The solaris  
> docs are here  
> [http://docs.oracle.com/cd/E26505\_01/html/816-5168/mlockall-3c.html#REFMAN3Amlockall-3c](http://docs.oracle.com/cd/E26505_01/html/816-5168/mlockall-3c.html#REFMAN3Amlockall-3c) but  
> they only list 3 error codes. Is the error code 11 generated by ES?
> 
> Our box has a total of 64 gigs of RAM and we give 32gigs to ES. We are  
> running it using Oracle Java 1.7.13 64bit. Any help on the matter would be  
> greatly appreciated!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoH%3DJQqs6UY7e2bO7z%3DhGacdMq\_AJvoZpYCFfKqCAqMWaA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoH%3DJQqs6UY7e2bO7z%3DhGacdMq_AJvoZpYCFfKqCAqMWaA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![James\_Pace](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james_pace/32/1399_2.png) [@James\_Pace](https://discuss.elastic.co/u/James_Pace)\
**Post date:** [July 21, 2014, 1:15pm UTC](https://discuss.elastic.co/t/solaris-10-mlockall-error-code/18758/5 "2014-07-21T13:15:56Z")

</div>

Thanks for the information, I'll chase it up and let you know how I get on.

James

On Monday, 21 July 2014 12:36:09 UTC+1, Jörg Prante wrote:

> Error 11 is a POSIX error number (errno) and means EAGAIN, "Resource  
> temporarily unavailable", which is documented.
> 
> On Solaris 10, this means, you must first allow the Elasticsearch user to  
> allocate this amount of virtual memory.
> 
> Switch to Elasticsearch user and then check the following values
> 
> prctl -n project.max-shm-memory $$  
> prctl -n process.max-address-space $$
> 
> Then the sys admin could create a project with projadd and projmod and  
> change resource limits for the Elasticsearch user.
> 
> The error can also mean that Solaris has not enough memory for mlockall  
> because there is already software running using the memory, or it the free  
> memory is too fragmented.
> 
> Jörg
> 
> On Mon, Jul 21, 2014 at 11:09 AM, James Pace \<[james....@gmail.com](mailto:james....@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > We have been having issues running ES with the bootstrap.mlockall: true  
> > setting. We get the following error:
> > 
> > [2014-07-21 09:56:44,436][WARN][common.jna] Unknown mlockall error 11
> > 
> > I have googled around and looked in the solaris documentation for the  
> > description of the error codes and I have been unsuccessful. The solaris  
> > docs are here  
> > [http://docs.oracle.com/cd/E26505\_01/html/816-5168/mlockall-3c.html#REFMAN3Amlockall-3c](http://docs.oracle.com/cd/E26505_01/html/816-5168/mlockall-3c.html#REFMAN3Amlockall-3c) but  
> > they only list 3 error codes. Is the error code 11 generated by ES?
> > 
> > Our box has a total of 64 gigs of RAM and we give 32gigs to ES. We are  
> > running it using Oracle Java 1.7.13 64bit. Any help on the matter would be  
> > greatly appreciated!
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bc9ba19f-c798-4e7f-9977-c9707709c47e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f503e0b0-2e6b-4b6d-9e0e-07c2858783df%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f503e0b0-2e6b-4b6d-9e0e-07c2858783df%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:14am UTC](https://discuss.elastic.co/t/solaris-10-mlockall-error-code/18758/6 "2017-07-06T01:14:33Z")

</div>


