转自:http://blog.sina.com.cn/s/blog_7833c84501011q5m.html
Windows客户端的JProfiler远程监控Linux上的Tomcat:
1. 测试环境
服务器:solaris X86;tomcat 6.0;jdk 1.5;jprofiler_unix_5_2_4.sh
客户端:win7;jprofiler_windows_5_2_4.exe
2. JProfiler软件下载地址 http://www.ej-technologies.com/download/jprofiler/files.html
3. 客户端 JProfiler 安装 略
4. 服务器端 JProfiler 安装:
把 jprofiler_unix_5_2_4.sh 上传到到服务器,假设路径为 /zpool1/gpdb_m/crmtest/menglr_18092
# cd /zpool1/gpdb_m/crmtest/menglr_18092
# chmod +x *.sh
# ./ jprofiler_unix_5_2_4.sh -c
注意,这里的 -c 意思是用字符方式来安装,如果机器上没有 X 则加上该参数
提示:
(1) 下载的服务器和客户端版本必须符合操作系统的类型,jprofiler支持操作系统类型为windows、MAC os、linux、Solaris、Aix、FreeBSD、HP-UX;
(2) 客户端需要licence,可以通过在http://www.ej-technologies.com网站上输入用户名和邮箱来获取试用版licence,服务器端不需要licence;
(3) 客户端和服务器端的版本号要一致,此例中均为5.2.4。
5. 客户端连接配置:
(1) 运行 Jprofiler,使用向导配置,或者选择Session->Integration Wizard->New Remote Integratation;
(2) 选择服务器操作系统内容:
(3) 选择启动模式:
(4) 输入服务器IP地址:
(5) 输入服务器中jprofiler的安装路径:
(6) 输入服务器中jprofiler配置文件所放位置,以及同步配置文件的方式(一般选择手动同步):
(7) 选择服务器端JVM参数:
(8) 设置jprofiler监控端口,默认为8849:
(9) 最后生成一个配置说明(这个很重要!!!):
按照以上配置说明的含义是:
首先,在配置结束后将客户端自动生成的配置文件(一般win7在C:\Users\[用户名]\.jprofiler5路径下)拷贝至以上第六步中输入的服务器端jprofiler配置文件所放位置;
其次,将生成的启动项参数加入服务器端的启动文件中(tomcat是catalina.sh或startup.sh)
CATALINA_OPTS="-agentlib:jprofilerti=port=8849,nowait,id=105,config=/zpool1/gpdb_m/crmtest/menglr_18092/jprofiler5/config/config.xml -Xbootclasspath/a:/zpool1/gpdb_m/crmtest/menglr_18092/jprofiler5/bin/agent.jar $CATALINA_OPTS"
export CATALINA_OPTS
再次,添加jprofiler相关环境变量
export JPROFILER_HOME = /zpool1/gpdb_m/crmtest/menglr_18092/jprofiler5
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JPROFILER_HOME
提示:
(1) 如果以上所有步骤都完成之后,启动这个session监控,报连接失败的错误,一般情况下需要检查服务器端jprofiler相关环境变量配置是否已经配置,或者是否即时生效了;另外一种情况有可能是添加jprofiler的启动项参数不正确;
(2) 如果报JProfiler> Could not find session with id: 128的提示,说明运行java程序时,VM参数-agentlib:jprofilerti=port=8849,nowait,id=128,中最后指定的ID有误。将其修改为与config.Xml中指定的<session id="XX" name="XX" ....>...</session>相匹配的ID;
(3) 如果出现License Key Not Valid的情况,则找到正确的Key,将其写入到config.xml中即可。不过这个key与windows版本破解时得到的key不同,可以考虑去jprofiler的官网上申请试用版的key。
6. 全部配置完成之后,可以启动客户端的jprofiler,选择session>start center>Open Session
Available session configurations中列出了刚才配置的连接,选中使用就OK了!!
启动时服务器端日志输出包括以下内容:
JProfiler> Protocol version 27
JProfiler> Using JVMTI
JProfiler> 32-bit library
JProfiler> Don't wait for frontend to connect.
JProfiler> Using config file /zpool1/gpdb_m/crmtest/menglr_18092/jprofiler5/config/config.xml (id: 105)
JProfiler> Listening on port: 8849.
JProfiler> Native library initialized
JProfiler> VM initialized
JProfiler> Using dynamic instrumentation
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled
JProfiler> Hotspot compiler enabled
JProfiler> Starting org/apache/catalina/startup/Bootstrap ...
当jprofiler终端监控时,会出现:
JProfiler> Disconnected. Waiting for reconnection.
JProfiler> Listening on port: 8849
相关推荐
JProfiler在Windows可视化远程监控Linux上Tomcat进程的安装步骤
现记录下 jprofiler 远程监控tomcat的安装,与起步.
性能监控JConsole远程监控Tomcat服务
Jprofiler 最新版 监控linux下的tomcat 文档。 希望对你有用哦!这篇文档是我在应用中写下,现在我把资源分改成0分,希望那些不懂的人不要在这里骂人,希望骂人的那些人自身素质提高点,不要在这里出来丢他家里的人...
jprofiler8性能监控jboss和tomcat 配置远程监控图文详解
JProfiler7.1.2强大的性能剖析...1、Linux+WebSphere+Jprofiler、Window+WebSphere+Jprofiler、Window+tomcat+Jprofiler及JProfiler客户端安装配置 2、JProfiler7.1.2永久license key 10个 3、JProfiler主要功能介绍
jprofiler_linux_10_0_3版本,用于linux、unix操作系统服务端安装。
jprofiler_linux_4_3_2.tar.gz 和 JProfiler在Linux上的安装和使用.rar
里面含有具体文件,web.xml 配置、 javamelody...把你的web.xml配置 然后把两个jar放到你的项目下面,然后把那个war包放到你的服务下,启动就可以监控你的项目运行情况,如线程信息,内存了,请求地址的次数了,cpu等、
JProfiler在Linux上的安装和使用
JProfiler本地和远程配置windows版
改善 Java 服务器的性能需要模拟负载下的服务器。创建一个模拟环境、搜集数据并且分析结果可能是对许多开发人员的挑战。这里介绍了使用 JProfiler 跟踪分析 Java 服务器的性能
性能测试监控工具,剖析JVM,本内容是监控服务器是linux和aix操作系统
JProfiler在Linux上的安装和使用.rar JProfiler在Linux上的安装和使用.rar JProfiler在Linux上的安装和使用.rar JProfiler在Linux上的安装和使用.rar JProfiler在Linux上的安装和使用.rar
jProfiler7 java内存分析 linux版本
JAVA性能瓶颈,漏洞检测,提高开发效率。它一个Java代码、内存和覆盖率分析工具。JProfiler_linux_9.1.1.sh
NULL 博文链接:https://reason2003.iteye.com/blog/1565220
这是jprofiler_linux_9_2_1.rpm(1),还一个jprofiler_linux_9_2_1.rpm(2),由于上传资源有限制,还请见谅,第二部分可以免积分下载
jprofiler监控工具使用说明.doc
入门教程,适用于JProfiler ...监视本地JVM(Windows): 需要安装JProfiler windows版本 监视远程的JVM(Linux): 客户端需要安装JProfiler windows版本 服务需要安装JProfiler Linux版本 客户端与服务端通过socket通信