How do I change the Java heapsize?
Accepted answer
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.
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.
3 other answers
Hi Sandra,
If you want increase Java heap size on websphere follow these steps below.
Tks
Anderson
If you want increase Java heap size on websphere follow these steps below.
-
Open the WebSphere Application Server administrative console,
http://hostname:port/ibm/console
, and log in. - Expand Servers > Application servers > server1 > Java and Process Management > Process Definition > Java Virtual Machine.
- Change the Max Heap Size to a larger value.
- Click Apply and click Save at the top of this page.
- Restart WebSphere Application Server.
Tks
Anderson