Configuring and Managing WebLogic Server
|
Monitoring a WebLogic Server Domain
These sections describe WebLogic Server monitoring capabilities that help you manage and optimize application availability, performance, and security:
Facilities for Monitoring WebLogic Server
These sections describe WebLogic Server facilities for monitoring the health and performance of a WebLogic Server domain:
Administration Console
The WebLogic Server Administration Console provides visibility into a broad array of configuration and status information.
The Administration Console obtains information about domain resources from the domain's Administration Server. The Administration Server is populated with Management Beans (MBeans), based on Sun's Java Management Extension (JMX) standard, which provides the scheme for management access to domain resources.
The Administration Server contains:
- Configuration MBeans, which control the domain's configuration, and
- Run-time MBeans, which provide a snapshot of information about domain resources, such as JVM memory usage. When a resource in the domain—for instance, a Web application—is instantiated, an run-time MBean instance is created which collects information about that resource.
When you access a monitoring page for particular resource in the Administration Console, the Administration Server performs a GET operation to retrieve the current attribute values.
For details on what data is available on specific console pages, see Monitoring WebLogic Server using the Administration Console.
Server Self-Health Monitoring
WebLogic Server provides a self-health monitoring feature to improve the reliability and availability of server instances in a domain. Selected subsystems within each server instance monitor their health status based on criteria specific to the subsystem. If an individual subsystem determines that it can no longer operate in a consistent and reliable manner, it registers its health state as "failed" with the host server instance.
Each server instance checks the health state of all its registered subsystems to determine the overall viability of the server. If one or more critical subsystems have reached the "failed" state, the server instance marks its own health state as "failed" to indicate that the it cannot reliably host an application.
When used in combination with Node Manager, server self-health monitoring enables you to automatically reboot servers that have failed. This improves the overall reliability of a domain, and requires no direct intervention from an administrator. See Node Manager Capabilities for more information.
Obtaining Server Health Programmatically
You can check the self-reported health state of a server instance programmatically by calling the getHealthState() method on the ServerRuntimeMBean. Similarly, you can obtain the health state of a registered WebLogic Server subsystem by calling the getHealthState() method on its MBean. The following MBeans automatically register their health states with the host server:
- JMSRuntimeMBean
- JMSServerRuntimeMBean
- JTARuntimeMBean
- TransactionResourceRuntimeMBean
See the Javadocs for WebLogic Classes for more information on individual MBeans.
Messages and Log Files
WebLogic Server records information about events such as configuration changes, deployment of applications, and subsystem failures in log files. The information in log files is useful for detecting and troubleshooting problems, and monitoring performance and availability.
For detailed information about log files and the WebLogic Server logging subsystem, see "Logging" in Administration Console Online Help.
WebLogic Server outputs status and error messages to:
- Standard Out—By default, a WebLogic Server instance prints all messages of WARNING severity or higher to standard out—typically the command shell window in which you are running the server instance. You can control what messages a server instance writes to standard out using the Server—>Logging tab.
If you start a Managed Server with Node Manager, Node Manager redirects the server instance's standard out to a file. In this case, you can view the Managed Server's output using Domain—>Server—>Remote Start Output—>View Server output.
- Standard Error—A WebLogic Server instance writes errors to standard error—typically the command shell window in which you are running the server instance.
If you start a Managed Server with Node Manager, Node Manager redirects the server instance's standard error to a file. In this case, you can view the Managed Server's output using Domain—>Server—>Remote Start Output—>View Server error output.
- Server Logs—Each WebLogic Server instance writes all messages from its subsystems and applications to a log file on its host machine. You can configure logging behavior using the Server—>Logging—>Server tab. You can view a server instance's log file using the View server log link on any server tabs page.
- Domain Log—By default, each server instance in a domain forwards all messages from its subsystems and applications to the Administration Server for the domain. The Administration Server writes a subset of the messages to the Domain Log. You can control whether or not a server instance sends its messages to the Administration Server, and configure filters that control which messages it sends using the Server—>Logging—>Domain tab. You can view the Domain Log using the View domain log link on any domain tab page.
- Node Manager Logs—Node Manager writes startup and status messages to a log file in the NodeManagerLogs\NodeManagerInternal subdirectory. Node Manager log files are named NodeManagerInternal_timestamp, where timestamp indicates the time at which Node Manager started.
- HTTP Logs—By default, each server instance maintains a log of HTTP requests. You can disable HTTP logging, or configure logging behavior using the Server—>Logging—>HTTP tab.
- JTA Logs—You can configure a server instance to maintain a JTA transaction log using the Server—>Logging—>JTA tab.
- JDBC Logs—You can configure a server instance to maintain a JDBC log using the Server—>Logging—>JDBC tab.
Monitoring WebLogic Server using the Administration Console
The left pane of the Administration Console is a tree control, with a node for key entities you have configured. The following sections list the attributes displays on monitoring pages in each node:
Domain Monitoring Pages
You can access one WebLogic domain at a time using the Administration Console. The Domain—>Monitoring tab provides access to key configuration attributes and the current state for the servers and clusters in the current domain. The following table lists the monitoring pages available for a domain, and the attributes displayed on each page.
Console Page
|
Attributes Displayed
|
Domain—> Monitoring—>Server
|
|
Domain—>Monitor—>Cluster
|
|
Other Domain Monitoring Links
Each domain-level monitoring page has links to display:
- Domain Log—The Domain Log contains messages forwarded by all server instances in the domain.
- Domain-wide Security Settings
Server Monitoring Pages
When expanded, the Servers node lists each server instance in the current domain. To monitor key run-time attributes for a server instance, click on its name, and choose one of Monitoring tabs. The monitoring pages available depend on the application objects deployed to the server instance. The following table lists the monitoring pages available for a server instance, and the attributes displayed on each page.
Console Page
|
Attributes Displayed
|
Domain—>Server—>Monitoring—>General
|
|
Domain—>Server—>Monitoring—>General—>Monitor all Active Queues...
|
|
Domain—>Server—>Monitoring—>General—>Monitor all Connections...
|
|
Domain—>Server—>Monitoring—>General—>Monitor all Active Sockets..
|
|
Domain—>Server—>Monitoring—>Performance
|
|
Domain—>Server—>Monitoring—>Security
|
|
Domain—>Server—>Monitoring—>JMS
|
|
Domain—>Server—>Monitoring—>JMS
Monitor all Active JMS Connections...
|
|
Domain—>Server—>Monitoring—>JMS
Monitor all Active JMS Servers...
|
|
Domain—>Server—>Monitoring—>JMS—>Monitor all Pooled JMS Connections...
|
|
Domain—>Server—>Monitoring—>JTA
|
|
Transaction by Name
|
|
Transactions by Resource
|
|
In-Flight JTA
|
|
Domain—>Server—>Remote Start Output—>View Server output...
|
If the server instance was started by Node Manager, its standard out is written to a log file that can be viewed with this link.
|
Domain—>Server—>Remote Start Output—>View Server error output...
|
If the server instance was started by Node Manager, its standard err is written to a log file that can be viewed with this link.
|
Domain—>Server—>Remote Start Output—>View Node Manager output...
|
If the server instance was started by Node Manager, the Node Manager log can be viewed with this link.
|
Domain—>Server—>Monitoring—>JRockit
|
|
Other Server Monitoring Links
Each top level tab page for a server instance—Performance, Security, JMS, JTA— has links to display:
- Server Log—The Server Log contains all messages generated by its subsystems and applications.
- JNDI Tree—The JNDI tree shows the objects deployed to the current server instance.
Clusters Monitoring Pages
The following table lists the monitoring pages available for a cluster, and the attributes displayed on each page
Console Page
|
Attributes Displayed
|
Domain—>Cluster—>Monitoring
|
|
.
Machines Monitoring Pages
The following table lists the monitoring pages available for a machine, and the attributes displayed on each page.
.
Console Page
|
Attributes Displayed
|
Machine—>Monitoring—>Node Manager Status
|
|
Machine—>Monitoring—>Node Manager—>Logs
|
|
Deployments Monitoring Pages
The following table lists the monitoring pages available in the Deployments Node, and the attributes displayed on each page
Console Page
|
Attributes Displayed
|
EJB --> Monitoring --> Stateful EJBs
|
|
EJB --> Monitoring --> Stateless EJBs
|
|
EJB --> Monitoring --> Message Driven EJBs
|
|
EJB --> Monitoring --> Entity EJBs
|
|
Web Applications—>Monitoring—>Web Applications
|
|
Web Applications—>Monitoring—>Servlets
|
|
Web Applications—> Monitoring—>Sessions
|
|
Web Service --> Monitoring --> Servlets
|
|
Web Service --> Monitoring --> Sessions
|
|
Web Service --> Monitoring --> Web Services
|
|
Connector Modules
|
|
EJB Modules
|
|
.
Services Monitoring Pages
The following table lists the monitoring pages available in the Services node, and the attributes displayed on each page.
Console Page
|
Attributes Displayed
|
JDBC—>Connection Pools
|
|
JDBC—>DataSources
|
|
JMS Connection Factory
|
|
JMS Server
|
|
JMS Topics
|
|
JMS Queues
|
|