I have a instance running logstsh 6.8.2 with Java 11.0.19 and JDK of 64Bits, I changed the filter file do add conditions and terraform logstash to the correct environment. After that logstash refused to start giving me a Invalid initial heap size -Xms2g.
I have 5G of free space on that and I don't have anyrhing running on my machine that is occupying the memory.
As of now I have tried changing the heap size to several values, obeying the fact that I have in total 7G and 5G of free space and nothing solved this issue.
I looked thru the forum and tryed the suggestions and did not fix it, what do youi guys suggest I do?
Are you absolutely without-a-doubt 100% certain that you are running a 64-bit JVM and not a 32-bit JVM?
I suggest dropping the heap size down to 512 MB and then reviewing the logs, which should include full details of the Java version being started. It doesn't matter if you cannot run your pipeline in 512 MB, you just need to get the VM up far enough to log those details. It's OK if it crashes after logging that.
Hi, yes. I ran the script java --version and I get the 64 Bits response.
I already did this 512 MB try and it provided me the same issue of memory heap size. No matter what value I add to the jvm options it is giving me the heap error.
The logstash plain log does't update since the memory error and the syslog keeps showing the memory heap issue for each try that I did for the memory.
Badger suggested 512 MB, however 1 GB is enough in the most cases when you have file or beats inputs without complex JSON/XML transformation. On large data set, LS with start and will notice how consumes memory and slow down processing
Use debug/trace log for more details
Check do you have enough memory on the host. Sometimes there is a basic configuration, 2-4 GB memory with ES and Kib
How long is the message? 1 KB, 2 KB, more? Which plugins are you using in the filter?
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.