Archive of the categories: 中间件

检查WebSphere监视器是否被正确设置的步骤[转]

检查WebSphere监视器是否被正确设置的步骤 

对于基本部署

确定PMI & perfServletApp是否在WebSphere中正确配置,运行下面的URL并检查是否返回XML格式的数

http://WebSphereHost:Port/wasPerfTool/servlet/perfservlet?connector=SOAP&port=SOAP-PORT 

WebSphere Host -> WebSphere应用服务器运行的主机

WebSphere Port -> 应用服务器的HTTP传输端口

SOAP Port -> WebSphere的SOAP端口  

如何确定SOAP端口? 

1. 登录到管理配置台

2. 展开左侧的服务器链接,点击应用服务器。

3. 当为基本模式时,会列出多个WebSphere。点击WebSphere的名称- > 附加属性下,点击终端链接 -> 点击SOAP连接地址,你就可以看到SOAP端口。

4. 当为网络模式时,点击DMGR – > U附加属性下,点击终端链接 -> 点击SOAP连接地址,你就可以看到SOAP端口。 

如何找到HTTP传输端口? 

1. 登录到管理控制台

2. 展开左侧的服务器链接,点击应用服务器。

3. 会列出多个WebSphere。WebSphere的名称- > 附加属性下,点击Web连接器链接 -> 点击HTTP传输地址,你就可以看到HTTP传输端口。

可能出现ADMN0022E的错误:

Error retrieving PMI data. javax.management.JMRuntimeException: ADMN0022E: Access is denied for the getStatsArray operation on Perf MBean because of insufficient or empty credentials. at com.ibm.ws.management.AdminServiceImpl.preInvoke(AdminServiceImpl.java:1918) at com.ibm.ws.management.AdminServiceImpl.access$400(AdminServiceImpl.java:110) at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1032) at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118) at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:948) at com.ibm.ws.pmi.perfServlet60.PerformanceServlet.queryStats(Unknown Source) at com.ibm.ws.pmi.perfServlet60.PerformanceServlet.doPost(Unknown Source) at com.ibm.ws.pmi.perfServlet60.PerformanceServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest

。。。。。。。。。。。。。。。。。。。。。。。。。。。

请参考下面的解决方法:

参考地址:http://www-01.ibm.com/support/docview.wss?uid=swg21246123

Resolving the problem

Uncheck the “Everyone” box in the “Map security roles to users/groups” screen in the administrative console.

In the WebSphere administrative console, go to

Applications > Enterprise Applications > perfServletApp> Map security roles to users/groups.

Make sure that the “monitor” role is mapped only to “All authenticated”.

Restart everything: deployment manager, nodeagent, and server for the change to take effect.

不过光这个帮助还解决不了问题。还需要进行如下操作:

In Websphere 6.x Do the following for the User/Group Roles here are the steps:

1. Select User and Groups from console

2. Select Administrative Group Roles

3. Select from Special Subjects

4. Select the EVERYONE group

5. Under Role Select Monitor

6. Select Apply.

以上。


中文版配置:进入控制台后,在左侧导航栏,进“控制台组”如下:

系统管理
-将更改保到主存储库
-控制台设置
--首选项
--控制台用户
--控制台组