• No results found

Most Important WebLogic Counters

The list of counters below includes the most important counters for

performance and workload characterization. WebLogic exposes many more;

in order to monitor them you can select them from the relevant MBean.

The counters are classified by different entities and according to the WebLogic MBeans.

Note: Counters may vary depending on what is installed on the application server.

Server

As work enters a WebLogic Server, it is placed in an execute queue. This work is then assigned to a thread within the queue that performs the work.

The following counters help you assess the server ability to handle the workload and identify whether the Execute Queue or Thread Pool are related to a potential bottleneck.

Counter Description

MBean: weblogic.management.runtime.ServerRuntimeMBean

OpenSocketsCurrentCount The current number of sockets registered for socket muxing on this server.

MBean: weblogic.management.runtime.ExecuteQueueRuntimeMBean

ExecuteThreadCurrentIdleCount The number of idle threads assigned to the queue.

ExecuteThreadTotalCount The total number of execute threads assigned to the queue.

PendingRequestCurrentCount The number of pending requests in the queue.

MBean: weblogic.management.runtime.ThreadPoolRuntimeMBean

ExecuteThreadIdleCount The number of idle threads in the pool. This count does not include standby threads and stuck threads. The count indicates threads that are ready to pick up new work when it arrives.

ExecuteThreadTotalCount The total number of threads in the pool.

PendingUserRequestCount The number of pending user requests in the priority queue. The priority queue contains requests from internal subsystems and users.

This is the count of all user requests.

QueueLength The number of pending requests in the priority queue. This is the total of internal system requests and user requests.

Throughput The mean number of requests completed per second.

StandbyThreadCount Returns the number of threads in the standby pool. Surplus threads that are not needed to handle the present workload are designated as standby and added to the standby pool. These threads are activated when more threads are needed.

Counter Description

EJB

Enterprise JavaBeans are the server-side components that encapsulate the business logic. This makes them a major candidate for a performance bottleneck, and therefore are important to monitor.

There are two major types of beans: Session Beans and Message Driven Beans, where the Session Beans can be either Stateful or Stateless.

Counter Description

MBean: weblogic.management.runtime.EJBCacheRuntimeMBean.

Monitors cache counters for Entity Beans and Stateful Beans.

ActivationCount Provides a count of the total number of beans from this EJB Home that have been activated.

CacheAccessCount Provides a count of the total number of attempts to access a bean from the cache.

Note: The sum of the Cache Hit Count and Cache Miss Count may not add up to the CacheAccessCount in a running server because these metrics are retrieved using multiple calls and the counts could change between the calls.

CachedBeansCurrentCount Provides a count of the total number of beans from this EJB Home currently in the EJB cache.

CacheMissCount Provides a count of the total number of times an attempt failed to access a bean from the cache.

Note: The sum of the Cache Hit Count and Cache Miss Count may not add up to the CacheAccessCount in a running server because these metrics are retrieved using multiple calls and the counts could change between the calls.

PassivationCount Provides a count of the total number of beans from this EJB Home that have been passivated.

MBean: weblogic.management.runtime.EJBLockingRuntimeMBean

LockEntriesCurrentCount Provides a count of the number of beans currently locked.

LockManagerAccessCount Provides the total number of attempts to obtain a lock on a bean. This includes attempts to obtain a lock on a bean that is already locked on behalf of the client.

TimeoutTotalCount Provides the current number of threads that have timed out waiting for a lock on a bean.

WaiterCurrentCount Provides the current number of threads that have waited for a lock on a bean.

MBean: weblogic.management.runtime.EJBPoolRuntimeMBean

Monitors EJB instances for Entity Beans, MessageDriven Beans, and Stateless Beans

AccessTotalCount Provides a count of the total number of times an attempt was made to retrieve an instance from the free pool.

BeansInUseCurrentCount Provides a count of the number of bean instances currently being used from the free pool.

DestroyedTotalCount Provides a count of the total number of times a bean instance from this pool was destroyed due to a non-application Exception being thrown from it.

MissTotalCount Provides a count of the total number of times a failed attempt was made to get an

Counter Description

Servlet

PooledBeansCurrentCount Provides a count of the current number of available bean instances in the free pool.

TimeoutTotalCount Provides a count of the total number of threads that have timed out waiting for an available bean instance from the free pool.

WaiterCurrentCount Provides a count of the number of threads currently waiting for an available bean instance from the free pool.

MBean: weblogic.management.runtime.EJBTransactionRuntimeMBean

Monitors transaction counters for Entity Beans, MessageDriven Beans, Stateless Beans, and Stateful Beans

TransactionsCommittedTotalCount Provides a count of the total number of transactions that have been committed for this EJB.

TransactionsRolledBackTotalCount Provides a count of the total number of transactions that have been rolled back for this EJB.

TransactionsTimedOutTotalCount Provides a count of the total number of transactions that have timed out for this EJB.

Counter Description

MBean: weblogic.management.runtime.ServletRuntimeMBean

ExecutionTimeAverage Provides the average amount of time all invocations of the servlet have executed since it was created.

Counter Description

JRockit

These counters are available only if you run a server with JRockit Virtual Machine and are essential for both characterizing the performance of the application, as well as for tuning.

Counter Description

MBean: weblogic.management.runtime.JRockitRuntimeMBean

UsedHeap Indicates the amount (in bytes) of Java heap memory that is currently being used by the VM.

UsedPhysicalMemory Indicates the amount (in bytes) of physical memory that is currently being used on the host computer. This value reports the memory that is being used by all processes on the computer, and not just by the VM.

TotalNurserySize Indicates the amount (in bytes) of memory that is currently allocated to the nursery.

The nursery is the area of the Java heap that the VM allocates to most objects. Instead of garbage collecting the entire heap,

generational garbage collectors focus on the nursery. Because most objects die young, most of the time it is sufficient to garbage collect only the nursery and not the entire heap.

If you are not using a generational garbage collector, the nursery size is 0.

AllProcessorsAvgLoad Displays a snapshot of the average load of all processors in the host computer. If the computer has only one processor, this value is the same as JVM Processor Load.

The value is returned as a double, where 1.0 represents 100% load (no idle time) and 0.0