Jprofiler监控远程项目安装步骤.docx

上传人:asd****56 文档编号:73190074 上传时间:2023-02-16 格式:DOCX 页数:15 大小:556.50KB
返回 下载 相关 举报
Jprofiler监控远程项目安装步骤.docx_第1页
第1页 / 共15页
Jprofiler监控远程项目安装步骤.docx_第2页
第2页 / 共15页
点击查看更多>>
资源描述

《Jprofiler监控远程项目安装步骤.docx》由会员分享,可在线阅读,更多相关《Jprofiler监控远程项目安装步骤.docx(15页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、Jprofiler监控远程application server部署步骤:首先安装jprofiler,客户端、服务器端都得装,服务器端装linux版本,到官方网下载解压即可下面以JProfiler+resin为例,来说明JProfiler对远程application server监控的配置方法:1、选择An application server,locally or remotely,如下图:2、选择服务器,这里选择Caucho Resin 3.1如下图:3、有2个选项,On this computer和On a remote computer,这里选择监控远程机器n a remote comp

2、uter,同时在latform of the remote computer选项选择远程机器对应的操作系统,然后点击next,如下图:4、选择远程机器的java(java安装版本和产商)运行环境,这里选择的是JVM Vendor:BEA Version:1.6.0 Mode:default 如果远程机器是64位系统,务必也勾上64 bit JVM,然后点击next5、Wait for 。为了在开发环境中获取监控的信息,它将等待远程计算机上的Jprofile GUI 启动,并和本机建立连接,这种方式比较便于修改jprofiler的配置信息。这里选择startup immediately,conn

3、ect.6、填写远程机器的地址,如下图:7、填写远程机器JProfiler的安装地址,我这里是/usr/local/jprofiler6,如下图:8、选择远程机器读取配置文件的位置,这里是/usr/local/jprofiler6/config,同时手工维护配置文件的改动,选择manual同步。同步方式: Manual synchronization;copy to diretory;execute command: 提供三种同步方式,这里选择的是第一个手工同步,如下图:9、选择启动脚本点击Next进入“启动脚本选择”对话框,输入resin.conf路径,远程的可以将resin.conf下载到

4、本地,然后选择。如下图:10、默认监控端口8849,如下图:11、注意:在E盘根目录下生成了start_resin_jprofiler.sh脚本Integration type: Caucho Resin 3.1Selected JVM: BEA 1.6.0 (default)Startup mode: Startup immediately, connect later with the JProfiler GUIImportant: The local config file C:Documents and SettingsAdministrator.jprofiler6config.xm

5、l must be copied manually to /usr/local/jprofiler6/config on the remote computer when the profiling settings are changed.Installation directory: E:downloadA start script named start_resin_jprofiler.sh will be created in the same directory.A remote session named Caucho Resin 3.1 on 113.106.96.148 wil

6、l be created that connects to a running instance of the application server that is started with the modified start command.12、选择No,I will start the session later,最后点击finish13、12、配置完成点击Next进入“完成配置”对话框,点击finish完成配置,配置完成后将本地的配置文件C:Documents and SettingsAdministrator.jprofiler6config.xml拷贝到linux下放置配置文件的

7、地方,如:/usr/local/jprofiler6/config/在resin.conf的中加入 在中加入-agentpath:/usr/local/jprofiler6/bin/linux-x64/libjprofilerti.so=port=8849,nowait,id=110,config=/usr/local/jprofiler6/config/config.xml红色部分在在E盘根目录下生成的start_resin_jprofiler.sh脚本可以看到启动resin即可Jprofiler监控远程application部署步骤:配置远程application的监控1、在本地启动JPr

8、ofiler,出现quick start对话框,选择An application on a remote computer然后点击next,如下图:2、有2个选项,On this computer和On a remote computer,这里选择监控远程机器n a remote computer,同时在latform of the remote computer选项选择远程机器对应的操作系统,然后点击next,如下图:3、选择远程机器的java(java安装版本和产商)运行环境,这里选择的是JVM Vendor:BEA Version:1.6.0 Mode:default 如果远程机器是64

9、位系统,务必也勾上64 bit JVM,然后点击next4、Wait for 。为了在开发环境中获取监控的信息,它将等待远程计算机上的Jprofile GUI 启动,并和本机建立连接,这种方式比较便于修改jprofiler的配置信息。这里选择startup immediately,connect.4、填写远程机器的地址,如下图:5、填写远程机器JProfiler的安装地址,我这里是/usr/local/jprofiler6,如下图:6、选择远程机器读取配置文件的位置,这里是/usr/local/jprofiler6/config,同时手工维护配置文件的改动,选择manual同步。同步方式: M

10、anual synchronization;copy to diretory;execute command: 提供三种同步方式,这里选择的是第一个手工同步,如下图:7、默认监控端口8849,如下图:8、这里要注意,重点在这里,如果不看清楚这个说明信息,会导致配置失败,需要将里面的信息拷贝出来。Integration type: Generic applicationSelected JVM: BEA 1.6.0 (default)Startup mode: Startup immediately, connect later with the JProfiler GUIImportant:

11、The local config file C:Documents and SettingsAdministrator.jprofiler6config.xml must be copied manually to /usr/local/jprofiler6/config on the remote computer when the profiling settings are changed.(1) Please insert-Xjvmpi:entryexit=off -agentpath:/usr/local/jprofiler6/bin/linux-x64/libjprofilerti

12、.so=port=8849,nowait,id=111,config=/usr/local/jprofiler6/config/config.xml into the start command of your remote application right after the java command.A remote session named Remote application on 113.106.96.148 will be created that connects to a running instance of the remote application that is

13、started with the modified start command.解释一下:将配置文件config.xml 从本机C:/Documents and Settings/Administrator/.jprofiler6拷贝 到远程服务器113.106.96.148上的/usr/local/jprofiler6/config目录下;在java启动脚本中增加下面信息 -agentpath:/usr/local/jprofiler6/bin/linux-x64/libjprofilerti.so=port=8849,nowait,id=111,config=/usr/local/jpro

14、filer6/config/config.xml -Xbootclasspath/a: /usr/local/jprofiler6/bin/agent.jar 注:在启动脚本中,增加上面信息后,会嵌套启动jprofiler6进程,对性能会有一定的影响,但具体影响程度暂无法评估,所以在不需要监控时,建议对这些脚本进行注释。如:Linux下:$JAVACMD -Did=vgopTool -cp $CLASSPATH -DCONFIG_FILE=$MY_HOME/cfg/config.properties -agentlib:jprofilerti=port=8849,nowait,id=130,c

15、onfig=/home/sps/jprofiler4/config/config.xml -Xbootclasspath/a:/home/sps/jprofiler4/bin/agent.jar com.mgj.main.MainWindows下:java -classpath ./lib/dom4j-1.6.1.jar; -agentlib:jprofilerti=port=8849,nowait,id=131,config=C:Documents and SettingsAdministrator.jprofiler4config.xml -Xbootclasspath/a:C:Progr

16、am Filesjprofiler4binagent.jar com/mgj/main/Main/usr/local/jprofiler6/bin/linux-x86加入到环境变量中, 变量名称为:LD_LIBRARY_PATH10、选择No,I will start the session later,最后点击finish#!/bin/bashsource /etc/profileMAVEN_OPTS=-Xmx1024m -Xjvmpi:entryexit=off -agentpath:/usr/local/jprofiler6/bin/linux-x64/libjprofilerti.so=port=8849,nowait,id=111,config=/usr/local/jprofiler6/config/config.xmlexport MAVEN_OPTSmvn -e exec:java -Dexec.mainClass=com.duowan.lobbytask.schedule.ScheduleThreadPoolByTempDBAnalysis -Dexec.args=10 /dev/null 2&1 &

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 技术资料 > 施工组织

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com