Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link
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, 
Timur Markunin selected this answer as the correct answer

0 votes


2 other answers

Permanent link
Hi Timur -

For most environments, where RRDI/Insight is only application deployed to the WAS server, 1024 is the recommendation.

Regards,
Ali

2 votes


Permanent link
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.

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Oct 10 '12, 9:29 a.m.

Question was seen: 7,877 times

Last updated: Oct 10 '12, 1:49 p.m.

Confirmation Cancel Confirm