Using the Oracle JRockit JVM
JRockit is a JVM specifically designed for high performance application servers, and can often deliver better performance than HotSpot. This recipe explains how to switch to the JRockit JVM if you are not already using it.
Getting ready
This recipe assumes that you are starting WebLogic using the startWebLogic
or startManagedWebLogic
scripts, and if you are using the node manager or some other mechanism, you will need to specify the new JVM home location through the console or another mechanism.
How to do it…
To use the Oracle JRockit JVM, perform the following steps:
Navigate to the domain
bin
directory, as shown in the following command line:cd %MIDDLEWARE_HOME%/user_projects/soa_domain/bin
Edit the file
setDomainEnv.cmd
orsetDomainEnv.sh
, add the lineset JAVA_VENDOR=Oracle
orset JAVA_VENDOR=Oracle
, depending on whether you are on Microsoft Windows or Linux.Save the file.
Start WebLogic by running
startWebLogic.sh
orstartWebLogic.cmd
.Check that the output lists...