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

How do I change the Java heapsize?

I have an installation with JTS, RTC, RRC, and RQM + RSA/DM, running in a VMWare image for demo purposes. I want to increase the Java heapsize to improve performance. How do I do that?

0 votes


Accepted answer

Permanent link
Instead of touching the catalina.bat, you should rather edit <install dir>/server/server.startup.bat (or shell script)
Look for these lines, and edit them to meet your needs:

set JAVA_OPTS=%JAVA_OPTS% -Xmx4G
set JAVA_OPTS=%JAVA_OPTS% -Xms4G
set JAVA_OPTS=%JAVA_OPTS% -Xmn512M

Try to keep max (-Xmx) heap == min (-Xms) heap, and nursery size (-Xmn) to 1/8 of max heap.
Sandra Bernspang selected this answer as the correct answer

3 votes

Comments

Thank you, Philippe.


3 other answers

Permanent link
Hi Sandra,

If you want increase Java heap size on websphere follow these steps below.

  1. Open the WebSphere Application Server administrative console, http://hostname:port/ibm/console , and log in.
  2. Expand Servers > Application servers > server1 > Java and Process Management > Process Definition > Java Virtual Machine.
  3. Change the Max Heap Size to a larger value.
  4. Click Apply and click Save at the top of this page.
  5. Restart WebSphere Application Server.
If you are using another application server let me know.

Tks
Anderson

2 votes

Comments

Anderson, I'm using Tomcat.


Permanent link
You can use this topic for reference http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/topic/com.ibm.jazz.install.doc/topics/t_run_rqm64_win_service.html

2 votes


Permanent link
Sandra, Try this

Use the environment variable CATALINA_OPTS or JAVA_OPTS in catalina.bat or catalina.sh to set JVM heap size.

1 vote

Comments

That's what I thought I needed to do, just wanted to see if there was a better (recommended) way than by editing the bat file.

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
× 7,492
× 6,121

Question asked: Oct 08 '12, 8:12 a.m.

Question was seen: 12,637 times

Last updated: Oct 18 '12, 9:16 a.m.

Confirmation Cancel Confirm