Sun Java Sytem Web Server 7.0 blogs Amit's Weblog

Tuesday Jun 13, 2006

Monitoring Web Server 7.0 Instances
Monitor your Sun Java System Web Server 7.0 Instances

Monitoring web server instances is a very useful technique which would help Administrators to be aware of the status of all the instances. Sun Java System Web Server 7.0 provides two cool GUI/CLI interfaces to monitor the monitoring statistics of the instances.


How the data is exposed?
  • Configuration Level : The data exposed at this level is the aggregated monitoring statistics of all the instances pertaining to a particular configuration. This means that this level is going to give you an overall picture of the configurations.
  • Instance Level :  The data exposed at this level is simply the monitoring statistics of the running instance. The instance could be defined as a configuration deployed on a particular node.
How can we monitor the data?

There are two interfaces which you could use to view the various monitoring statistics:

  • Administration User Interface (GUI) : Sun Web Server 7.0 features an enhanced and easy to navigate web based administration user interface. Viewing the monitoring statistics via GUI is pretty easy. All you are required to do is to click on the Monitoring Tab which you could spot out easily once you log into Administration User Interface.
  • Command Line Tool (CLI) : Sun Web Server 7.0 also comes along with easy to use command line tool. Viewing monitoring statistics via CLI is again very easy. There are only four commands which you are required to know to get all the required monitoring data. These commands are as follows:

To get the general statistics e.g: number of requests, number of errors etc for a particular configuration, use get-config-stats command. If node option is specified which means that you are looking for instance statistics, the command would get you the process statistics e.g jvm statistics, keep alive statistics, thread pool statistics etc as well along with the general statistics.
wadm> get-config-stats
Usage: get-config-stats [--echo=true] [--prompt=false] [--verbose=true] [--node=node-name] --config=config-name

To get the virtual server statistics e.g: number of requests, number of errors etc for the particular virtual server, use get-virtual-server-stats command.

wadm> get-virtual-server-stats
Usage: get-virtual-server-stats [--echo=true] [--prompt=false] [--verbose=true] [--node=mc-name] --config=name --vs=vs-name

To get the overall web application statistics e.g number of session active, number of jsps loaded etc for a particular web application deployed on the virtual server, use get-webapp-stats command.

wadm> get-webapp-stats
Usage: get-webapp-stats [--echo=true] [--prompt=false] [--verbose=true] [--node=mc-name] --config=name --vs=vs-name --uri=web-app-uri

To get different servlet/jsp statistics for the particular web application, use get-servlet-stats command. This command would list all the servlet/jsps of the web application along with their statistics

wadm> get-servlet-stats
Usage: get-servlet-stats [--echo=true] [--prompt=false] [--verbose=true] --config=name --node=mc-name --vs=vs-name --uri=web-app-uri

All the above commands other than get-servlet-stats command can be used to get statistics at both configuration and instance level. The servlet statistics can only be viewed at instance level.

Other Useful Web Server 7.0 Blogs
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed