To deploy statistics for configuration on a single node, enter:
./wadm get-config-stats --user=admin-user --password-file=admin-password-file --config=config-name --node=node-name
Using the node option in this syntax restricts the output to a single node. To view the statistics at the configuration level, use the command without the node option.
The following shows an example of the output for a single node:
timeStarted=1168035653 secondsRunning=1404 countRequests=690546 rpsLast1MinAvg=4491.7666 rpsLast5MinAvg=1844.6061 rpsLast15MinAvg=637.37305 countErrors=0 epsLast1MinAvg=0.0 epsLast5MinAvg=0.0 epsLast15MinAvg=0.0 maxResponseTime=0.30789953 rtLast1MinAvg=5.3970284 rtLast5MinAvg=5.208407 rtLast15MinAvg=35.56042 countBytesReceived=96800935 countBytesTransmitted=689929574 countChildDied=0 countVirtualServers=2 instanceName=https-test process.1.countThreadPools=2 process.1.jdbcPoolCount=1 process.1.countThreads=64 process.1.fractionSystemMemoryUsage=2887.0 process.1.countConnectionQueues=1 process.1.sizeResident=0 process.1.countIdleThreads=32 process.1.mode=1 process.1.sizeVirtual=0 process.1.countConfigurations=1 process.1.pid=15874 process.1.timeStarted=Jan 5, 2007 2:20:53 PM process.1.DNSCache.countCacheHits=687804 process.1.DNSCache.countAsyncNameLookup=0 process.1.DNSCache.countAsyncLookupsInProgress=0 process.1.DNSCache.flagAsyncEnabled=false process.1.DNSCache.countAsyncAddrLookups=0 process.1.DNSCache.flagCacheEnabled=true process.1.DNSCache.countCacheMisses=75 process.1.JDBCPool.1.countQueued=32 process.1.JDBCPool.1.countFreeConnections=0 process.1.JDBCPool.1.peakConnections=32 process.1.JDBCPool.1.millisecondsPeakWait=72 process.1.JDBCPool.1.countWaitQueueTimeouts=288 process.1.JDBCPool.1.peakQueued=64 process.1.JDBCPool.1.maxConnections=32 process.1.JDBCPool.1.currentConnections=32 process.1.JDBCPool.1.millisecondsAverageQueued=1.0 process.1.JDBCPool.1.countTotalFailedValidationConnections=0 process.1.JDBCPool.1.countLeasedConnections=32 process.1.JDBCPool.1.countTotalLeasedConnections=414 process.1.JDBCPool.1.countConnectionIdleTimeouts=1 process.1.JDBCPool.1.name=jdbc/jdbc-simple_1 process.1.connectionQueue.1.countQueued15MinuteAverage=4.3203125 process.1.connectionQueue.1.countQueued=0 process.1.connectionQueue.1.countQueued1MinuteAverage=0.046875 process.1.connectionQueue.1.countTotalQueued=79171 process.1.connectionQueue.1.countQueued5MinuteAverage=4.03125 process.1.connectionQueue.1.countOverflows=0 process.1.connectionQueue.1.maxQueued=1288 process.1.connectionQueue.1.ticksTotalQueued=724956383 process.1.connectionQueue.1.countTotalConnections=863 process.1.connectionQueue.1.peakQueued=64 process.1.connectionQueue.1.name=cq1 process.1.fileCache.countContentMisses=7 process.1.fileCache.maxMmapCacheSize=0 process.1.fileCache.sizeHeapCache=27520 process.1.fileCache.countMisses=22 process.1.fileCache.countContentHits=620662 process.1.fileCache.maxEntries=1024 process.1.fileCache.flagEnabled=true process.1.fileCache.secondsMaxAge=30 process.1.fileCache.sizeMmapCache=0 process.1.fileCache.countInfoHits=1862013 process.1.fileCache.maxHeapCacheSize=10747924 process.1.fileCache.countOpenEntries=0 process.1.fileCache.countHits=2482682 process.1.fileCache.maxOpenEntries=1024 process.1.fileCache.countEntries=12 process.1.fileCache.countInfoMisses=19 process.1.jvm.countGarbageCollections=96 process.1.jvm.sizeHeap=67762048 process.1.jvm.countThreads=79 process.1.jvm.countClassesUnloaded=0 process.1.jvm.vMVendor=Sun Microsystems Inc. process.1.jvm.countTotalClassesLoaded=3170 process.1.jvm.vMName=Java HotSpot(TM) Server VM process.1.jvm.countTotalThreadsStarted=81 process.1.jvm.countClassesLoaded=3170 process.1.jvm.peakThreads=79 process.1.jvm.millisecondsGarbageCollection=1981 process.1.jvm.vMVersion=1.5.0_09-b03 process.1.keepalive.countConnections=32 process.1.keepalive.maxConnections=200 process.1.keepalive.countFlushes=0 process.1.keepalive.countRefusals=0 process.1.keepalive.countTimeouts=6 process.1.keepalive.countHits=686943 process.1.keepalive.secondsTimeout=30 process.1.threadPool.1.countQueued=0 process.1.threadPool.1.countThreadsIdle=1 process.1.threadPool.1.threadPoolId=NativePool process.1.threadPool.1.maxThreads=128 process.1.threadPool.1.countThreads=1 process.1.threadPool.1.maxQueued=0 process.1.threadPool.1.peakQueued=0 process.1.threadPool.1.name=NativePool process.1.threadPool.2.countQueued=0 process.1.threadPool.2.countThreadsIdle=1 process.1.threadPool.2.threadPoolId=my-custom-pool process.1.threadPool.2.maxThreads=128 process.1.threadPool.2.countThreads=1 process.1.threadPool.2.maxQueued=0 process.1.threadPool.2.peakQueued=0 process.1.threadPool.2.name=my-custom-pool
To obtain statistics for a virtual server, enter:
./wadm get-virtual-server-stats --user=admin-user --password-file=admin-password-file --config=config-name --vs=virtual-server-name
Because the node option is not used, this syntax provides aggregate statistics for the virtual server across all the nodes where the configuration has been deployed. Using the node option restricts the output to a single node.
To obtain statistics for a deployed web application, enter:
./wadm get-webapp-stats --user=admin-user --password-file=admin-password-file --config=config-name --node=node-name --vs=virtual-server-name --uri=URI
The syntax obtains statistics for a given web application deployed on the given virtual server of the given instance. To obtain the aggregated web application statistics for a given configuration across all the nodes where the configuration has been deployed, use the command without the node option.
The following example shows the output for the URI hello:
countActiveSessions=1 countExpiredSessions=0 countJsps=1 countRejectedSessions=0 countReloadedJsps=1 countSessions=1 peakActiveSessions=1 secondsSessionAliveAverage=0 secondsSessionAliveMax=0 uri=/hello vsName=myvs.sun.com