5fe014fb3badb8920.jpg_fo742.jpg
1、下载jprofiler linux版
wget http://download-aws.ej-technologies.com/jprofiler/jprofiler_linux_9_1_1.sh
2、安装
sh jprofiler_linux_9_1_1.sh
3、修改 .bash_profile文件:
vim ~/.bash_profile
export LD_LIBRARY_PATH=/opt/jprofiler9/bin/linux-x64
4、把 C:\Documents and Settings\用户名.jprofiler5\下的config.xml上传到远程服务器上,路径为:/opt/jprofiler9/config。
5、在config.xml文件中,找到“session id=”104″ name=”Remote application on ******” ,记录下此id号
6、修改TOMCAT启动文件setenv.sh
-agentlib:jprofilerti=port=8849,nowait,id=100,config=/opt/jprofiler9/config/config.xml -Xbootclasspath/a:/opt/jprofiler9/bin/agent.jar
7、启动tomcat服务器
startup.sh
8、查看日志catalina.out。
Profiler> Protocol version 50
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> Don’t wait for frontend to connect.
JProfiler> Using config file /opt/jprofiler9/config/config.xml (id: 101)
JProfiler> Listening on port: 8849.
JProfiler> Instrumenting native methods.
JProfiler> Can retransform classes.
JProfiler> Can retransform any class.
JProfiler> Native library initialized
JProfiler> VM initialized
JProfiler> WARNING: Dangerous VM parameters detected: [-XX:+UseConcMarkSweepGC]
JProfiler> The profiling interface of the JVM might crash for certain operations
JProfiler> Using dynamic instrumentation
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled

JProfiler> Disconnected. Waiting for reconnection.
JProfiler> Listening on port: 8849.

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code