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

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAK6eDKd7RW2pEjW70tqoj07UUort2yWvc0dvm1qpkywqKXnpXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.