
Thesyntax gets the statistics for a given web application deployed on the given virtual server of
thegiven instance. To get the aggregated web application statistics for a given conguration
acrossall the nodes where the conguration has been deployed, use the command without the
nodeoption.
Thefollowing 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
MonitoringCurrent Activity Using stats.xmlYoucan also display statistics using stats-xml, which displays statistics in XML format. The
outputof stats-xml is in XML so that various tools can easily parse the statistics. You can view
thestats-xml output through a URI, which you have to enable, or you can view the stats-xml
outputthrough the CLI, which is enabled by default.
▼ToEnable the stats-xml URI from the Admin Console
Ifyou enable the stats-xml URI, you can access statistics for your server in XML format
througha browser. Note that when you use the stats-xml URI, you can access statistics even
whenthe Administration Server is not running. Also, with the stats-xml URI activated, users
cansee the statistics information for your server, unless you take precautions to deny access.
Onthe Common Taskspage, select the conguration from the pull-down menu on the left.
Selectthe virtual server from the pull-down menu on the right, then click Edit Virtual Server.
Onthe Server Settings tab, click the Monitoring Settings sub tab.
Selectthe XML Report enabled checkbox.
Providea URI, for example,/stats-xml .
ClickSave.
Deploythe conguration.
1
2
3
4
5
6
7
MonitoringServer Performance
Chapter1 • PerformanceandMonitoring Over view 29