It's all about the answers!

Ask a question

How to edit JVM settings of bundled WAS liberty in case of CLM 6.0.2 ?


Natsumi Yokoyama (20928087) | asked Jun 01 '16, 12:46 a.m.
edited Jun 02 '16, 9:00 p.m.
Hi,

I want to change Heap memory size of liberty's JVM. But I can not know how to do this.

I can see used heap memory via admin Center. But it is not editable.
https://hostname:9443/adminCenter/#explore/monitor

Thank you in advance.

Natsumi

Accepted answer


permanent link
Alan Sampson (93729) | answered Jun 02 '16, 12:36 p.m.
JAZZ DEVELOPER
The Liberty JVM settings can be updated in the server.startup.bat or (probably) server.startup.sh script in the <JAZZ_HOME>\server directory:

e.g:
...
set JAVA_OPTS=%JAVA_OPTS% -Xmx4G
set JAVA_OPTS=%JAVA_OPTS% -Xms4G
set JAVA_OPTS=%JAVA_OPTS% -Xmn512M
set JAVA_OPTS=%JAVA_OPTS% -XX:MaxDirectMemorySize=1G
set JAVA_OPTS=%JAVA_OPTS% -Xgcpolicy:gencon
set JAVA_OPTS=%JAVA_OPTS% -Xcompressedrefs -Xgc:preferredHeapBase=0x100000000
...

Natsumi Yokoyama selected this answer as the correct answer

Comments
Natsumi Yokoyama commented Jun 02 '16, 8:57 p.m.

I can change my liberty settings by updating server.startup.bat. Thank you for your answer.

One other answer



permanent link
HÃ¥kan Kristiansson (5114) | answered Jun 01 '16, 4:36 a.m.
I think this will help: Settinggeneric Java in Liberty Profile

Your answer


Register or to post your answer.