Hi,
My elasticsearch-6.4.2 instance was running successfully on Windows 7, until yesterday before I shutdown the windows without shutting down the elastic search instance that was running. Now I am getting 'Access is denied' while trying to start elastic search by running elasticsearch.bat. I am fairly new to it. Any help will be appreciated.
This is what I can find from the bitdefender which is blocking the running
On-Access scanning has detected an execution of a malicious command line. The process
C:\Program Files\Java\jdk1.8.0_101\bin\java.exe was blocked because of the execution of a malicious command line
-Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true
-XX:-OmitStackTraceInFastThrow
-Dio.netty.noUnsafe=true
-Dio.netty.noKeySetOptimization=true
-Dio.netty.recycler.maxCapacityPerThread=0
-Dlog4j.shutdownHookEnabled=false
-Dlog4j2.disable.jmx=true
-Djava.io.tmpdir=C:\Users<user_name>\AppData\Local\Temp\elasticsearch
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=data
-XX:ErrorFile=logs/hs_err_pid%p.log -XX:+PrintGCDetails
-XX:+PrintGCDateStamps -XX:+PrintTenuringDistribution
-XX:+PrintGCApplicationStoppedTime -Xloggc:logs/gc.log
-XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=32
-XX:GCLogFileSize=64m
-Delasticsearch
-Des.path.home="C:\elasticsearch-6.4.2"
-Des.path.conf="C:\elasticsearch-6.4.2\config"
-Des.distribution.flavor="default"
-Des.distribution.type="zip"
-cp "C:\elasticsearch-6.4.2\lib*" "org.elasticsearch.bootstrap.Elasticsearc
Digging deeper I found bitdefender is blocking the running of elastic search due the system property
-Dio.netty.recycler.maxCapacityPerThread=0
So I had to comment it on jvm.options under the config folder to make it to run.
is there any severe impact on commenting this property?
Thanks
It does not sound like a good idea. Your cluster stability may suffer. We do not test this configuration, so it isn't supported. I have linked the discussion around why it was introduced below. The correct thing to do is to fix bitdefender to permit this setting.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.