Choosing a garbage collection algorithm in JRockit
Choice of garbage collection algorithm can have a large impact on the performance of an application, JRockit provides you with two options to specify whether performance or pause times are more important to your application.
Getting ready
This recipe assumes you are using the JRockit JVM. There is a separate recipe for using the HotSpot JVM.
For more details, refer to the Getting ready section of the Setting the new size recipe.
How to do it...
To set the JRockit garbage collector for a WebLogic Server, 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=128m –XX:MaxPermSize=512m
Or the equivalent on a Linux or a Unix system.
Edit the previous lines...