# Running Elasictsearch as a service showing out of memory issue

**URL:** <https://discuss.elastic.co/t/running-elasictsearch-as-a-service-showing-out-of-memory-issue/18858>\
**Category:** Elasticsearch\
**Created:** [July 24, 2014, 10:34am UTC](https://discuss.elastic.co/t/running-elasictsearch-as-a-service-showing-out-of-memory-issue/18858 "2014-07-24T10:34:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohit\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@mohit\_Kumar](https://discuss.elastic.co/u/mohit_Kumar)\
**Post date:** [July 24, 2014, 10:34am UTC](https://discuss.elastic.co/t/running-elasictsearch-as-a-service-showing-out-of-memory-issue/18858/1 "2014-07-24T10:34:14Z")

</div>

hi folks,  
I am frequently getting this error :-  
_2014-07-24 01:45:37 Commons Daemon procrun stdout initialized_  
_java.lang.OutOfMemoryError: Java heap space_  
_Dumping heap to java\_pid84012.hprof ..._  
_Heap dump file created [1081959347 bytes in 4.653 secs]_

to avoid this I have increase the es heap size to 10 g max and min both,  
but the result is the same.  
My system RAM is 32 gb. and my total doc size is only 50 milion (size 15g).  
I am running this on window machine.

NOTE :- If I run elasticsearch without as a service then its working fine.

Can anyone suggest me how can I get rid of it...?

Thank in advance..!!

Regrads  
Mohit Kumar Yadav  
(MCA/BBA)

--  
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/CAK6eDKd7RW2pEjW70tqoj07UUort2yWvc0dvm1qpkywqKXnpXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAK6eDKd7RW2pEjW70tqoj07UUort2yWvc0dvm1qpkywqKXnpXw%40mail.gmail.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:13am UTC](https://discuss.elastic.co/t/running-elasictsearch-as-a-service-showing-out-of-memory-issue/18858/2 "2017-07-06T01:13:33Z")

</div>


