Turning on verbose garbage collection
Verbose garbage collection is a feature that writes log files detailing when garbage collection occurred, how long it took, and what was collected. While we would not recommend having it permanently turned on in a live system, it can be useful when trying to debug garbage collection related problems.
Getting ready
This recipe assumes you are using the HotSpot JVM, if you are using JRockit, see the There's more… section of this recipe for the parameter you need.
For more details, refer to the Getting ready section of the Setting the new size recipe.
How to do it...
To enable verbose garbage collection logging, perform the following steps:
Navigate to the domain's
bin
directory:cd %MIDDLEWARE_HOME%/user_projects/domains/soa_domain/bin
Open the
setSOADomainEnv.cmd
orsetSOADomainEnv.sh
script in a text editor.Locate the following lines:
SET DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m –XX:MaxPermSize=512m SET PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize...