Disabling the RMI garbage collector
The RMI garbage collector is a task that periodically runs an explicit garbage collection in order to free up objects involved in remote method calls. By default, this runs once per minute, which is very frequent for a system where most RMI objects are going to be quite long-lived.
Getting ready
For more details, refer to the Getting ready section of the Setting the new size recipe.
How to do it...
To disable the RMI garbage collector, consider the following steps:
Navigate to the domain's
bin
directory:cd %MIDDLEWARE_HOME%/user_projects/domains/soa_domain/bin
Open the script
setSOADomainEnv.cmd
orsetSOADomainEnv.sh
in a text editor.Locate the following line:
SET EXTRA_JAVA_PROPERTIES=%EXTRA_JAVA_PROPERTIES% -Dums.oracle.home=%UMS_ORACLE_HOME%
Or the equivalent on a Linux or a Unix system.
Edit the previous line to add the following properties:
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
SET EXTRA_JAVA_PROPERTIES=%EXTRA_JAVA_PROPERTIES...