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 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
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 Common Tasks page, select the configuration from the pull-down menu on the left.
Select the virtual server from the pull-down menu on the right, then click Edit Virtual Server.
On the Server Settings tab, click the Monitoring Settings sub tab.
Select the XML Report enabled checkbox.
Provide a URI, for example,
/stats-xml
.
Click Save.
Deploy the configuration.
1
2
3
4
5
6
7
Monitoring Server Performance
Chapter 1 • Performance and Monitoring Overview
29
Summary of Contents for Sun Java System Web Server 7.0
Page 9: ...Figures FIGURE 2 1 Web Server Connection Handling 40 9 ...
Page 10: ...10 ...
Page 18: ...18 ...
Page 38: ...38 ...
Page 84: ...84 ...
Page 100: ...100 ...