{"action":"opened","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9357","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9357/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9357/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9357/events","html_url":"https://github.com/elasticsearch/elasticsearch/issues/9357","id":54831881,"number":9357,"title":"mlockall: false despite being configured","user":{"login":"markwalkom","id":3184718,"avatar_url":"https://avatars.githubusercontent.com/u/3184718?v=3","gravatar_id":"","url":"https://api.github.com/users/markwalkom","html_url":"https://github.com/markwalkom","followers_url":"https://api.github.com/users/markwalkom/followers","following_url":"https://api.github.com/users/markwalkom/following{/other_user}","gists_url":"https://api.github.com/users/markwalkom/gists{/gist_id}","starred_url":"https://api.github.com/users/markwalkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markwalkom/subscriptions","organizations_url":"https://api.github.com/users/markwalkom/orgs","repos_url":"https://api.github.com/users/markwalkom/repos","events_url":"https://api.github.com/users/markwalkom/events{/privacy}","received_events_url":"https://api.github.com/users/markwalkom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-20T01:11:09Z","updated_at":"2015-01-20T01:11:09Z","closed_at":null,"body":"Lots of details below, but the general problem here is that mlockall is not being applied despite all settings being applied as per the config docs.\r\n\r\n```\r\n[root@centos7 ~]# grep MAX_LOCKED_MEMORY /etc/sysconfig/elasticsearch\r\nMAX_LOCKED_MEMORY=unlimited\r\n[root@centos7 ~]# grep mlock /etc/elasticsearch/elasticsearch.yml\r\nbootstrap.mlockall: true\r\n\r\n[root@centos7 ~]# rpm -qa|grep elastic\r\nelasticsearch-1.4.2-1.noarch\r\n[root@centos7 ~]# java -version\r\njava version \"1.7.0_71\"\r\nOpenJDK Runtime Environment (rhel-2.5.3.1.el7_0-x86_64 u71-b14)\r\nOpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)\r\n[root@centos7 ~]# uname -a\r\nLinux centos7 3.10.0-123.4.4.el7.x86_64 #1 SMP Fri Jul 25 05:07:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\r\n[root@centos7 ~]# cat /etc/redhat-release\r\nCentOS Linux release 7.0.1406 (Core)\r\n```\r\n\r\nFrom the logs\r\n```[2015-01-18 17:32:48,613][WARN ][common.jna ] Unable to lock JVM memory (ENOMEM). This can result in part of the JVM being swapped out. Increase RLIMIT_MEMLOCK (ulimit).```\r\n\r\nFrom the _nodes API;\r\n```\"max_file_descriptors\" : 65535,```\r\n\r\nAnd the outcome is;\r\n```\r\n[vagrant@centos7 ~]$ curl -s localhost:9200/_nodes?pretty|grep mlockall\r\n          \"mlockall\" : \"true\"\r\n        \"mlockall\" : false\r\n```\r\nThe last one is `process.mlockall`."}}