Monitoring servers
System logging facility
Content Manager OnDemand provides a logging facility to help administrators track Content Manager OnDemand activity and monitor the system. When you enable logging for system events, user events, and application group events, Content Manager OnDemand stores the messages that are generated by the various Content Manager OnDemand programs in the system log. You can use one of the Content Manager OnDemand client programs to search for and filter messages by time stamp, severity, message number, and user name.
Searching for and viewing messages
To search for and view the messages that are stored in the system logging facility, log on to Content Manager OnDemand with a Content Manager OnDemand client program and open the System Log folder. Enter search criteria in one or more of the search fields. When you choose the Search command, Content Manager OnDemand retrieves the messages from the database that match the search criteria that you specified.
- Userid
- The Content Manager OnDemand userid
- Log Id
- Each time that a client logs on to the server, Content Manager OnDemand assigns a transaction number to that instance of the client program. All messages that are generated by that instance of the client program include the same Log Id.
- Severity
- Content Manager OnDemand assigns a severity to each message: Alert, Error, Warning, Info, and Debug
- View
- Depending on the type of message in the system log, you may be
able to view other information that is related to or associated with
the message. For example:
- You can display the message log that was generated during a load process by selecting an ARSLOAD
message and then choosing the View All Selected command.
While most processes do not generate other information that can be stored in the system log, you could provide a user-written program to process the messages and generate your own information about the events. For example, you could provide a user-written program to generate a report that lists the number of users that are logged on to the system in thirty minute increments. Content Manager OnDemand provides a system log user exit point so that you can process any message that is stored in the system log and take the action that you require. See IBM Content Manager OnDemand for Multiplatforms: Installation and Configuration Guide for more information about the system log user exit.
- Other messages in the system log do not provide additional records or other data associated with an event. For example, the Logon and Logoff events each generate a single message, with no additional information that you can view.
- You can display the message log that was generated during a load process by selecting an ARSLOAD
message and then choosing the View All Selected command.
- Msg Num
- The message number that is assigned by Content Manager OnDemand
- Message
- The text of the message that Content Manager OnDemand uses to restrict a search. For example, if you type Login, Content Manager OnDemand searches for and displays the messages issued by the Logon to a Server command.
System log user exit
When you
configure the system to enable logging for system, user, and application group events,
Content Manager OnDemand sends a copy of each message
that is generated by the system to the system log user exit program. The system log user
exit program on UNIX servers is named ARSLOG
and resides in
the Content Manager OnDemand executable directory
(bin
). The system log user exit program on Windows servers
is named ARSLOG.BAT
.
The system log user exit program that is provided by IBM® does not perform any functions. However, you can replace the program that is provided by IBM with a user-written program that does user-defined processing. For example, you could provide a user-written program to check for certain message numbers or severity, and take whatever action you deem appropriate.
You configure the system to send messages to the system log user exit by selecting User Exit Logging options from the System Parameters dialog box in the OnDemand Administrator client. See the online help for the OnDemand Administrator client for more information about the User Exit Logging options on the System Parameters dialog box.
See IBM Content Manager OnDemand for Multiplatforms: Installation and Configuration Guide for more information about the system log user exit.
Sample ARSLOG user exit script for UNIX
Sample ARSLOG user exit batch file for Windows
Monitoring users
- Content Manager OnDemand stores message number 201 in the system log every thirty minutes. This message contains the current number of users that are logged on to the server.
- Content Manager OnDemand stores message number 202 in the system log every time that the number of concurrent users exceeds the previous maximum number of concurrent users. The number of concurrent users is reset each time that you restart the Content Manager OnDemand server processes.
System load logging facility
Content Manager OnDemand provides a logging facility to help you track loading activity. After you enable system load logging, Content Manager OnDemand stores the messages that are generated by the load programs in the system load log. You can use one of the Content Manager OnDemand client programs to search for and filter messages by criteria such as load date, application group name, application name, load ID, and input file name.
Before you start Content Manager OnDemand for the first time, make sure that you initialize the system load logging facility. See IBM Content Manager OnDemand for Multiplatforms: Installation and Configuration Guide for information about initializing the system load logging facility.
Monitoring performance
- Memory. The lack of adequate RAM results in excess paging. In general, the more RAM and cache, the better your system will perform.
- Processor. The type of processor and the number of processors affects the overall performance of the system. Content Manager OnDemand supports symmetric multiprocessing so that if a system has multiple applications running concurrently, or applications that are multithreaded, the overall processor power is shared.
- Disk subsystem. Free space, fragmented files, and high transfer rates affect the performance of the database manager and the storage manager. Lack of adequate RAM, resulting in excess paging, can cause a disk subsystem to become very busy. In addition, the type and number of disk controllers affects the overall system responsiveness when responding to reads and writes to disk drives.
- Network subsystem. High transfer rates and otherwise overloaded networks reflect badly on client/server applications. Network I/O is the resource that most affects the performance of TCP/IP.
You can choose to monitor snapshots or events. Snapshots allow you to capture point-in-time information at specified intervals. Events allow you to record information over the duration of an event, such as a connection to the database.
As part of the initial setup of your system, IBM recommends that you create a measurement baseline of information for use in analyzing system performance. This is important because to determine if a resource is being overused, under used, or is at maximum capacity and performance, you need to identify what is normal. You can also use this information to set expectations of system performance for users.
Automating the collection of server data is essential to control the amount of data collected and to facilitate its analysis. You can use tools provided with the operating system, such as Performance Monitor and Network Monitor on Windows servers, to automatically capture server data during specified periods and then store the data in a database.
Finally, you should establish and implement a plan for long-term record keeping and long-term trend analysis. If you store server performance data in a database, you can use tools such as a spreadsheet to analyze the data and generate charts and create reports.
- System
- Processor
- Memory
- Logical disk
- Physical disk (if using RAID)
- Server
- Cache
- Network adapter
- Database (Db2, Oracle, and SQL Server provide Performance Monitor objects and counters)