![]() Previous |
![]() Next |
While the JRockit Mission Control client can work with many different JVMs, it is highly recommended that you use the Oracle JRockit JVM as your JVM when running the JRockit Mission Control Client on the Eclipse platform. Not only will you avail yourself of the JRockit JVM's exceptional performance but, by using this JVM, JRockit Mission Control's autodetect feature is enabled, which makes it simple to connect JRockit Mission Control to your running application.
To make the JRockit JVM to JVM on which you run JRockit Mission Control:
Go to your file system browser (for example, Windows Explorer).
Locate your Eclipse installation folder (for example, C:\Program Files\Eclipse) and, with a file editor other than Notepad, open the file eclipse.ini. It will look similarin the following example:.
-showsplashorg.eclipse.platform--launcher.XXMaxPermSize256M-Dosgi.requiredJavaVersion=1.5-Xms40m-Xmx512mMake the following changes to the eclipse.ini file:
Remove all flags related to other JVMs than the JRockit JVM (for example, --launcher.XXMaxPermSize 256M).
On the third line down (after org.eclipse.platform), add the following:
-vm <Full path to JRockit JDK's javaw file>
The full path to the JRockit JDK's javaw file might look like this on Windows:
C:\Program Files\Java\jrockit-R27.4.0-jdk1.6.0_02\bin\javaw.exe
Or, the path might look like this on Linux and Solaris:
$HOME/jrockit-R27.4.0-jdk1.6.0_02/bin/javaw
Depending upon your particular JRockit JVM implementation and the applications running on it, you can set any valid JRockit JVM command-line option. For example, you might want to set a garbage collector that meets your system priorities by using the -XgcPrio: option or increase (or decrease) the initial and maximum heap size by changing the values for -Xms and -Xmx.
For more information on tuning the JVM, see "Profiling and Performance Tuning" in the Oracle JRockit JVM Diagnostics Guide.
For more information on the available command-line options, see the Oracle JRockit JVM Command-Line Reference on the Oracle Technology Network.:
When you have finished making the necessary changes to the eclipse.ini file, save and close the file. The following example shows the eclipse.ini file updated to make the JRockit JVM the active JVM.
-showsplashorg.eclipse.platform-vmC:\Program Files\Java\jrockit-R27.4.0-jdk1.6.0_02\bin\javaw.exe-vmargs-Dosgi.requiredJavaVersion=1.5-Xms256m-Xmx512m-XgcPrio:pausetime