When run logstash, it promts "Invalid initial heap size: -Xms5g"


(Lyndon) #1

As my computer has 32g memory, so I changed the jvm.options to increase the memory of logstash.
jvm.options is
-Xms5g
-Xmx8g

but after change the jvm.options , it promts the belowing error when run logstash.

root@EC2-ELK-IE-PROD-2 logstash]# /usr/share/logstash/bin/logstash --path.settings=/etc/logstash -r -w 8 -b 2000 -d
Invalid initial heap size: -Xms5g
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

When I googled, many people met this problem because of the 32bit java version.
But my java version is already 64bits.

[root@EC2-ELK-IE-PROD-2 elasticsearch]# java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

Are therre any guys can give me some advice? Thanks very much.


(system) #2

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