如何在websphere v 8.5.5v自由配置文件中获取ThreadPool,WebContainer,Session,ConnectionPool mbeans

时间:2014-10-18 07:41:06

标签: rest websphere websphere-liberty

我需要监控WAS自由配置文件我在sever.xml中进行了一些配置更改

<feature>restConnector-1.0</feature>^M
    <feature>jsp-2.2</feature>^M
    <feature>appSecurity-1.0</feature>^M
    <feature>ssl-1.0</feature>
    <feature>monitor-1.0</feature>^M

但是当我与休息端口连接时,我只关注关于websphere的mbeans

WebSphere
WebSphere:feature=restConnector,type=FileService,name=FileService
WebSphere:service=com.ibm.websphere.application.ApplicationMBean,name=WLProject
WebSphere:feature=channelfw,type=endpoint,name=defaultHttpEndpoint-ssl
WebSphere:feature=restConnector,type=FileTransfer,name=FileTransfer
WebSphere:service=com.ibm.websphere.application.ApplicationMBean,name=kohls
WebSphere:service=com.ibm.ws.kernel.filemonitor.FileNotificationMBean
WebSphere:service=com.ibm.websphere.application.ApplicationMBean,name=worklightadmin
WebSphere:feature=channelfw,type=endpoint,name=defaultHttpEndpoint
WebSphere:service=com.ibm.websphere.application.ApplicationMBean,name=worklightconsole
WebSphere:name=com.ibm.ws.jmx.mbeans.generatePluginConfig
WebSphere:service=com.ibm.websphere.application.ApplicationMBean,name=_analytics
WebSphere:name=com.ibm.ws.config.serverSchemaGenerator
WebSphere:service=com.ibm.websphere.application.ApplicationMBean,name=_MobileBrowserSimulator
WebSphere:service=com.ibm.websphere.application.ApplicationMBean,name=nsecom

无法获得线程池,webcontaineer mbeans,我有什么配置吗?

1 个答案:

答案 0 :(得分:3)

也许更新到最新的Liberty版本并尝试使用jconsole进行测试。我正在运行v8.5.5.3并且运行正常。我使用以下命令使用rest连接器启动jconsole(全部在一行中,格式化为可读性):

jconsole 
    -J-Djava.class.path=C:\
IBM\WebSphere\LibertyIM\java\java_1.7_32\lib\jconsole.jar;C:\IBM\WebSphere\Liber
tyIM\java\java_1.7_32\lib\tools.jar;C:\IBM\WebSphere\wlp\clients\restConnector.j
ar 
    -J-Djavax.net.ssl.trustStore=C:/IBM/WebSphere/wlp/usr/servers/monitoringServe
r/resources/security/key.jks 
    -J-Djavax.net.ssl.trustStorePassword=password 
    -J-Djavax.net.ssl.trustStoreType=jks 
    -J-Duser.language=en

我可以看到ThreadPoolStats和ServletStats。对于SessionStats或ConnectionPoolStats,您的应用程序实际上需要使用功能(例如会话或与数据库的连接)在jconsole中可见并且具有mbean。