Monitoring Current Activity Using Stats.xml; To Enable The Stats-Xml Uri From The Admin Console - Sun Microsystems Sun Java System Web Server 7.0 Manual

Update 1 performancetuning, sizing, and scaling guide
Table of Contents

Advertisement

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.
1
Select the virtual server from the pull-down menu on the right, then click Edit Virtual Server.
2
On the Server Settings tab, click the Monitoring Settings sub tab.
3
Select the XML Report enabled checkbox.
4
Provide a URI, for example, /stats-xml.
5
Click Save.
6
Deploy the configuration.
7
Chapter 1 • Performance and Monitoring Overview
Monitoring Server Performance
29

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Sun Java System Web Server 7.0 and is the answer not in the manual?

Questions and answers

Table of Contents