# QueryCacheRuntimeMBean

Overview | Related MBeans | Attributes | Operations

## Overview

This interface contains accessor methods for all query cache runtime information collected for an EJB. The cache miss counts need some explaining. A query-cache miss can occur due to one of five reasons: 1. The query result was not found in the query-cache 2. The query result has timed out 3. A bean which satisfies the query wasnot found in the entity cache 4. A query with relationship-caching turned on did not find the related-beans query result 5. A query which loads multiple EJBs could not load one or more of them To better aid tuning, there are separate counters provided for each of the last four of the above causes. The fifth counter is a total cache miss counter. This counter takes into account all five causes of a cache miss.

Fully Qualified Interface Name | If you use the `getMBeanInfo` operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name: `weblogic.management.runtime.QueryCacheRuntimeMBean`
Factory Methods | No factory methods. Instances of this MBean are created automatically.
Access Points | You can access this MBean from the following MBean attributes:
ApplicationRuntimeMBean.QueryCacheRuntimes EntityEJBRuntimeMBean.QueryCacheRuntime |

## Attributes

This section describes the following attributes:

CacheAccessCount CacheHitCount CacheMissByBeanEvictionCount CacheMissByDependentQueryMissCount CacheMissByRelatedQueryMissCount CacheMissByTimeoutCount | Name Parent TotalCachedQueriesCount TotalCacheMissCount Type

### CacheAccessCount

Provides a count of the number of accesses of the query cache for this EJB.

Returns the number of accesses of the query cache for this EJB.

Privileges | Read only
Type | long

### CacheHitCount

Provides a count of the number of cache hits of the query cache for this EJB.

Returns the number of cache hits of the query cache for this EJB.

Privileges | Read only
Type | long

### CacheMissByBeanEvictionCount

Provides a count of the number of cache misses of the query cache for this EJB because corresponding beans were not found in the entity cache.

Returns the number of times a cache miss occurred for this EJB because corresponding beans were not found in the entity cache.

Privileges | Read only
Type | long

### CacheMissByDependentQueryMissCount

Provides a count of the number of cache misses of the query cache for this EJB because a dependent query was not found in another EJB's query cache.

Returns the number of times a cache miss occurred for this EJB because a dependent query was not found in another EJB's query cache.

Privileges | Read only
Type | long

### CacheMissByRelatedQueryMissCount

Provides a count of the number of cache misses of the query cache for this EJB because a related query was not found in another EJB's query cache.

Returns the number of times a cache miss occurred for this EJB because a related query was not found in another EJB's query cache.

Privileges | Read only
Type | long

### CacheMissByTimeoutCount

Provides a count of the number of cache misses of the query cache for this EJB due to query results timing out.

Returns the number of cache misses due to query result timeout for this EJB.

Privileges | Read only
Type | long

### Name

The name of this configuration. WebLogic Server uses an MBean to implement and persist the configuration.

Privileges | Read only
Type | java.lang.String

### Parent

Return the immediate parent for this MBean

Privileges | Read/Write
Type |

### TotalCachedQueriesCount

Provides a count of the total number of query results for this EJB currently in the query cache.

Returns the total number of query results for this EJB currently in the EJB cache.

Privileges | Read only
Type | int

### TotalCacheMissCount

Provides a count of the total number of cache misses of the query cache for this EJB.

Returns the total number of cache misses of the query cache for this EJB.

Privileges | Read only
Type | long

### Type

Returns the type of the MBean.

Privileges | Read only
Type | java.lang.String