Increasing the heap memory in RTC tomcat application throws error. What is the right way to increase the memory?
Hi,
I am moving from server to VM. My server use to have 48gb RAM, our JVM memory parameters are
JAVA_OPTS="$JAVA_OPTS -Xmx25G"
JAVA_OPTS="$JAVA_OPTS -Xms10G"
JAVA_OPTS="$JAVA_OPTS -Xmn5G"
JAVA_OPTS="$JAVA_OPTS -Xms10G"
JAVA_OPTS="$JAVA_OPTS -Xmn5G"
Now we are moving to VM having 200gb of RAM. So I want to increase the heap memory of JVM in RTC (serverstartup.sh). I am using tomcat.I tried to give following parameters
JAVA_OPTS="$JAVA_OPTS -Xmx50G"
JAVA_OPTS="$JAVA_OPTS -Xms25G"
JAVA_OPTS="$JAVA_OPTS -Xmn5G"
JAVA_OPTS="$JAVA_OPTS -Xms25G"
JAVA_OPTS="$JAVA_OPTS -Xmn5G"
but I get error
JVMJ9GC028E Option too large: '-Xmx'
JVMJ9VM015W Initialization error for library j9gc24(2): Failed to initialize
Could not create the Java virtual machine.
When I run free I get following output
JVMJ9VM015W Initialization error for library j9gc24(2): Failed to initialize
Could not create the Java virtual machine.
When I run free I get following output
[vm]# free -g
total used free shared buff/cache available
Mem: 196 27 37 0 131 167
Swap: 0 0 0
total used free shared buff/cache available
Mem: 196 27 37 0 131 167
Swap: 0 0 0
Any idea why this error is thrown? What is the right way of increasing the memory ?
One answer
This question has most likely nothing to do with RTC, It is very likely related to the Java JVM. Do the following:
- Open your trusted search engine
- Enter JVMJ9GC028E as a search parameter
- Go through the answers e.g. on Stackoverflow.
I am not a JVM expert, but some of the answers seem to make sense to me.