Create generic JVM argument in WebSphere

Home > Search
  by

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.

  1. In the WebSphere dmgr, select Servers Server types WebSphere application servers.
  2. Select a JVM.
  3. Expand Java and Process Management and select Process definition.
  4. 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.

 


Liberty

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.

-XX:MaxPermSize=128m

 


Validation

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

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments