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
- Log in to the Integrated Solutions Console.
-
Click .
- In the table listing the WebSphere proxy servers, click the link
representing the proxy server you want to modify.
- In the Server Infrastructure section,
expand the Java and Process Management tree.
- Click Process definition.
- In the Additional properties section,
click Java Virtual Machine.
- In the General Properties section,
make sure the Verbose garbage collection check
box is checked.
-
In the General Properties section, make sure the Initial heap
size is set to
1024 MB
.
-
In the General Properties section, make sure the Maximum heap
size is set to
2048 MB
.
-
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.
- Click Apply, and then click Save.