I wanted to pass -XX:OnOutOfMemoryError=kill -9 %p
option to the JVM arguments of logstash. I added the same in jvm.options file, But once i add it i get:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Please suggest if above option is needed in logstash and what is the format to add it. Should it be escaped or something?
Thanks a lot Luca for the reply.
I wasn't aware that the default behaviour of logstash is to stop upon OutOfMemory.
We were trying to have a custom java plugin in logstash application, so when i tried to see the jvm arguments kill on outofmemory was missing so wanted a way to add it. Since custom code was added was thinking it was safe to add the above option.
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.