You can use the IBM WebSphere Liberty jvm.options file to set Java
virtual machine (JVM) arguments.
About this task
JVM arguments are defined in the server.startup file for each application.
However, you can use the IBM WebSphere Liberty jvm.options file to set JVM
arguments if you prefer that location; for example, if you already use it for other purposes.
Important: The arguments in the server.startup file, override the
arguments in the jvm.options file. If you add an argument to the
jvm.options file, you must remove it from the
server.startup file.
Procedure
-
Go to the JazzInstallDir/server/liberty/servers/clm directory and open the
jvm.options file for editing.
-
Add JVM arguments by inserting one argument per line. Example:
-Xmx4G
-Xms4G
-Xmn1G
-Xgcpolicy:gencon
-
Save and close the jvm.options file.
- If you are upgrading from an earlier version of Engineering Lifecycle Management:
- Go to the JazzInstallDir/server directory and open the
server.startup file for editing.
- Remove or comment out the
-Xcompressedrefs and
-Xgc:preferredHeapBase=0x100000000" parameters from the file
- Save and close the server.startup file.
-
For the changes to the jvm.options and server.startup
files to take effect, restart the WebSphere Liberty server.