ce97
作者ce97·2015-03-30 18:58
软件开发工程师·某某某

jprofiler监控远程WAS配置详解

字数 2291阅读 2380评论 0赞 0

一、服务器端安装WAS及jprofiler

二、查看服务器端计算机IP

如:192.168.233.129


三、复制服务器端jprofiler安装根目录
如:C:jprofiler6

四、复制服务器端server.xml到客户端(复制修改前的文件就可以)
位置:C:IBMWebSphereAppServerprofilesAppSrv01configcellsjingbeif-

fcd2fdNode01Cellnodesjingbeif-fcd2fdNode01serversserver1server.xml


五、复制服务器端startServer.bat到客户端
位置:C:IBMWebSphereAppServerbinstartServer.bat

六、修改服务器端server.xml然后重启WAS(具体配置如下红色部分)
<processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1293246694594" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1293246694594" processPriority="20" runAsUser="" runAsGroup="" />
    <ioRedirect xmi:id="OutputRedirect_1293246694594" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log" />
    <monitoringPolicy xmi:id="MonitoringPolicy_1293246694594" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED" />
    <jvmEntries xmi:id="JavaVirtualMachine_1293246694594" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="-Xshareclasses:none -agentpath:C:jprofiler6binwindowsjprofilerti.dll=port=2010 " />
  </processDefinitions>

修改说明:C:jprofiler6binwindowsjprofilerti.dll=port=2010 既是:服务器端jprofiler安装位置中的jprofilerti.dll位置,其中2010是客户端连接时使用的端口,可以随时修改(但修改端口后需要重启WAS才能生效)

七、客户端配置连接监控WAS

打开客户端jprofiler后做如下操作:

点击jprofiler左上角的 session 》Integration Wizards 》New Server Integration出现界面后选择 服务器端应用服务器类型 如:tomcat5、WebSphere6.1等

点击 next
选择 On a remote computer(意思是控制远程计算机上的应用服务器)

点击 next

选择服务器端 jdk厂商及版本(如果配置的是WAS服务器则这里会默认给选择好)

点击next

这里默认即可 点击next

填写远程计算机 IP(如:10.66.204.42)

点击next

填写 远程jprofiler安装的根目录(如:C:jprofiler6)

点击 next

指定从远程拷贝的server.xml放到本地的位置

点击 next

指定从远程拷贝的startServer.bat放到本地的位置

点击 next

填写 远程设置的jprofiler端口(即:上边第六步红色部分port=2010 这个端口)


后面一直next 默认即可 最后点击 finish,一切OK了。相信你现在已经看到jrpfiler监控远程WAS的界面,



谢谢,配置完毕!!!!


说明:如果配置本地WAS,只需指定server.xml及startServer.bat位置和设定端口即可连接监控,至于其他应用服务器的配置方法基本大同小异。

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广