Insight: WAS MAX_HEAP_SIZE parameter?
Hello,
I'm wondering what are allowed values for MAX_HEAP_SIZE parameter of WAS7 (32-bit). We are using 768 and it works but when we changed it to 2048 it failed with:
JVMJ9VM015W initialization error for library j9gc24(2): Failed to instantiate heap; 2G requested Could not create the Java virtual machine.
-thanks in advance
I'm wondering what are allowed values for MAX_HEAP_SIZE parameter of WAS7 (32-bit). We are using 768 and it works but when we changed it to 2048 it failed with:
JVMJ9VM015W initialization error for library j9gc24(2): Failed to instantiate heap; 2G requested Could not create the Java virtual machine.
-thanks in advance
Accepted answer
Hi Timur,
You can take advantage of a larger heap setting if you are using a 64-bit OS and 64-bit install of WebSphere. You should set the JVM heap no higher than 1/2 the total physical memory divided by the number of instances of WAS you are running. For example, if your system has 8GB of RAM but is running 2 instances of WAS, you should set the max heap no higher than 2GB on each instance ((8GB/2)/2). If you have 16GB on the system and only 1 instance of WAS running, you can set the max heap to 8GB. There are lots of other aspects to consider when it comes to tuning WAS. You may want to have a look at this article. Hope it helps,
You can take advantage of a larger heap setting if you are using a 64-bit OS and 64-bit install of WebSphere. You should set the JVM heap no higher than 1/2 the total physical memory divided by the number of instances of WAS you are running. For example, if your system has 8GB of RAM but is running 2 instances of WAS, you should set the max heap no higher than 2GB on each instance ((8GB/2)/2). If you have 16GB on the system and only 1 instance of WAS running, you can set the max heap to 8GB. There are lots of other aspects to consider when it comes to tuning WAS. You may want to have a look at this article. Hope it helps,
2 other answers
Seems to vary by the OS, OS version, jvm and what else is running on the system.
Searching for "Failed to instantiate heap; 2G requested Could not create the Java virtual machine" on Google I found a few hits. This one seems to have the best explanation (according to the up votes anyway)
http://stackoverflow.com/questions/171205/java-maximum-memory-on-windows-xp
1850 MB seemed to be one of the higher values that was successfully used on Windows.
Searching for "Failed to instantiate heap; 2G requested Could not create the Java virtual machine" on Google I found a few hits. This one seems to have the best explanation (according to the up votes anyway)
http://stackoverflow.com/questions/171205/java-maximum-memory-on-windows-xp
1850 MB seemed to be one of the higher values that was successfully used on Windows.