1.首先将jprofiler7解压到/home/vms/jprofiler7下(先注册获取试用license:http://www.ej-technologies.com/download/jprofiler/trial)
2.修改.profile文件,加入如下内容:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/vms/jprofiler7/bin/linux-x64
3.修改_base_start.sh文件,加入如下内容:
JAVA_OPTS="$JAVA_OPTS -Xshareclasses:none -agentpath:/home/vms/jprofiler7/bin/linux-x64/libjprofilerti.so=port=8848"
4.重新登录会话,并运行应用。例如./start_notifyserver.sh,这样通过jprofiler7代理就把notifyserver启动起来了。
5.接下来启动window机器上的Jprofiler7
5.1 并选择"An application server, locally or remotely",下一步
5.2 选择"Apache Tomcat 7.x",下一步
5.3 选择"On a remote computer" 以及 "Linux X86/AMD64",下一步
5.4 JVM vendor:IBM
Version:1.6.0
Mode:JIT
并勾选 "64 bit JVM",下一步
5.5 下一步
5.6 "Remote address"填入要连接的服务器IP,下一步
5.7 "Remote installation directory"填入/home/vms/jprofiler7,下一步
5.8 "Locate the start script"填入tomcat7的中的startup.sh,下一步
5.9 "JProfiler port"填入8848,下一步
5.10 下一步
5.11 选择"Yes, start the session and wait for the application server."
6.接下来就可以监控该应用了。