Prerequisite: JProfiler should be
installed on local windows and remote linux machine (both machines should have same version
of JProfiler)
Please follow the steps to connect the JProfiler from windows to remote linux box (where server is located)
Step 1:
Before running
the remote JBoss, include the below three lines in the run.sh file of the JBoss
(Linux machine),
JAVA_OPTS = "$JAVA_OPTS –Xrunjprofiler:port=8849
-Xbootclasspath/a: /u/ofs/profiler /jprofiler/jprofiler7/bin/agent.jar"
LD_LIBRARY_PATH="/u/ofs/profiler/jprofiler/jprofiler7/bin/linux-x86"
export LD_LIBRARY_PATH
For Example - “/u/ofs/profiler/jprofiler/jprofiler7”
is the JProfiler installed location.
The run.sh
file is located in the JBoss installed location under bin directory (%JBOSS_HOME%/bin).
Step 2:
Open JProfiler
from Start
-> All Programs -> JProfiler7 -> JProfiler
Select ‘Session -> Start Center (Ctrl + O)’ to open JProfiler start center.
Select ‘New
Session’ tab
and click ‘New Remote Integration’.
Step 3:
Select ‘On a
remote computer’
in the profiled application location and select the ‘Platform of the remote computer’.
Step 4:
Select JVM vendor, Version and Mode of the remote JBoss.
Step 10:
Complete the integration
Step 5:
Select startup mode based on the requirement.
Step 6:
Enter remote machine address.
Step 7:
Specify the JProfiler installed directory location of the
remote machine.
Step 8:
Select the port for the profiling connection.
Step 9:
Review the information
Step 10:
Complete the integration
Step 11:
Select the Initial profiling settings (Instrumentation/Sampling) based on the requirement.
Step 12:
Based on the need, session startup setting can be selected.
- Profiling Settings, Filter settings, Trigger settings, Probe settings can be edited.
- Recording CPU data, recording allocations, and enabling triggers can be configured during the startup.
- Now the JBoss is ready for profiling.
Step 13:
The detailed profiling results of the JBoss will be
displayed as shown below.
Hi,
ReplyDeleteDo you have any knowledge, how to connect JProfiler in remote AIX machine.
My remote application running in WAS in AIX 7 environment and the Want to profile it from local window box.
thanks in advance.
Abhijit