欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

jprofile 监控resin关键配置过程 博客分类: 安装过程 jprofileresin 

程序员文章站 2024-03-13 08:56:33
...

客户端: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参数那里加上

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

 在开头<class-loader>里加上

<tree-loader path="/opt/jprofiler6/lib"/>   
    <tree-loader path="/opt/jprofiler6/bin"/>  

 

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