LR 8.1对WAS6.1服务的监控环境

本文介绍了如何配置LR 8.1监控WebSphere Application Server 6.1的服务,包括启用性能和诊断顾问程序框架,设置PMI级别,安装并测试PerfServletApp.ear,以及讨论了LR 8.1与LR 9.0在监控WAS 6.1上的区别,并列举了一些常用的监控计数器。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

配置ISC,设置PMI级别

1)启用性能和诊断顾问程序框架

依次进入:服务器》应用程序服务器》{serverName}》配置》性能》性能和诊断顾问程序配置》配置》常规属性,勾选“启用性能和诊断顾问程序框架(运行时性能顾问程序)”,启用该配置开关。

2)设置性能监视基础结构(PMI)级别

依次进入:监视和调整》性能监视基础结构(PMI)》{serverName}》配置》当前监视的统计信息集,简单起见,这里我们选择“全部”。之后应用并保存变更。

3)设置请求度量值

依次进入:依次进入:监视和调整》请求度量值》配置》常规属性》要检测的组件,这里也简单起见,选择“全部”。请求度量值目标选择“标准日志”。之后应用并保存变更。

 

安装PerfServletApp.ear

按照一般的安装方式进行,注意以下几点即可。

1)安装路径选择“远程文件系统”,该ear包路径一般为:

{WASInstallPath}/ WebSphere/AppServer/installableApps/PerfServletApp.ear

2)“上下文根”保持为空,不用设置。

3)在步骤2“将模块映射至服务器”时,选择所有的集群和服务器,并将模块perservlet映射至这些集群和服务器上。

4)安装完成之后,在企业应用程序列表中自动生成名为“perServletApp”的应用程序。选中启动之即可。

 

测试PerfServletApp.ear的安装

1)测试访问地址。在浏览器中输入:

http://ip:port/wasPerfTool/servlet/perfservlet,若能够看到WebSperexml格式瞬时性能指标则配置成功。注意,对于某一台node上的第一个server,其port一般为9080,从该node上的第二个server开始,其port9080的基础上顺次增加1,即9081。以此类推。

2)访问地址http://ip:port/wasPerfTool/servlet可以得到该插件的帮助信息。大致如下:

PerfServlet 6.0 Help Page

--------------------------------------------------------------------------------

Usage:

http://perfServlet_Host:port/wasPerfTool/servlet/perfservlet[?node=<node>&server=<server>&module=<module>&version=5]

Node

-The node name for which stats are displayed.

 

Server

-The server name for which stats are displayed.

 

Module

- The module name for which stats are displayed. Modules include the following:

 

alarmManagerModule

beanModule

cacheModule

connectionPoolModule

jvmRuntimeModule

j2cModule

objectPoolModule

orbPerfModule

schedulerModule

servletSessionsModule

systemModule

threadPoolModule

transactionModule

webAppModule

webServicesModule

wlmModule

wsgwModule

Version

- By default the PerfServlet XML output will be in 6.0 format. To get the output in 5.x format pass the version parameter as follows: version=5

--------------------------------------------------------------------------------

Example:

By default, the PerfServlet collects all of the performance data across a WebSphere cell. The servlet can limit the information it provides to a specific host by using the node parameter.

http://hostname/wasPerfTool/servlet/perfservlet?node=rjones

 

To limit the data collection to a given server use the server parameter:

http://hostname/wasPerfTool/servlet/perfservlet?server=testserver

 

To limit the data collection to a given PMI module use the module parameter:

http://localhost:9080/wasPerfTool/servlet/perfservlet?module=beanModule

http://localhost:9080/wasPerfTool/servlet/perfservlet?module=jvmRuntimeModule+systemModule

 

To limit the data collection to a given PMI module in a given server and node use the following:

http://localhost:9080/wasPerfTool/servlet/perfservlet?node=node1&server=server&module=beanModule

 

When the performance servlet is first initialized, it retrieves the list of nodes and servers within the domain in which it is deployed. Use the refreshconfig parameter if you add a new node or server:

http://hostname/wasPerfTool/servlet/perfservlet?refreshconfig=true

 

To display this help page:

http://perfServlet_Host:port/wasPerfTool/servlet/perfservlet?action=help

--------------------------------------------------------------------------------

For more information refer to the WebSphere InfoCenter

 

使用LR8.1监控WAS61

由于WebSphere6.1的访问路径与老版本差异很大,使用LR8.1添加计数器时使用http://<host>:<port>/wasPerfTool/servlet/perfservlet/无法连接到WebSphere。之后采用修改LR8.1的配置文件dat/monitors子目录下的xmlmonitorshared.ini文件方法解决连接不上的问题。

 

dat/monitors子目录下的xmlmonitorshared.ini文件,进行如下修改

[WAS4ServletMonitor]

DescrīptionFile=WebSphereDesc.xml

ServletName=perfservlet/

ServletAlias=wasPerfTool/servlet

 

然后添加monitor machine 时只要输入ip和端口即可

 

LR8.1LR9.0在监控WAS6.1上的区别

同时,我也想告诉大家一个不幸的消息,我在LR9.0LR8.1两种环境下,分别作了通过LR监控WAS6.1的实验,结果发现上述的方法已经不适用于LR9.0了。也就是说,如果使用LR9.0,将无法通过LR本身来监控WAS6.1。更不用说LR9.1LR9.5了,这两个版本都已经丢弃了直接通过LR监控WAS的功能了,而是这活扔给了SiteScope,我猜测原因之一是LR在肩负负载的同时,又去收集大量的性能数据,对其本身就是一个不小的负担。这反过来让我想起,当大多数时候我们仅仅需要一个巨无霸身上一块成熟的功能时,有必要每次跟随它去做大量的对其他功能或性能升级的新版本吗?尤其是商业策略下产生的新版本。

下图是LR8.1添加WAS6.1计数器的界面:

 

下图是LR9.0添加WAS6.1计数器的界面,可以看到已经找不到计数器了:

 

常用的监控计数器:

线程池

ActiveCount

并发活动的线程数。

CreateCount

创建线程的总数。

PoolSize

池中线程的平均数。

 

线程池

FreeMemory

Java 虚拟机运行时中的空闲内存(以千字节计)。

UsedMemory

Java 虚拟机运行时中使用的内存容量(以千字节计)。

HeapSize

Java 虚拟机运行时中的总内存(以千字节计)。

ProcessCpuUsage

Java 虚拟机的 CPU 使用情况(以百分比为单位)。

 

JDBC 连接池

AllocateCount

分配的连接的总数。

CloseCount

已关闭的连接的总数。

CreateCount

创建连接的总数。

FreePoolSize

池中的空闲连接数。

PoolSize

连接池的大小。

WaitingThreadCount

等待连接的平均并发线程数。

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值