Windows Service Memory Limitations version 6.1.1


(tiago ramalho) #1

Hi there,

The question is probably pretty obvious but I just can’t find it… After installing the windows service (both the msi and zip, via sc.exe) I can’t just the jvm.options to anything above -Xmx1G… If I do (-Xmx4G, for instance) the service will not start with an unhandled exception thing… What is happening here.

Tks in advance...

BR,
T


(Mark Walkom) #2

Please post the error.


(tiago ramalho) #3

Fast reply :slight_smile: taken from event viewer...

"The Elasticsearch service terminated unexpectedly. "

"Faulting application name: elasticsearch.exe, version: 6.1.1.0, time stamp: 0x5a36e874
Faulting module name: KERNELBASE.dll, version: 6.3.9600.18340, time stamp: 0x57366075
Exception code: 0xe0434352
Fault offset: 0x0000000000008a5c
Faulting process id: 0x1470
Faulting application start time: 0x01d37f710480462b
Faulting application path: C:\Program Files\Elastic\Elasticsearch\6.1.1\bin\elasticsearch.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 424bd642-eb64-11e7-80d0-000d3a26fdfc
Faulting package full name:
Faulting package-relative application ID: "

"Application: elasticsearch.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Elastic.ProcessHosts.Process.StartupException
at Elastic.ProcessHosts.Process.ProcessBase.HandleException(System.Exception)
at System.Reactive.ObserverBase1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnError(System.Exception) at System.Reactive.Observer1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnError(System.Exception)
at System.Reactive.Linq.ObservableImpl.AsObservable1+_[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnError(System.Exception) at System.Reactive.AutoDetachObserver1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnErrorCore(System.Exception)
at System.Reactive.ObserverBase1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnError(System.Exception) at Elastic.ProcessHosts.Process.ObservableProcess+<>c__DisplayClass22_0.<CreateProcessExitSubscription>b__0(System.Reactive.EventPattern1<System.Object>)
at System.Reactive.AnonymousSafeObserver`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnNext(System.__Canon)
at System.EventHandler.Invoke(System.Object, System.EventArgs)
at System.Diagnostics.Process.OnExited()
at System.Diagnostics.Process.RaiseOnExited()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(System.Object, Boolean)"


(Mark Walkom) #4

Is there anything in the Elasticsearch logs?


(Christian Dahlqvist) #5

Are you using a 64-bit version of Windows?


(tiago ramalho) #6

Yes, 64 bit, a VM on Azure running Windows Server 2012 R2.
The logs shows nothing relevant.
"stopping ...
stopped
closing ...
closed"


(tiago ramalho) #7

I finally found the solution. It’s very simple, just install the Server JRE (Java SE Runtime Environment) and config your ES to use it. And that’s it.


(system) #8

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.