Running Elasictsearch as a service showing out of memory issue

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..!!

Mohit Kumar Yadav

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
To view this discussion on the web visit
For more options, visit