Liberty profile provides a list of MBeans and corresponding
management interfaces that you can use to manipulate and monitor the
server.
For each MBean or MXBean in the list:
- The name is the javax.management.ObjectName value
that uniquely identifies the MBean or MXBean. When there are multiple
instances of an MBean or MXBean, the ObjectName value
can contain a wildcard (*), which is described in the Comments entries
in this topic.
- The Management interface entries specify the name of the Java™ interface that can be used
to construct a proxy object for the MBean or MXBean as described in Liberty profile: Examples of accessing MBean attributes and operations. For more information about the management interface, see the Java API document for the Liberty profile. The Java API documentation for each Liberty profile API is available in a separate .zip file in one of the javadoc subdirectories of the ${wlp.install.dir}/dev directory.
WebSphere:feature=channelfw,type=endpoint,name=*
- Management interface: com.ibm.websphere.endpoint.EndPointInfoMBean
- Comments: One instance is available for each endpoint in
the system, where * is a unique endpoint name.
WebSphere:feature=collectiveController,type=CollectiveRegistration,name=CollectiveRegistration
- Management interface: com.ibm.websphere.collective.controller.CollectiveRegistrationMBean
- Comments: This MBean is available when the collectiveController feature
is enabled. It provides operations that enable registration of hosts,
Liberty servers to be joined as members, replication of new controllers,
and controller access authentication of members to the collective
controller.
WebSphere:feature=collectiveController,type=CollectiveRepository,name=CollectiveRepository
- Management interface: com.ibm.websphere.collective.repository.CollectiveRepositoryMBean
- Comments: This MBean is available when the collectiveController feature
is enabled. It provides operations that enable reading and writing
of data into the collective repository.
WebSphere:feature=collectiveController,type=RepositoryConfiguration,name=RepositoryConfiguration
- Management interface: com.ibm.websphere.collective.repository.RepositoryConfigurationMBean
- Comments: This MBean is available when the collectiveController feature
is enabled. It provides operations that enable adding and removing
collective controller replicas to scale out the replica set and provide
high availability capabilities.
WebSphere:feature=collectiveController,type=RepositoryPathUtility,name=RepositoryPathUtility
- Management interface: com.ibm.websphere.collective.repository.RepositoryPathUtilityMBean
- Comments: This MBean is available when the collectiveController feature
is enabled. It provides utility operations that enable easier construction
of paths for use with the RepositoryConfiguration MBean.
WebSphere:feature=collectiveController,type=RoutingContext,name=RoutingContext
WebSphere: feature=collectiveController,type=ServerCommands,name=ServerCommands
- Management interface: com.ibm.websphere.collective.controller.ServerCommandsMBean
- Comments: This MBean runs in the collective controller
and can remotely invoke the Liberty server command
on a target host. It has three operations: getServerStatus, startServer,
and stopServer.
The getServerStatus operation
allows you to get the status of a member server in a collective by
providing its hostname, server's user directory, and server name.
You can subscribe for server up or down changes by calling addNotificationListener.
An AttributeChangeNotification is sent to all listeners
when any server in the collective changes its state. The hostname,
server's user directory, and server name are stored as a comma-separated
string in the message for identification purposes.
All parameters
are explained in detail in the API documentation.
Note: The
collectiveController-1.0 feature
and its capabilities are available only in WebSphere Application Server Liberty Network
Deployment and WebSphere Application
Server Liberty for z/OS.
The feature is not available in WebSphere Application Server Liberty, WebSphere Application Server
Liberty - Express, or WebSphere Application Server
Liberty Core. If you have a WebSphere Application
Server Liberty Network Deployment installation, you can use its collectiveController-1.0 feature
to work with collective members from WebSphere Application Server Liberty, WebSphere Application Server
Liberty - Express, or WebSphere Application Server
Liberty Core installations.
WebSphere:feature=restConnector,type=FileService,name=FileService
- Management interface: com.ibm.websphere.filetransfer.FileServiceMXBean
- Comments: This MXBean enables you to perform various file-related
operations on the host where Liberty resides.
You can find its
class and API documentation in the following locations:
liberty_home/dev/api/ibm/com.ibm.websphere.appserver.api.restConnector_1.0.0.jar
liberty_home/dev/api/ibm/javadoc/com.ibm.websphere.appserver.api.restConnector-javadoc.zip
The
exposed operations include the ability to query certain metadata (last
modified date, size, and so on) for a given file or directory and
also to query all child files (and corresponding metadata) for a given
directory. Support for archive creation and expansion is also provided,
which can be useful to compress Liberty log files or to extract an
application before deploying it.
This MXBean contains two attributes:
the read list and the write list. They represent the lists of locations
that users can read or write to when using the
FileService or
FileTransfer capabilities
provided by Liberty. Through the MXBean, these attributes can only
be read, but they can be configured or customized through the following
elements in the
server.xml file:
<remoteFileAccess>
<readDir>${server.output.dir}/logs</readDir>
<readDir>${server.output.dir}/apps</readDir>
<writeDir>${server.output.dir}/dropins</writeDir>
</remoteFileAccess>
If the
readDir element
is not specified, the default is the combination of:
${wlp.install.dir},
${wlp.user.dir},
and
${server.output.dir}. If a
writeDir element
is not specified, the default is the empty set.
The restConnector-1.0 feature
must be included in the server.xml file in order
for this MXBean to be loaded and to honour its configuration elements
Using
Liberty-defined variables is allowed with all the server-side parameters
that take a string representing a file path. Such variables are defined
on the liberty_home/README.TXT file.
WebSphere:feature=restConnector,type=FileTransfer,name=FileTransfer
- Management interface: com.ibm.websphere.filetransfer.FileTransferMBean
- Comments: This MBean allows you to perform various file-transfer
operations on the host where Liberty resides.
You can find its
class and API documentation in the following locations:
liberty_home/dev/api/ibm/com.ibm.websphere.appserver.api.restConnector_1.0.0.jar
liberty_home/dev/api/ibm/javadoc/com.ibm.websphere.appserver.api.restConnector-javadoc.zip
This
MBean is registered on the PlatformMBeanServer from
the same JVM that its corresponding Liberty process is running, but
it can be accessed only by using the IBM® JMX
REST Connector. The connection can be local or remote, but the REST
Connector must be used.
The exposed operations include the
ability to download, upload, and delete a file. Each read and write
request on the server is bound to the configurable read and write
lists that are accessed through the FileServiceMXBean.
The FileTransferMBean can also be fully accessed
and operated from the built-in Java JConsole,
provided that the JConsole is connected through the IBM JMX REST Connector.
Using Liberty-defined
variables is allowed with all the server-side parameters that take
a string representing a file path. Such variables are defined on the liberty_home/README.TXT file.
WebSphere:name=com.ibm.ws.jmx.mbeans.generatePluginConfig
WebSphere:service=com.ibm.ws.kernel.filemonitor.FileNotificationMBean
- Management interface: com.ibm.websphere.filemonitor.FileNotificationMBean
WebSphere:service=com.ibm.websphere.application.ApplicationMBean,name=*
- Management interface: com.ibm.websphere.application.ApplicationMBean
- Comments: One instance is available for each application
in the system, where * is a unique application name.
WebSphere:type=JvmStats
- Management interface: com.ibm.websphere.monitor.jmx.JvmMXBean
- Comments: Available when the monitor-1.0 feature
is enabled. See Liberty profile: JVM monitoring.
WebSphere:type=ServletStats,name=*
- Management interface: com.ibm.websphere.webcontainer.ServletStatsMXBean
- Comments: When the monitor-1.0 feature
is enabled, one instance is available for each servlet that has been
served, where * is of the form <AppName>.<ServletName>.
See Liberty profile: Web application monitoring.
WebSphere:type=ThreadPoolStats,name=Default
Executor
WebSphere:feature=jaxws,type=WebServiceStats,service=*,port=*
- Management interface: org.apache.cxf.management.counters.ResponseTimeCounterMBean
- Comments: Available when the monitor-1.0 feature
is enabled. The WebServiceStats can be either Performance.Counter.Server or Performance.Counter.client,
where service=* is the qualified name of a service
endpoint, port=* is the port name of the service
endpoint. See Liberty profile: JAX-WS monitoring.
Note: This is a Dynamic Model Mbean.
WebSphere:feature=jaxws,type=Bus.Service.Endpoint,bus.id=*,service=*,port=*,name=*
- Management interface: org.apache.cxf.endpoint.ManagedEndpoint
- Comments: Available when the localConnector-1.0 or restConnector-1.0 feature
is enabled and the JAX-WS application is accessed at least once. The bus.id=* is
the name of the bus, where * is of the form <AppName>-Server-Bus.
The service=* is the qualified name of the endpoint,
where * is of the form {ServiceNamespace}ServiceName.
The port=* is the port name of the endpoint,
where the * is the current port name. The format of the MBean is as follows: <BUS>@<SERVICE>@<PORT>@<URL_PATTERN>,
where:
- <BUS> is the same value as the field bus.id;
- <SERVICE> is the same value as the field service;
- <PORT> is the same value as the field port;
- <URL_PATTERN> might be the following values
in different scenarios;
- If the url-pattern element is defined in the web.xml file
of your application, the value of url-pattern element
is used. For example, the url-pattern element is /SayHelloURL in
the web.xml file:
<servlet-mapping>
<servlet-name>com.ibm.ws.jaxws.test.jmx.service.WSTestEndpointService</servlet-name>
<url-pattern>/SayHelloURL</url-pattern>
</servlet-mapping>
For example, the MBean might be as
follows:WebSphere:feature=jaxws,bus.id=EJBWSBasic-Server-Bus,type=Bus.Service.Endpoint,
service="{http://ejbbasic.jaxws.ws.ibm.com/}SayHelloService",port="SayHelloPort",
name="EJBWSBasic-Server-Bus@{http://ejbbasic.jaxws.ws.ibm.com/}SayHelloService@SayHelloPort@SayHelloURL"
- If the URL pattern is not specified, the service name is used
as the default value. For example, the MBean might be as follows:
WebSphere:feature=jaxws,bus.id=EJBWSBasic-Server-Bus,type=Bus.Service.Endpoint,
service="{http://ejbbasic.jaxws.ws.ibm.com/}SayHelloService",port="SayHelloPort",
name="EJBWSBasic-Server-Bus@{http://ejbbasic.jaxws.ws.ibm.com/}SayHelloService@SayHelloPort@SayHelloService
- If the URL pattern cannot be retrieved by the web services engine
when the endpoint MBean is registered, a random unique number is used
to ensure that the MBean is unique. For example, the MBean might be
as follows:
WebSphere:feature=jaxws,bus.id=EJBWSBasic-Server-Bus,type=Bus.Service.Endpoint,
service="{http://ejbbasic.jaxws.ws.ibm.com/}SayHelloService",port="SayHelloPort",
name="EJBWSBasic-Server-Bus@{http://ejbbasic.jaxws.ws.ibm.com/}SayHelloService@SayHelloPort@261689241"
Note: - This is a Dynamic Model Mbean.
- The destory operation on this MBean is not supported.
WebSphere:feature=wasJmsServer,
type=MessagingEngine,name=*
- Management interface: com.ibm.websphere.messaging.mbean.MessagingEngineMBean
- Comments: Available when the wasJmsServer-1.0 feature
is enabled. One messaging engine instance is available for each Liberty
profile. The name=* is the name of the MBean,
where * is the unique name of the messaging engine
MBean. See Liberty profile: JMS messaging.
WebSphere:feature=wasJmsServer,
type=Queue,name=*
- Management interface: com.ibm.websphere.messaging.mbean.QueueMBean
- Comments: The MBean is available when the wasJmsServer-1.0 feature
is enabled and the MBean of the messaging engine is available. The name=* is
the name of the MBean, where * is the name of the
queue MBean. See Liberty profile: JMS messaging.
WebSphere:feature=wasJmsServer,
type=Topic,name=*
- Management interface: com.ibm.websphere.messaging.mbean.TopicMBean
- Comments: The MBean is available when the wasJmsServer-1.0 feature
is enabled and the MBean of the messaging engine is available. The name=* is
the name of the MBean, where * is the name of the
topic MBean. See Liberty profile: JMS messaging.
WebSphere:feature=wasJmsServer,
type=Subscriber,name=*
- Management interface: com.ibm.websphere.messaging.mbean.SubscriberMBean
- Comments: The MBean is available when the wasJmsServer-1.0 feature
is enabled and the MBean of the messaging engine is available. The name=* is
the name of the MBean, where * is the name of the
subscriber MBean.