I recently upgraded the Apache Ignite
version to 2.17
and JDK
version to 17
.But I am getting below exception in line of code var ignite = Ignition.TryGetIgnite() ?? Ignition.Start(igniteConfiguration);
and also am specifically setting JVMOptions to igniteConfiguration.JvmOptions.Add("-Xms1g -Xmx1g");
to overcome from heap outofmemory exception
.
Exception :
Service cannot be started. Apache.Ignite.Core.Common.IgniteException: JNI_CreateJavaVM failed: InvalidArguments
at IgniteService.IgniteServiceWrapper.Start()
at IgniteService.Program.<>c.<Main>b__0_9
at Topshelf.ServiceConfiguratorExtensions.<>c__DisplayClass2_0`1.<WhenStarted>b__0(T service, HostControl control)
at Topshelf.Builders.DelegateServiceBuilder`1.DelegateServiceHandle.Start(HostControl hostControl)
at Topshelf.Runtime.Windows.WindowsServiceHost.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
I tried setting other JVM Options and reinstalling JAVA_HOME which didn't solve the problem
Each JVM option should be specified separately.
Replace
With