- 浏览: 994659 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (367)
- JavaScript (23)
- Java (60)
- Python (41)
- 其他 (36)
- SQL (4)
- 开发工具 (26)
- Linux (15)
- AJAX (6)
- Cache (3)
- 正则 (4)
- 架构 (9)
- 手机 (3)
- MySQL (4)
- Android (115)
- vps (1)
- 网站 (4)
- scale (3)
- 搜索引擎 (3)
- iPhone (2)
- hessian (1)
- hessdroid (1)
- 411 (1)
- jstat (1)
- gc (1)
- gallery (1)
- 惯性 (1)
- eclipse (1)
- mac wget error (1)
- miui file explorer 无用 解决办法 (1)
- vim (1)
最新评论
-
qingyezhangluo:
哎。楼主您既然是分享代码的为什么要加密的呢?而且问你密码还不回 ...
android应用换皮肤(转) -
MagicError:
kavoe 写道下载文件有密码。。。。
http抓包工具 -
knightdf:
我先试下再来
JAVA的RAS加密例子 -
kavoe:
下载文件有密码。。。。
http抓包工具 -
changanfounder:
hmc1985 写道setCallbackDuringFlin ...
android gallery滑动惯性问题
WEB服务总是莫名其妙的运行一段时间后JVM直接OutOfMemory错误,这个问题一直困扰着程序的正常运行。大概半个月时间一次,上网查了些资料,也做了不少优化,什么weblogic环境变量Xms,Xmx,MaxPermSize参数调整,可问题依旧,况且这也是治标不治本,问题也许发生在程序中,可能存在内存泄露,或spring和hibernate框架相关的问题。
在网上找到个大家说很好的工具叫Jprofiler,学着弄弄,down下来个最新版本。软件需要注册,注册后有十天的试用期。现在把安装过程记下来。
由于我要监控的程序是在远程的linux系统下的weblogic服务,所以这里记录的是远程监控的配置过程。
先介绍下环境:
系统服务器:
操作系统:linux redhat
web服务器:weblogic 8.1
java虚拟机版本:1.4.2
jprofiler版本:jprofiler_linux_5_1_2.tar.gz(安装包共三个版本 sh,exe,tar.gz)
客户端:
操作系统:Windows Xp SP2
jprofiler5.1.2 for windows(安装包:jprofiler_windows_5_1_2.zip)
安装:
一.客户端安装:
1windows下直接解压zip包,运行jprofiler5.1.2的exe安装即可。
2运行jprofiler并进行配置
1)Quick Start:
选择 An application on a remote computer
->Next
2)Local or remote:
The profiled application s located 选择 On a remote computer,
Platform. of the remote computer 下拉菜单选择“Linux X86/AMD64”
->Next
3)Remote address :填写被监控应用程序所在远程计算机的IP
4)Installation directory:解压路径:/var/jprofiler5
5) choose JVM :
JVM Vendor: Sun jvm提供商
Version:1.4.2 版本
Mode:hotspot 系统默认
6)jprofile port :8849
7)startup mode:
Wait for …… 为了在开发环境中获取监控的信息,它将等待远程计算机上的Jprofile GUI 启动,并和本机建立连接,这种方式比较便于修改jprofiler的配置信息。
Don't wait for …… 不必等待远程计算机的Jprofile GUI 先启动和建立连接,立即启动。但在启动远程应用程序前必须校验当前所配置会话的配置文件。虚拟机参数将参考Jprofile 的config 文件的路径。
这里选择Don't wait for ……
->Next
8) Config synchronization:
Directory for config file in the remote computer:/opt(远程config文件的路径)
同步方式:
Manual synchronization;copy to diretory;execute command:
提供三种同步方式,这里我选择的是第一个手工同步。
->Next
9)Perform. modifications:
Integration type: [Generic application]
Selected JVM: Sun 1.4.2 (hotspot)
Startup mode: Don't wait for JProfiler GUI, startup immediately
Important: The local config file C:\Documents and Settings\Jan\.jprofiler5\config.xml must be copied manually to /opt on the remote computer when the profiling settings are changed.
(1) Please insert
-Xrunjprofiler:port=8849,nowait,id=115,config=/opt/config.xml -Xbootclasspath/a:/var/jprofiler5/bin/agent.jar
into the start command of your remote application right after the java command.
(2) Please add
/var/jprofiler5/bin/linux-x86
to the environment variableLD_LIBRARY_PATH.
A remote session named Remote application on 10.5.31.49 will be created that connects to a running instance of the remote application that is started with the modified start command.
这里的黑体文字部分要保存下来,在服务器端安装时会用到。
->Next
10) Finished:
选No,I will start the session later
因为我们还没有配置服务器端。
二.服务器端安装
1将jprofiler_linux_5_1_2.tar.gz上传到服务器上,/var/下建立jprofiler5目录,并将程序解压到/opt/jprofiler5下即可
2 修改用户环境变量.bash_profile。
加入export LD_LIBRARY_PATH=/var/jprofiler5/bin/linux-x86。如果是 64 位服务器,则选择linux-x64。
运行source .bash_profile 使环境变量立即生效
3 添加weblogic启动参数
将一.9).(1)中黑体的部分加到weblogic的启动文件startWebLogic.sh的参数中如:
${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -verbosegc
-Xrunjprofiler:port=8849,nowait,id=115,config=/opt/config.xml -Xbootclasspath/a:/var/jprofiler5/bin/agent.jar
-Dweblogic.Name=${SERVER_NAME} -Dweblogic.ProductionModeEnabled=${PRODUCTION_MODE} -Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" weblogic.Server
尽量让它在一行中。
4 把 C:\Documents and Settings\Jan\.jprofiler5\ 下的config.xml上传到服务器上,路径为一.8)中配置的Directory for config file in the remote computer:/opt
因为这里选择的同步方式是Manual synchronization,所以以后配置发生改变时,需要手工再次上传新的config.xml到这个路径。
三.启动weblogic服务:
**************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console athttp://[hostname]:[port]/console *
***************************************************
JProfiler> Protocol version 25
JProfiler> Using JVMPI
JProfiler> 32-bit library
JProfiler> Don't wait for frontend to connect.
JProfiler> Using config file /opt/config.xml (id: 114)
JProfiler> Listening on port: 8849.
[Full GC 114K->84K(520256K), 0.0063330 secs]
JProfiler> Native library initialized
JProfiler> If output stops here, please remove -Xdebug from the command line
JProfiler> Using dynamic instrumentation
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled
JProfiler> Hotspot compiler enabled
JProfiler> Starting weblogic/Server ...
<Feb 5, 2008 11:41:31 AM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.4.2_09-b05 from Sun Microsystems Inc.>
<Feb 5, 2008 11:41:31 AM CST> <Info> <Configuration Management> <BEA-150016> <This server is being started as the administration server.>
启动本机的刚才配置好的Session,开始连接……进入监控界面。
感谢:http://www.51testing.com/?uid-138711-action-viewspace-itemid-173344
发表评论
-
eclipse生成javadoc乱码解决
2011-10-24 09:37 1229eclipse在生成javadoc的时候出现乱码,是因为 ... -
Eclipse启动优化,分析其GC过程
2010-12-03 10:44 2118beckrabbit 写道 受此文启发: 随想配置:更快 ... -
Eclipse显示GC
2010-12-03 10:30 1673记得很早以前 3.0或者3.1吧那时候的Eclipse右下角有 ... -
解决eclipse编辑jsp页面时总是光标乱跳的办法
2010-10-20 15:33 1795使用eclipse或myEclipse开发工具时,相 ... -
ant简介(转)
2010-09-02 15:30 13371.Ant Ant是一个Open Source ... -
开源地图编辑器MAPPY
2010-09-01 09:27 2260开源地图编辑器MAPPY mappy的网站:htt ... -
让windows cmd也用上linux命令
2010-07-14 10:24 3165俺俗人不懂dos,但是在win下不会敲命令总觉得难受,特别是一 ... -
http抓包工具
2010-05-18 17:30 8778以前我用这些工具抓包: WinSockExpertEther ... -
tomcat开启远程debug
2010-05-17 14:39 1574CATALINA_OPTS="-server -Xd ... -
JProfiler远程监控Tomcat
2010-05-09 13:20 1386http://www.blogjava.net/envoyda ... -
Jprofiler 配置
2009-12-04 11:57 854http://www.iteye.com/topic/7225 ... -
禁掉 eclipse 的单词拼写检查
2009-11-04 22:45 1689eclipse 的单词拼写检查有点弱智,有时非常烦,禁掉它。 ... -
关闭myeclipse的Quick Update自动更新功能
2009-10-20 13:45 2503Windows > Preferences > M ... -
eclipse常用插件安装地址备份
2009-10-20 11:22 1376https://dl-ssl.google.com/andro ... -
eclipse里打包时排除.svn目录
2009-08-07 11:37 1844project-->properties-->J ... -
putty使用
2009-06-25 18:51 3094PuTTY 中文教程 作者:柴锋 2006年11月 We ... -
putty ssh 上传下载
2009-06-15 13:50 5542或许真的有和我一样想 ... -
Editplus语法高亮实现是Python 编辑调试环境
2009-05-05 10:34 3656为了实现语法加亮和自动完成功能,我们必须下载两个文件,下载地址 ... -
SPRING 2.5 API 中文在线
2009-04-29 21:35 15819SPRING 2.5 API 中文在线 备忘 http://a ... -
myeclipse 中文化及javadoc中文化
2009-03-06 16:34 3013help>software updates>fin ...
相关推荐
JProfiler在Windows可视化远程监控Linux上Tomcat进程的安装步骤
现记录下 jprofiler 远程监控tomcat的安装,与起步.
改善 Java 服务器的性能需要模拟负载下的服务器。创建一个模拟环境、搜集数据并且分析结果可能是对许多开发人员的挑战。这里介绍了使用 JProfiler 跟踪分析 Java 服务器的性能
性能监控JConsole远程监控Tomcat服务
Jprofiler 最新版 监控linux下的tomcat 文档。 希望对你有用哦!这篇文档是我在应用中写下,现在我把资源分改成0分,希望那些不懂的人不要在这里骂人,希望骂人的那些人自身素质提高点,不要在这里出来丢他家里的人...
jprofiler8性能监控jboss和tomcat 配置远程监控图文详解
jprofiler能够对应用进程进行监控,但是需要远程跨平台监控时需要使用相同版本号的jprofiler,切记,由于大小限制不能一次上传,所以每个都1分吧
打开Jprofile,新建一个监控在WebLogic中部署的项目 的详细操作过程[图片记载]
分数只是形式,由于上传文件大小限制,只能发在百度云里面。只要你需要,可以私信我索取,温馨提示,在进行块平台远程监控时,需要在两个系统上分别安装对应版本号一致的jprofiler,否者不能成功。
最新的JProfiler11,它是针对Java EE和Java SE应用程序开发的监控工具,可以集成到 IntelliJ IDEA 中对CPU、内存分析、线程、堆栈等进行在线分析
超级好用的java资源监控软件,功能比jdk自带的jconsole强大很多,只需要简单的配置几个参数,就可以远程监控服务器上的java程序,绝对是java程序猿调优程序的必备选择
在这篇文章中,我使用比较通用的工具( JProfiler 和 JBuilder )和设备创建了一个性能监控分析环境,跟踪本地和远程的服务器程序,专注于三个性能问题:内存、垃圾回收和多线程运行状况,从而很好的监视 JVM 运行...