`
haoningabc
  • 浏览: 1449682 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

jprofiler6远程resin

    博客分类:
  • java
 
阅读更多
网上找的破解码:L-Larry_Lau@163.com#78484-akisfpr22a5j#268

比如resin装在/usr/local/resin  版本3.1.10

客户端: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)

如果报“Assertion failed: (agentClassLocal), function initReferences, file /Users/hannes/buildsys/jprofiler/build/src/c/agent/shared/LiveProfilingSession.cpp”是因为-Xbootclasspath没有配置对

客户端:
F:\soft\jprofiler6\bin\jprofiler.exe
输入注册码,
an application on a remote cou....
选resin
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics