Sun Microsystems 7 Security Camera User Manual


 
The syntax gets the statistics for a given web application deployed on the given virtual server of
the given instance. To get the aggregated web application statistics for a given conguration
across all the nodes where the conguration 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
Monitoring Current Activity Using stats.xml
You can also display statistics using stats-xml, which displays statistics in XML format. The
output of stats-xml is in XML so that various tools can easily parse the statistics. You can view
the stats-xml output through a URI, which you have to enable, or you can view the stats-xml
output through the CLI, which is enabled by default.
To Enable the stats-xml URI from the Admin Console
If you enable the stats-xml URI, you can access statistics for your server in XML format
through a browser. Note that when you use the stats-xml URI, you can access statistics even
when the Administration Server is not running. Also, with the stats-xml URI activated, users
can see the statistics information for your server, unless you take precautions to deny access.
On the CommonTasks page, select the conguration fromthe pull-downmenu on the left.
Select the virtual serverfrom the pull-down menu onthe right, then click EditVirtual Server.
On the Server Settings tab, clickthe Monitoring Settings sub tab.
Select the XML Report enabled checkbox.
Provide a URI, for example,/stats-xml.
Click Save.
Deploy theconguration.
1
2
3
4
5
6
7
MonitoringServerPerformance
Chapter1 • Performanceand MonitoringOverview 29