# Elastic search server goes unresponsive periodically

**URL:** <https://discuss.elastic.co/t/elastic-search-server-goes-unresponsive-periodically/32102>\
**Category:** Elasticsearch\
**Created:** [October 13, 2015, 4:16pm UTC](https://discuss.elastic.co/t/elastic-search-server-goes-unresponsive-periodically/32102 "2015-10-13T16:16:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandesh](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@sandesh](https://discuss.elastic.co/u/sandesh)\
**Post date:** [October 13, 2015, 4:16pm UTC](https://discuss.elastic.co/t/elastic-search-server-goes-unresponsive-periodically/32102/1 "2015-10-13T16:16:29Z")

</div>

hi

I am beginner of elastic search .  
My problem regarding elastic search is when i start elastic search after some time elastic search server goes unresponsive, elastic search server is started but no data get fetched and on console following exception occurs:

org.elasticsearch.script.groovy.GroovyScriptExecutionException: IOException[Cannot run program "./tmp/ttyyy": error=2, No such file or directory]; nested: IOException[error=2, No such file or directory];

I am not able to solve it. I always restart elastic search server after 1-2 days or sometime 2-3 time in single day.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 13, 2015, 4:59pm UTC](https://discuss.elastic.co/t/elastic-search-server-goes-unresponsive-periodically/32102/2 "2015-10-13T16:59:08Z")

</div>

Is your ES server accessible to the whole wide Internet? It looks like someone is attempting to exploit it via a Groovy script. Make sure port 9200 and 9300 aren't accessible by those who aren't authorized.

---

<div class="post-metadata">

**Author:** ![sandesh](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@sandesh](https://discuss.elastic.co/u/sandesh)\
**Post date:** [October 14, 2015, 3:47pm UTC](https://discuss.elastic.co/t/elastic-search-server-goes-unresponsive-periodically/32102/3 "2015-10-14T15:47:11Z")

</div>

YES ES server is accessible to wide internate. if someone exploit it via a groovy script then is it causes the ES server unresponsive.  
server have 8 GB RAM how much -Xms and -Xmx is ideal?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 14, 2015, 3:49pm UTC](https://discuss.elastic.co/t/elastic-search-server-goes-unresponsive-periodically/32102/4 "2015-10-14T15:49:48Z")

</div>

> server have 8 GB RAM how much -Xms and -Xmx is ideal?

The standard recommendation is to use half the RAM size as the JVM heap, but never more than 30.5 GB.

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [October 15, 2015, 6:32am UTC](https://discuss.elastic.co/t/elastic-search-server-goes-unresponsive-periodically/32102/5 "2015-10-15T06:32:56Z")

</div>

> [@sandesh](#):
>
> YES ES server is accessible to wide internate. if someone exploit it via a groovy script then is it causes the ES server unresponsive.

This is not good as you are leaving yourself open to attack from the internet. You should use a firewall and any other security measures to protect your cluster from attack. Please read the following blog post and implement it's suggestions to protect your cluster and your data from attack: [Scripting and Security | Elastic Blog](https://www.elastic.co/blog/scripting-security)

---

<div class="post-metadata">

**Author:** ![sandesh](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@sandesh](https://discuss.elastic.co/u/sandesh)\
**Post date:** [October 16, 2015, 1:28pm UTC](https://discuss.elastic.co/t/elastic-search-server-goes-unresponsive-periodically/32102/6 "2015-10-16T13:28:49Z")

</div>

thanks magnusbaeck,

we changing our configuration and security of port 9200 and 9300 .  
but we still facing the problem of ES server un-Responsive.  
Is heap size causese the slowness or unresponsiveness of ES server??

---

<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 5, 2017, 11:44pm UTC](https://discuss.elastic.co/t/elastic-search-server-goes-unresponsive-periodically/32102/7 "2017-07-05T23:44:21Z")

</div>


