There is insufficient memory for the Java Runtime Environment to continue while using --config.test_and_exit

When I try to test the config of my logstash pipeline I run into this error:

[bash]$ logstash --config.test_and_exit -f /path/to/config.conf
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000714cc0000, 3946053632, 0) failed; error='Not enough space' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 3946053632 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /path/to/hs_err_pid42940.log

I have a 8G node vm of which I have have configued 4g to logstash heap:

-Xms4g
-Xmx4g

I cannot see any sort of memory problems on this machine right now. Do you know what I have this error?

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.