When there are a lot of cache-entries and consequently templates in the cachespec.xml this tool will give you a good idea of what is hot or not.
This program requires the template servlet cache PMI group to be enabled.
host=localhost , port=8881 , connector=SOAP , distributed=false
main: create the adminclient
getAdminClient: hostStr=localhost , portStr=8881
getAdminClient: WasClientPath=C:/WebSphere7/AppServer/profiles/base
*****************************************
DynaCache Automated Tests
Host : smita.raleigh.ibm.com
Port : 9081
PMI Port : 8881 connector: SOAP
Cell : smitaNode01Cell
Node : smitaNode01
Server : server1
BaseCacheSize: 2000
Offload to Disk: false
IhsEnabled: true
globalSecurityEnabled: false
IHS Host : localhost
IHS Port : 80
Distributed Caching: false
zOSMode: false
*****************************************
Usage: DynaCachePMIClient [
<-distributed|-standalone> ]
Arguments passed in to com.ibm.ws.sample.DynaCachePMIClient
args[0] localhost
args[1] 8881
args[2] -standalone
args[3] smitaNode01
args[4] server1
args[5] baseCache
Found 1
...node:smitaNode01 match: true
...process:server1 match: true
my perf MBean: WebSphere:name=PerfMBean,process=server1,platform=dynamicproxy,node=smitaNode01,version=7.0.0.19,type=Perf,mbeanIdentifier=PerfMBean,cell=smitaNode01Cell,spec=1.0
Get statistics from all cacheModules
stats name=cacheModule.template
HitsInMemoryCount[21]=23
HitsOnDiskCount[22]=0
ExplicitInvalidationCount[23]=0
LruInvalidationCount[24]=0
TimeoutInvalidationCount[25]=0
InMemoryAndDiskCacheEntryCount[26]=4
RemoteHitCount[27]=0
MissCount[28]=4
ClientRequestCount[29]=27
DistributedRequestCount[30]=0
ExplicitMemoryInvalidationCount[31]=0
ExplicitDiskInvalidationCount[32]=0
LocalExplicitInvalidationCount[34]=0
RemoteExplicitInvalidationCount[35]=0
RemoteCreationCount[36]=0
stats name=/dynacachetests/TimeStamp
HitsInMemoryCount[21]=11
HitsOnDiskCount[22]=0
ExplicitInvalidationCount[23]=0
LruInvalidationCount[24]=0
TimeoutInvalidationCount[25]=0
InMemoryAndDiskCacheEntryCount[26]=2
RemoteHitCount[27]=0
MissCount[28]=2
ClientRequestCount[29]=13
DistributedRequestCount[30]=0
ExplicitMemoryInvalidationCount[31]=0
ExplicitDiskInvalidationCount[32]=0
LocalExplicitInvalidationCount[34]=0
RemoteExplicitInvalidationCount[35]=0
RemoteCreationCount[36]=0
stats name=/dynacachetests/TimeStamp1
HitsInMemoryCount[21]=12
HitsOnDiskCount[22]=0
ExplicitInvalidationCount[23]=0
LruInvalidationCount[24]=0
TimeoutInvalidationCount[25]=0
InMemoryAndDiskCacheEntryCount[26]=2
RemoteHitCount[27]=0
MissCount[28]=2
ClientRequestCount[29]=14
DistributedRequestCount[30]=0
ExplicitMemoryInvalidationCount[31]=0
ExplicitDiskInvalidationCount[32]=0
LocalExplicitInvalidationCount[34]=0
RemoteExplicitInvalidationCount[35]=0
RemoteCreationCount[36]=0
TOP 100 TEMPLATES IN THE CACHE baseCache
/dynacachetests/TimeStamp1=12
/dynacachetests/TimeStamp=11
Post a Comment
Note: Only a member of this blog may post a comment.