I have installed logstash 2.2 on my AWS linux instance .
When I executed the command to test the config file: service logstash configtest I get the heap error as below,
[root@ip-10-34-77-105 conf.d]# service logstash configtest
Error occurred during initialization of VM
Too small initial heap
I ran the below commands to set JAVA options. But no hope
export _JAVA_OPTIONS="-Xmx2048m -Xms1024m"
I increased xmx and xms up to 4096m, but still end up in same error.
Thanks a lot for support. Even after setting the same I getting heap error.
root@ip-10-34-70-115 init.d]# export LS_JAVA_OPTS="-Xmx2048m -Xms1024m"
[root@ip-10-34-70-115 init.d]# service logstash configtest
Error occurred during initialization of VM
Too small initial heap
[root@ip-10-34-77-105 init.d]# export LS_JAVA_OPTS="-Xmx2048m -Xms2048m"
[root@ip-10-34-77-105 init.d]# service logstash configtest
Error occurred during initialization of VM
Too small initial heap
[root@ip-10-34-77-105 init.d]# export JAVA_OPTS="-Xmx4096m -Xms4096m"
[root@ip-10-34-77-105 init.d]# service logstash configtest
Error occurred during initialization of VM
Too small initial heap
I meant that you should put LS_JAVA_OPTS="-Xmx2048m -Xms2048m" in /etc/default/logstash or /etc/sysconfig/logstash, not just the JVM options themselves.
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.