读书人

jprofiler6远路resin

发布时间: 2012-07-04 19:33:54 作者: rapoo

jprofiler6远程resin
网上找的破解码: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/jdkexport PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATHexport RESIN_HOME=/usr/local/resinexport CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib:$JAVA_HOME/jre/libexport 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=8849</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 JVMTIJProfiler> JVMTI version 1.1 detected.JProfiler> 64-bit libraryJProfiler> Listening on port: 8849.JProfiler> Instrumenting native methods.JProfiler> Can retransform classes.JProfiler> Can retransform any class.JProfiler> Native library initializedJProfiler> VM initializedJProfiler> Waiting for a connection from the JProfiler GUI ...JProfiler> Using dynamic instrumentationJProfiler> Time measurement: elapsed timeJProfiler> CPU profiling enabledJProfiler> Hotspot compiler enabledResin-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

读书人网 >操作系统

热点推荐