There are different ways to profile your application.
IDE integration
With the help of IDE integration: use the "Profile" action from within your IDE, like you do "Run" or "Debug".
J2EE server integration wizard
Automatically enable profiling in a number of popular application servers, generating appropriate startup scripts.
-
If the J2EE server runs locally (i.e. on the same machine where you run the profiler UI)
Use
Tools | Integrate with Standalone J2EE Server... -
If the J2EE server runs on a remote machine
Manual configuration
If none of the above approaches apply, perform a few simple steps described in Enabling profiling manually for your application server.
Attach agent to a running JVM
Attach profiler agent to a running JVM.
Also see J2EE high-level profiling
