{"id":137,"date":"2015-04-04T10:17:50","date_gmt":"2015-04-04T10:17:50","guid":{"rendered":"http:\/\/blog.catalystlogic.com.au\/?p=137"},"modified":"2026-03-01T01:44:18","modified_gmt":"2026-02-28T14:44:18","slug":"elasticsearch-windows-environment-variables","status":"publish","type":"post","link":"http:\/\/54.253.247.134\/?p=137","title":{"rendered":"Elasticsearch Windows Environment Variables"},"content":{"rendered":"<p>Like any software raised on linux, even where it runs under a JVM like Elasticsearch, running it on windows bring to light a few quirks.<\/p>\n<p>One of the most common Elastic Search Environment Variables is ES_HEAP_SIZE, shown in the System variable panel below.<\/p>\n<p id=\"UaAbcQi\"><img loading=\"lazy\" decoding=\"async\" width=\"357\" height=\"158\" class=\"alignnone size-full wp-image-139 \" src=\"http:\/\/54.253.247.134\/wp-content\/uploads\/2015\/04\/img_551fb6bb7f0a3.png\" alt=\"\" srcset=\"http:\/\/54.253.247.134\/wp-content\/uploads\/2015\/04\/img_551fb6bb7f0a3.png 357w, http:\/\/54.253.247.134\/wp-content\/uploads\/2015\/04\/img_551fb6bb7f0a3-300x133.png 300w\" sizes=\"auto, (max-width: 357px) 100vw, 357px\" \/><\/p>\n<p>With the default set to 1GB, setting this is often done early on, though note the following 2 gotcha's in windows.<\/p>\n<ol>\n<li>After you set the ES_HEAP_SIZE, you need to re-install the service. Restarting ES won't do it.<\/li>\n<li>If you are restarting the service\u00a0from the command line, remember to open a new CMD\u00a0window after setting the Environment Variables, A stale window will hold the old value, (or have none if none was set) and restarting the\u00a0service in that cmd.exe session\u00a0won't update\u00a0the heap size.<\/li>\n<\/ol>\n<p>Here is how you can ensure that your Environment Variable took under the JVM section via <em>\/_nodes\/stats?pretty=true<\/em><\/p>\n<p>Also, remember to not cross 31Gb!<\/p>\n<p><a title=\"http:\/\/www.elastic.co\/guide\/en\/elasticsearch\/guide\/current\/heap-sizing.html\" href=\"http:\/\/www.elastic.co\/guide\/en\/elasticsearch\/guide\/current\/heap-sizing.html\" target=\"_blank\">http:\/\/www.elastic.co\/guide\/en\/elasticsearch\/guide\/current\/heap-sizing.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Like any software raised on linux, even where it runs under a JVM like Elasticsearch, running it on windows bring to light a few quirks. One of the most common Elastic Search Environment Variables is ES_HEAP_SIZE, shown in the System variable panel below. With the default set to 1GB, setting this is often done early <a class=\"read-more\" href=\"http:\/\/54.253.247.134\/?p=137\">...continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,20],"tags":[],"class_list":["post-137","post","type-post","status-publish","format-standard","hentry","category-elasticsearch","category-windows"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=137"}],"version-history":[{"count":1,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":228,"href":"http:\/\/54.253.247.134\/index.php?rest_route=\/wp\/v2\/posts\/137\/revisions\/228"}],"wp:attachment":[{"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/54.253.247.134\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}