Setting JVM verbose garbage collection and heap sizes on the WebSphere proxy server

In order to monitor IBM® WebSphere® Application Server JVM heap for specific applications, enable the JVM verbose garbage collection logging for the WebSphere Application Servers.

Procedure

  1. Log in to the Integrated Solutions Console.
  2. Click Servers > Server Types > WebSphere proxy servers.
  3. In the table listing the WebSphere proxy servers, click the link representing the proxy server you want to modify.
  4. In the Server Infrastructure section, expand the Java and Process Management tree.
  5. Click Process definition.
  6. In the Additional properties section, click Java Virtual Machine.
  7. In the General Properties section, make sure the Verbose garbage collection check box is checked.
  8. In the General Properties section, make sure the Initial heap size is set to 1024 MB.
  9. In the General Properties section, make sure the Maximum heap size is set to 2048 MB.
  10. In the Generic JVM arguments field, enter the following generic JVM arguments:
    -Xgcpolicy:gencon
    -Dsun.nio.MaxDirectMemorySize=1610612736
    -Dclient.encoding.override=UTF-8
    -XX:NewSize=256m
    -XX:MaxNewSize=512m

    Where setting -Dclient.encoding.override=UTF-8 is a best practice. The fourth and fifth arguments define the Eden minimum and maximum size. The Eden size is at least 1/4 of the initial heap size and the maximum heap size.

  11. Click Apply, and then click Save.