try
{
updateCommonStats(stats);
ObjectName poolName = getContainerPoolName();
RangeStatisticImpl readyCount = (RangeStatisticImpl) stats.getMethodReadyCount();
Integer poolSize = (Integer) server.getAttribute(poolName, "CurrentSize");
readyCount.set(poolSize.longValue());
ObjectName cacheName = getContainerCacheName();
RangeStatisticImpl passiveCount = (RangeStatisticImpl) stats.getPassiveCount();
Long passive = (Long) server.getAttribute(cacheName, "PassivatedCount");
passiveCount.set(passive.longValue());
}
catch (Exception e)
{
log.debug("Failed to retrieve stats", e);
}