Generic JVM arguments can be used to configure a JVM. For example, a JVM argument can be used to configure the JVM with a certain minimum and maximum heap size.
- In the WebSphere dmgr, select Servers > Server types > WebSphere application servers.
- Select a JVM.
- Expand Java and Process Management and select Process definition.
- Select Java Virtual Machine.
In this example, generic JVM argument -XX:NewSize=512M is used. This JVM argument configures the JVMs heap young generation to an initial size of 512 MB. You will need to restart the JVM for this change to take effect.
If using Liberty, you would create a file named "jvm.options" in the root directory of your Liberty profile, such as /opt/IBM/WebSphere/Liberty/usr/servers/server_name. As an example, you could add the following line to jvm.options to set the max perm gen size to be 128 MB.
The ps command can be used to validate that the JVM is using the argument at runtime.
~]# ps -ef | grep -i WebSphere -XX:MaxPermSize=128m