jprofile 监控resin关键配置过程

阅读更多

客户端:win7 -----jprofiler_windows-x64_6_2_3.zip
服务端:redhat5.4-----jprofiler_linux_6_2_3.tar.gz

服务器端配置:
1.不用复制windows生成的config.xml(可能新版本不用了,服务端也不用指定这个xml)
2.jprofiler_linux_6_2_3.tar.gz解压到/opt/jprofiler6
3.vim /etc/profile 增加

export JAVA_HOME=/usr/local/jdk   
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH   
export RESIN_HOME=/usr/local/resin   
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JA   
VA_HOME/lib:$JAVA_HOME/jre/lib   
export LD_LIBRARY_PATH=/opt/jprofiler6/bin/linux-x64  

 4.vim /usr/local/resin/conf/resin.conf 在jvm参数那里加上

-agentpath:/opt/jprofiler6/bin/linux-x64/libjprofilerti.so=port=8  
849   
-Xbootclasspath/a:/opt/jprofiler6/bin/agent.jar  

 在开头里加上

   
      

 

5.启动resin
查看日志这样就正常了,

JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> 64-bit library
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> Waiting for a connection from the JProfiler GUI ...
JProfiler> Using dynamic instrumentation
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled
JProfiler> Hotspot compiler enabled
Resin-3.1.9 (built Mon, 13 Apr 2009 11:09:12 PDT)

  

你可能感兴趣的:(jprofile,resin)