您的位置:首页 > 运维架构 > Linux

NO.15 JProfiler5.21 Linux WebLogic92下安装及remote integration配置流程

2010-03-18 11:39 453 查看
环境说明:
服务器操作系统 Linux
服务器中间件 Weblogic92
本地win版 jprofiler5.21
服务器linux版 jprofiler5.22
附加说明:
先从同事那里找了一版Unix完全版的Jprofiler522,但在官方上却找不到Win版522,找了个Win521试了一下居然没问题。后来觉得都是52版的,本地干脆用Win524,结果提示说版本与服务器上的不匹配了。

1.准备工作
1.1 服务器端的jprofiler采用最简单的免安装方式:直接将jprofiler5目录所有内容传到服务器上了事。
传完后,目录结构类似这样 /home/jprofiler5
1.2 本机安装
从略
1.3 将服务器端bea/user_projects/domains/****/bin/startWebLogic.sh文件拷贝至本地

2.配置 jprofier setup
2.1 Welcom
2.2 Import setting :选no
2.3 输入序列号:
2.4 JVM search mode:选No automatic search
2.5 Search for JVMs: 第4步选了No automatic search后,这步会直接跳过
2.6 Check found JVMs:点绿色加号按钮选择本地的JDK目录即可(我感觉最好和服务器上domain采用的JDK版本一致为好:我本地就选择了E:/bea922/jdk150_10)
2.7 IDE Integration:如果你不想与Eclipse之类的IDE集成,可以直接"Next"
2.8 Finished:点击Finished按钮结束。
结束后会自动弹出"Quick Start"对话框,点cancel不理它(你也可以直接选择 "An application on a remote computer",后续操作接3.1)。

3.配置remote Intergration
菜单"session"-"Start Center",在"New Session"标签页中点"New Remote Intergration".
3.1 Choose wizard:这里有个比较坑人的地方,弹出的对话直接到了第2步,是一个默认模式(Generic application server)的向导,害得我一开始折腾了半天,session也连接不上:(
实际应该:点"back"回到第1步,在server清单中选"BEA Weblogic 9.2,Type:Server"
3.2 Local or remote:选择"on a remote computer",并选择操作系统类型"Linux X86/AMD64"
3.3 Startup mode:选择第2项:Startup immediately,connect later with the JProfiler.
(这后边的那小段说明很重要......下文有具体操作,这里不摘了)
3.4 Remote Address:填入服务器IP
3.5 Remote installation directory:填入服务器上jprofiler的安装目录:/home/jprofiler5
3.6 Config synchronization:指的是本地与服务器的一个同步配置文件,在这里填入服务器上打算放这个文件的目录,这里我还是用了/home/jprofiler5,
下面选择手工同步:manual synchronization
3.7 Located start script:从本地选择你从服务器上拷贝来的startWebLogic.sh
3.8 Choose JVM:
3.9 Choose profiling port:选择监控session的端口,用默认的8849就挺好:)
3.10 Check modifications:
3.11 Finished:选择第2项:选No,I will start the session later

4.启动session前最后的准备
4.1 3.11做完后会生成一个startWebLogic_jprofiler.sh文件上传至服务器应用bin目录下
4.2 将本地C:/Documents and Settings/Jan/.jprofiler5/ 下的config.xml上传到服务器/home/jprofiler5目录下(3.6中所配置目录)
(如果你是vista或win7,config.xml应该在c:/user/.jprofiler5/ 下)

5.启动session
5.1 启动应用
服务器应用bin目录下 nohup ./startWebLogic_jprofiler.sh &
5.2 本地启动session
方式一:JProfiler启动后的Quick Start->A demo session or a saved session->next
->在Open Session框中选中你配好的Available session configration->start
->选用默认配置
(Startup中Record CPU data on startup和Record allocation on startup都勾上的话,对本地会产生相当大的CPU和内存消耗,可以在启动后需要查看时临时开启)
->OK
方式二:功能栏(菜单下一栏)第一个StartCenter
方式三:菜单session->StartCenter
OK,可以监控了:)

附参阅的几篇文章
http://www.51testing.com/?uid-138711-action-viewspace-itemid-185537
http://www.51testing.com/?uid-138711-action-viewspace-itemid-173344
http://www.51testing.com/?uid-138711-action-viewspace-itemid-173021
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: