环境:window8、ubuntu10
服务器上装jprofiler:
1)安装jprofiler :sh jprofiler_linux_7_1_2.sh
2)配置全局变量:
a)vi /etc/profile
b)在/etc/profilewei最后添加配置:export LD_LIBRARY_PATH=/opt/jprofiler6/bin/linux-x64:$LD_LIBRARY_PATH
c)source /etc/profile
3)配置resin(resin之前已经装好)
a)打开/新建resin4的配置文件:conf]# vim resin.xml,在<class-loader></class-loader>内添加<tree-loader path="/opt/jprofiler7/lib"/> <tree-loader path="/opt/jprofiler7/bin"/>;
b)添加jvm-arg:
vim resin.properties,在jvm_args后添加: -agentpath:/opt/jprofiler7/bin/linux-x64/libjprofilerti.so=port=8849,nowait
4)启动resin
这样再用window下的jprofiler来连接服务器上的resin就ok了。至于window下怎么用jprofiler,可以参考:http://www.blogjava.net/fine/archive/2007/05/07/115671.html
JProfiler7远程监控resin4
猜你喜欢
转载自zhanghe086.iteye.com/blog/1576857
今日推荐
周排行