unset pathmunge
export TMOUT=300
export JAVA_HOME=/home/jdk6u22/jdk1.6.0_22
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JPROFILER_HOME=/home/jprofiler/jprofiler7/bin/linux-x64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JPROFILER_HOME
JAVA_OPTS="$JAVA_OPTS -agentlib:jprofilerti=port=8849-Xbootclasspath/a:/home/jprofiler/jprofiler7/bin/agent.jar"
CATALINA_OPTS="-agentpath:/home/jprofiler/jprofiler7/bin/linux-x64/libjprofilerti.so=port=8849,nowait$CATALINA_OPTS"
2). 選擇 Session->Integration Wizard->New Remote Integratation
3). 選擇 On a remote computer;Platform of remote computer 選擇 Linux x86/AMD 64;Next
4). 選擇服務器的 JDK 環境,這裏是:apple,1.6.0,hotspot;next:
7). 輸入服務器上的 jprofiler 的安裝路徑,如/home/jprofiler/jprofiler7 ;next