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/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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值