- Running the profiler
- Running applications with the profiler
- Local profiling
- Remote profiling
- Remote profiling from user interface
- Console Java EE server integration wizard
- Console attach wizard
- Startup options
- Attaching profiler agent to a running JVM
- Profiling overhead: how to reduce or avoid
- Enabling profiling manually
- About JVMTI
- Connect to profiled application
- Troubleshoot connection problems
- Solving performance problems
- CPU profiling
- Deadlock detector
- Memory profiling
- Garbage collection
- Monitor profiling
- Exception profiling
- Probes: monitor events of various kinds
- Performance Charts
- Inspections: automatic recognition of typical problems
- Automatically trigger actions on event
- Summary, snapshot annotation, automatic deobfuscation
- IDE integration
- Time measurement (CPU time, wall time)
- Snapshot directory customization
- Export of profiling results to HTML, CSV, XML, plain text
- Profiler API
- Command line tool to control profiling
- FAQ: How to profile in my scenario?
Console attach wizard
This article describes how to use console wizard to attach profiler agent to a running JVM. Console wizard might be useful if you want to profile remote Java EE server or the machine has no graphics environment.
Running the wizard
Install profiler on the machine where your Java application is running. License key is not required to use the wizard.
Run the command below:
<Profiler Installation Directory>\bin\attach.bat
<Profiler Installation Directory>\bin\attach.bat <PID>
<Profiler Installation Directory>\bin\attach.bat <PID> <startup_options>
<Profiler Installation Directory>/Contents/Resources/bin/attach.sh
<Profiler Installation Directory>/Contents/Resources/bin/attach.sh <PID>
<Profiler Installation Directory>/Contents/Resources/bin/attach.sh <PID> <startup_options>
On other platforms
<directory with unpacked content>/bin/attach.sh
<directory with unpacked content>/bin/attach.sh <PID>
<directory with unpacked content>/bin/attach.sh <PID> <startup_options>
<PID>is an optional parameter.
Specify it to immediately attach the agent to particular application.
<PID> is not specified,
the wizard will show the list of running JVMs
and offer to choose to which JVM to connect.
is an optional parameter to specify additional startup options.
<PID> parameter is not specified,
the wizard will offer to specify startup options.
Follow the instructions that will appear:
After the profiler agent is attached, its port will be printed out. Use this port number to connect to the application and start profiling.