Home
Supported Java VMs
The Profiler currently can profile applications running on the following JVMs:
- A customized JFluid VM, based on the standard JDK 1.4.2 VM. This customized JVM is
available as a separate NBM download at
http://profiler.netbeans.org/download/index.html
- A standard JDK 6 starting from build 26, that can be
downloaded from Java SE Downloads Web site.
- A standard JDK 5.0_04 VM or newer. JDK 5.0_04 can be downloaded at
http://java.sun.com/j2se/1.5.0/download.jsp.
- Only 32-bit JVMs are supported at this time.
Currently the functionality relevant for the Profiler is the same in JDK 6 and JDK 5.0_04, thus
we further refer to them collectively as "JDK 5/6".
- The Profiler runs on Mac OS X 10.4.2 and newer using Apple's J2SE 5.0 Release 3 and newer.
Profiler 5.0 provides only experimental support for this OS, Mac OS X will be officialy
supported in next Profiler release.
You can change the JVM that the Profiler uses when it launches an application for profiling, by
choosing Tools | Options | Profiler, and selecting the Java Platform from the combo box. You can
also specify Profiler to use the JVM specified in the application. To add or remove a JVM to the list
in the combo box, click Manage Platforms to open the Java Platform Manager.
To use the bundled customized JVM, simply leave the
field blank. When you attach the Profiler to the running or starting JVM, this setting is ignored,
as the target JVM version is detected automatically.
Further details are given below.
The Special Customized JFluid Java VM
If your application requires JDK 1.4.2 to run, you have to use our
special modified Javatm VM derived from HotSpottm VM 1.4.2_04 to profile it.
This modified JVM is available as a separate .nbm
module file. When you install the module, the JVM is placed into the
userdir/modules/profiler-ea-vm directory. Here userdir
is the user directory of the NetBeans IDE that runs the profiler - you can
find that location in the Help -> About dialog. Normally it looks like
(replace "johnsmith" with your login name in all examples below)
/home/johnsmith/.netbeans/4.0 (on UNIX®) or
c:\Documents and Settings\JonhSmith\.netbeans\4.0 (on Windows).
If you need to start the application that you want to profile separately,
i.e. not launch it from NetBeans, you can directly call the Java launcher
located in the jre/bin subdir of the above directory.
How to configure the IDE if you run it on JDK 5.0:
JDK 1.4.2_04 VM cannot run classes compiled with the
Java source code compiler from JDK 5/6.
In these JDK versions, certain incompatible changes to the class file
format have been made, resulting in the fact that older JVMs, not just
JFluid JVM, cannot run .class files generated with JDK 5.0.
If the Profiler discovers that the main class of the profiled application
has an incompatible version number, it informs you about that and stops.
To be able to profile in the IDE that runs on JDK 5.0:
- Install JDK 1.4.x SDK on your machine
- Add it as a new Java platform in the IDE via Tools -> Java
Platform Manager from the main menu
- Open Project Properties (choose Properties from the Project's
contextual menu in the Projects window) and
select this platform as the Java Platform for this project
Standard JDK 5/6 Java VMs
To profile applications on a JDK 5/6 VM supported by the Profiler, choose Tools | Options
| Profiler from the main menu and choose the Java platform from the combo box.
Note that, unlike the customized JFluid VM, the standard JDK 5/6 VMs currently don't
support attaching the tool to the running JVM. Attaching to the JVM on startup, also known
as Direct attachment, is still available. Please see the Attaching
the Profiler to the Local or Remote JVM section for details.