We do not have to connect the JProfiler GUI to our application in order to profile it. By using the JProfiler offline profiling mode, we can use JProfiler's powerful trigger system or even JProfiler APIs to control the profiling agent and save profiling snapshots to the disk. Later, we can open these snapshots using JProfiler for further analysis.
The main advantages and uses of the offline profiling mode (unattended profiling) are as follows:
No connectivity is required between the remote application server machine and the profiler-installed machine because offline profiling is recorded in the remote server machine
We can take regular snapshots of the application's performance
Trigger-based profiling, for example, profiles the application when CPU utilization reaches 80 percent