Setting up Logstash using Docker


(sai srinivas desabathina) #1

Hi Everyone!

This is my first time using Logstash. I am trying to setup logstash on Docker using the following command.

docker run -h logstash --name logstash_a --link elasticsearch_1:elasticsearch -it
--rm -v "SPwD":/config-dir logstash:6.5.0 -f /config-dir/logstash.config

When I run this command I get the following error:

OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c5330000, 986513408, 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 986513408 bytes for committing reserved memory.

An error report file with more information is saved as:

/usr/share/logstash/hs_err_pid1.log

Can someone help me in setting up the Logstash


(Toby McLaughlin) #2

I don't mean to be "Captain Obvious", but how much memory is available to the container? What does your environment look like? Is it a constrained system? A virtual machine of some kind, maybe?


(system) #3

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