部署JProfiler监控tomcat
下载JProfiler包 wget http://download-keycdn.ej-technologies.com/jprofiler/jprofiler_linux_9_2.rpm 安装JProfiler rpm -ivh jprofiler_linux_9_2.rpm 安装JProfiler客户端http://download-keycdn.ej-technologies.com/jprofiler/jprofiler_windows-x64_9_2.exe 客户端安装完成后,打开客户端。Start Center → New Session → New Server Integration。会弹出“integration Wizard“窗口,依次选择如图:
创建完成后,会在本地生成一个名为“startup_jprofiler.sh”启动脚本,会与start.sh路径一样。再将“startup_jprofiler.sh”启动脚本 拷贝到被监控服务器上,tomcat/bin/目录下。 此脚本需要修改最后一行,由“exec "$PRGDIR"/"$EXECUTABLE" run "$@"”修改为“exec "$PRGDIR"/"$EXECUTABLE" start "$@"” 最后stop被监控服务器的java进程,用“startup_jprofiler.sh”脚本启动tomcat,打开刚才创建的配置进行访问就 OK了
相关推荐
kudingcha 2019-12-29
tianshijianbing 2019-08-05
Guyuebingchuan 2017-07-14
chenjiawei 2011-10-11
includeGuYan 2013-12-23
四哥 2010-01-13
joinhuang 2011-07-04
xxping 2011-04-22
xingzhaozhong 2011-12-29