![]() ![]() ![]() ![]() ![]() ![]() ![]() |
This chapter describes how to use the Counter Monitoring System to view real time statistical data on your portal, reported by various performance counters. This chapter includes the following sections:
The Counter Monitoring System collects information from various performance counters for portal applications and exposes them for diagnosis and review. This system can be used to examine counters from any AquaLogic User Interaction application that resides on a remote host, provided the two machines are on a network in which they can reach each other via UDP.
With the Counter Monitoring System you can:
The following table lists the key counters provided with the portal. Each category of performance has one or more instances. Each instance in a category can be monitored with the counters for that category.
Note: | You can get a complete list of available counters using the info command in the Counter Monitoring console. See Running the Counter Monitoring Console. |
You can specify the location, size, and format of the counter log file(s), how often the counter values are polled, as well as filter which counters are written to the file(s).
To set up the counter log file(s):
opencounterslogger.bat (or opencounterslogger.sh on Unix) ServerName ContextName
-d LogDirectory -l LogOutputStyle -s MaxLogSize -r PollingInterval -f FilterExpression
ServerName - The name of the server where the portal you want to monitor is installed, for example: ptserver2. The value of this name is set in the opencounters:application-name element in the
serverconfig.xml file (in PT_HOME\settings\common). This value is case-sensitive.
ContextName - The name of the AquaLogic User Interaction application you want to monitor, for example: portal. The value of this name is set in the context element in the serverconfig.xml file. This value is case-sensitive.
-d LogDirectory - (Optional) The local directory in which to create counter log files. The directory must exist prior to executing the opencounterslogger.bat command.
-l LogOutputStyle - (Optional) The log output style can be any combination of the following:
-s MaxLogSize - (Optional) An integer that specifies the maximum size of any log file in kilobytes. Once this log file size is reached, the log is rolled over to a new file.
-r PollingInterval - (Optional) The rate, in seconds, at which counter values should be logged to file.
Note: | decreasing the polling interval (i.e., increasing the polling rate) can affect overall portal performance. Retaining the out-of-the-box setting should only affect performance by a maximum of 2%. |
-f FilterExpression - (Optional) An expression that filters which counters are logged. Expressions are case-insensitive. Use Table B-1 to look up Category, Instance, and Counter names, then write the expression in the following format:
CategoryNameContains:InstanceNameContains:CounterNameContains
Each condition in the above expression is optional, and is used to limit the counter values returned.
-f Cache::Num will match all counters with a category name that contains Cache and a counter name that contains Num. The instance name will not be filtered.
Note: | You can see a list of all available counters using the info command in the Counter Monitoring console, see Running the Counter Monitoring Console. |
opencounterslogger.bat PtServer2admin collab -d C:\logdir -l t -s 1000 -r 10 -f open:sql:
This command does the following:
When you enter this command, you should see the following:
Starting counter logger...
Log files will be written to directory: C:\logdir
Logging rate (seconds): 10
Log file rollover size (kilobytes): 1000
Logging from host: PtServer2.collab
At this point, if the logger is able to successfully connect to the server, you will see the following:
Logging counters...
You can now check the logging directory for log files. Log files will not appear until there is at least one counter created on the counter server.
In addition to monitoring counter log files, you can view specified counter values through a console.
To view counter values through a console:
opencountersconsole.bat (opencountersconsole.sh on Unix) ServerName ContextName
ServerName - The name of the server where the portal you want to monitor is installed, for example: ptserver2. The value of this name is set in the opencounters:application-name element in the
serverconfig.xml file (in PT_HOME\settings\common). This value is case-sensitive.
ContextName - The name of the AquaLogic User Interaction application you want to monitor, for example: portal. The value of this name is set in the context element in the serverconfig.xml file. This value is case-sensitive.
Once you enter the command, you see the counter console startup messages. If the connection to the specified server succeeds, you should see the following (with the server and application names you are monitoring displayed before the command prompt):
opencountersconsole.bat PtServer2 collab
This command opens a console to monitor the collab application on PtServer2. In this example, AquaLogic Interaction Collaboration is installed.
CategoryNameContains:InstanceNameContains:CounterNameContains
Each condition in the above expression is optional, and matches a substring of the category, instance, or counter names. See Table B-1 for some key category, instance, and counter names.
Example: values cache:pref:num
Example: filterset cache:pref:num
Using this example command, followed by the command filterget, gives the same result as using the command values cache:pref:num by itself.
The filterset you specify remains in effect until you set a new one. To reset the filterset to the default value, enter filterset by itself. The default filterset matches all counters.
The category filter you specify remains in effect until you set a new one.
The instance filter you specify remains in effect until you set a new one.
The counter filter you specify remains in effect until you set a new one.
Example: connect PtServer4 portal
The Counter Monitoring System integrates with the Windows Perfmon application. Once you start the portal, the Perfmon adaptor will add AquaLogic User Interaction counters to the list of possible counters to monitor. You can then start Perfmon (or any other monitoring application that works with Windows Performance Counters) and see AquaLogic User Interaction counters in the list of available counters.
The Perfmon adaptor adds a few percentage points of overhead to overall system performance. If you want to disable the Perfmon adaptor, in PT_HOME\settings\serverconfig.xml, set
opencounters:perfmon-enabled to false.
![]() ![]() ![]() |