After adding the filebeat agents on a number of servers I am seeing memory errors in Logstash - I was just trying to get the logstash version to make sure I had the current one and get this error:
ubuntu@ip-10-152-3-25:/usr/share/logstash$ bin/logstash -v
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000414cc0000, 15757213696, 0) failed; error='Cannot allocate memory' (errno=12)
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (mmap) failed to map 15757213696 bytes for committing reserved memory.
I had the error earlier when I was using the default 1GB for the jvm heap - so I modified the settings in jvm.options file to be:
-Xms15g
-Xmx15g
Since I have an AWS m5.xlarge instance which is 16GB ram.
I did manage to check the logstash version using a different command:
ubuntu@ip-10-152-3-25:/usr/share/logstash$ sudo bin/logstash --version
logstash 6.4.0
I am not very familiar with Linux, java or logstash so any help in the best way to resolve this would be great. I will paste in the error file it created in the next post so there is more information.