近来我们的服务器频频出现资源耗尽崩溃的情况,于是决定找一款监控的软件进行分析。在javaeye上看了很多帖子后决定使用JProfiler。闲话少说,我们需要监控远端服务器上的程序如何做呢。
准备工作:在本地机器和远端机器上都安装好JProfiler。
一、首先启动JProfiler,出现quick start对话框,选择An application on a remote computer,next。
二、有2个选项,on this computer和on a remote computer,这里是选择被监控的程序的位置,我们选择on a remote computer,同时选择远程机器的类型是windows还是linux等等。
三、填写远程机器地址,我这里是10.1.4.88。
四、填写远程机器JProfiler的安装地址,我这里是D:\Program Files\jprofiler4。
五、选择远程机器的java运行环境,我这里是sun\1.5.0\hotspot。
六、默认监控端口8849。
七、选择Don't wait,立刻启动。
八、选择远程机器读取配置文件的位置,我这里是D:\Program Files\jprofiler4。同时我手工维护配置文件的改动,选择manual同步。
九、这里要注意,重点在这里,我就是没有看这个说明信息才导致前面配置的屡次失败。
Integration type: [Generic application]
Selected JVM: Sun 1.5.0 (hotspot)
Startup mode: Don't wait for JProfiler GUI, startup immediately
Important: The local config file C:\Documents and Settings\sz-xjs-yangy\.jprofiler4\config.xml must be copied manually to D:\Program Files\jprofiler4 on the remote computer when the profiling settings are changed.
(1) Please insert
"-agentlib:jprofilerti=port=8849,nowait,id=166,config=D:\Program Files\jprofiler4\config.xml" "-Xbootclasspath/a:D:\Program Files\jprofiler4\bin\agent.jar"
into the start command of your remote application right after the java command.
(2) Please add
D:\Program Files\jprofiler4\bin\windows
to the environment variable PATH.
A remote session named Remote application on 10.1.4.88 will be created that connects to a running instance of the remote application that is started with the modified start command.
解释一下,就是将配置文件config.xml 从我本机C:\Documents and Settings\sz-xjs-yangy\.jprofiler4拷贝到\\10.1.4.88\D$\Program Files\jprofiler4, 然后将D:\Program Files\jprofiler4\bin\windows加入到环境变量PATH中,最后运行你的java程序时加入提示的参数。
我就按照这些说明配置好,然后运行我的测试程序jeffen.test1.test1:
D:\yy>java "-agentlib:jprofilerti=port=8849,nowait,id=165,config=D:\Program Files\jprofiler4\config.xml" "-Xbootclasspath/a:D:\Program Files\jprofiler4\bin\agent.jar" jeffen.test1.test1
运行成功后。执行下步。
十、 选择yes,finish。
这个远程监控的session就建好了,可以马上连接进行监控了,上面配置中还有些其他的选择,有兴趣的可以看看说明都试试。
- 描述: 向导最后一步
- 大小: 857.9 KB
- 描述: 监控10.1.4.88的结果
- 大小: 1.8 MB
分享到:
相关推荐
改善 Java 服务器的性能需要模拟负载下的服务器。创建一个模拟环境、搜集数据并且分析结果可能是对许多开发人员的挑战。这里介绍了使用 JProfiler 跟踪分析 Java 服务器的性能
jprofiler监控工具使用说明.doc
Jprofiler监控weiblogic,用于内存监控和优化
性能监控JConsole远程监控Tomcat服务
现记录下 jprofiler 远程监控tomcat的安装,与起步.
JProfiler 是一个全功能的Java 剖析工具(profiler ),专用于分析J2SE 和J2EE 应用 程序。它把CPU 线程和内存的剖析组合在一个强大的应用中。JProfiler 可提供许多IDE 整 合和应用服务器整合用途
jprofiler监控工具使用说明.rar jprofiler监控工具使用说明.rar
JProfiler在Windows可视化远程监控Linux上Tomcat进程的安装步骤
实战培训 01:JProfiler监控实例一.pdf
使用Jprofiler监控Apusic应用服务器
使用 JProfiler 监控 JBoss 运行情况
里面含有具体文件,web.xml 配置、 javamelody...把你的web.xml配置 然后把两个jar放到你的项目下面,然后把那个war包放到你的服务下,启动就可以监控你的项目运行情况,如线程信息,内存了,请求地址的次数了,cpu等、
Jprofiler 最新版 监控linux下的tomcat 文档。 希望对你有用哦!这篇文档是我在应用中写下,现在我把资源分改成0分,希望那些不懂的人不要在这里骂人,希望骂人的那些人自身素质提高点,不要在这里出来丢他家里的人...
JProfiler本地和远程配置windows版
详细介绍jprofiler安装过程和安装过程会出现的问题以及教你如何获得注册码。安装成功后教你如何使用工具,例如什么情况下表示内存溢出,什么情况下进程死锁,这个工具主要是看那些使用标签。
NULL 博文链接:https://reason2003.iteye.com/blog/1565220
jprofiler监控jdk,需要安装,离线安装。win版本。 JProfiler 的内存视图部分可以提供动态的内存使用状况更新视图和显示关于内存分配状况信息的视图。所有的视图都有几个聚集层并且能够显示现有存在的对象和作为垃圾...
jprofiler
JProfiler
jprofiler8性能监控jboss和tomcat 配置远程监控图文详解