Details: Node is having 31G of memory. DSE: 5.1.3 => Cassandra 3.11.2
java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
Configuration changes tried are as below.
Tried changing cassandra-env.sh
MAX_HEAP_SIZE="16g"
HEAP_NEWSIZE="16g"
Also, updated $CASSANDRA_CONF in cassandra-env.sh to /etc/dse/cassandra and tried.
And also tired changing jvm.options by commenting out in cassandra-env.sh file
-Xms16G
-Xmx16G
With any of the changes above, why is the heap size not changing to 16GB.
1)
java -XX:+PrintFlagsFinal -version | grep -iE 'MaxHeapSize'
uintx MaxHeapSize := 8392802304 {product}
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
2)
java -XX:+PrintCommandLineFlags -version
-XX:InitialHeapSize=524467520 -XX:MaxHeapSize=8391480320 -XX:+PrintCommandLineFlags -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseParallelGC
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
Why is it showing only around 8GB although setting to 16GB and why is there difference in maxheapsize from JVM flag outputs.