Elasticsearch crashes when starting a Windows service

Whenever I stop the Elasticsearch service, the following application error is logged in the Windows event log, indicating a Java access violation. There are no errors in the Elasticsearch log files. This occurs on several computers running Windows 7 Pro SP1 64-bit and occurs with versions 1.3.4 and 1.4.4 of Elasticseach. I also tried several versions of the Java SDK (8 updates 25 and 40, 7 updates 55 and 71) with the same result. There is only one node.

Faulting application name: elasticsearch-service-x64.exe, version: 1.0.15.0, time stamp: 0x51543b9d
Faulting module name: jvm.dll, version: 25.40.0.25, time stamp: 0x54daf724
Exception code: 0xc0000005
Fault offset: 0x0000000000213388
Faulting process id: 0x2f0c
Faulting application start time: 0x01d05a7ef40ebb59
Faulting application path: C:\Program Files (x86)\MyCompany\ELK\Elasticsearch\bin\elasticsearch-service-x64.exe
Faulting module path: C:\Progra~1\Java\jdk1.8.0_40\jre\bin\server\jvm.dll
Report Id: 6638e03c-c72f-11e4-ae77-782bcb9439d2

I installed Elasticsearch as a Windows service using the service.bat file specified in the bin folder. If I run elasticsearch.bat on the command line instead of a service and stop it with ctrl-c, then the shutdown error does not occur. Since I need to run Elasticsearch as a service, does anyone know how to prevent this crash on every shutdown?

+4
source share

All Articles