This chapter provides procedures for using IPM in specific situations. These procedures show how to use IPM as a general purpose and problem-solving tool.
This chapter describes procedures for:
To determine which servers are running in an installation, use IPM to display either the Server List or the Log Process Display.
To display the Server List screen
Select Server_List from the Main Menu.
Only servers registered with the Name server are shown.
To display the Log Process Display screen
The Log_Info Menu is displayed.
The Log Process screen is displayed. All servers, and the archiver and recovery processes in the current installation are shown.
To view a list of sessions in a DBMS server
The Server List screen is displayed.
The Session List screen is displayed. If desired, you can view session detail. Privileged users can remove unwanted sessions.
If you are monitoring a busy system and want to view the amount of locking and logging resources being consumed for a certain period, use the Interval option with autorefresh on.
Both the Locking System Summary and Logging System Summary screens allow statistics to be collected over an interval whose starting point is determined by selecting the Interval menu item.
To start the interval
Either the Lock Info Menu or Log Info Menu is displayed.
The System Summary screen is displayed.
The Interval submenu is displayed.
A starting and current time is displayed. The starting times and statistics are saved until reset. This allows you to use other parts of IPM and view these screens to see the latest cumulative locking and logging statistics.
If a server becomes unresponsive, you can still monitor the state of the system with IPM. There are two methods:
In this case, IPM cannot print database or table names because it cannot connect to any server in stand-alone mode. However, this is the simplest method.
Delete the first (problem) server from the Name Server's list using the iinamu utility. You must be a privileged user to invoke this utility. For more information on starting a server and using the iinamu utility, see the System Administrator Guide.
After IPM connects to the new server, you can use IPM to determine the state of the system. Use the Log and Lock Information areas (Log Info and Lock Info from the Main Menu) to view the state of the system.
Certain logging conditions may result in user complaints of slow response time. The Logging System Header screen in IPM can help you determine if a sluggish system is due to logging activities.
To check for logging delay
The Log Info Menu is displayed.
The Logging System Header screen is displayed.
Any of the following states indicates that the delay is due to the logging system:
The log file is overly full while executing a consistency point (CP). The CP must complete before log space can be released. The status LOGFULL, ARCHIVE may also be displayed.
The log file becomes full and journaled transactions must be archived to free up log space. When the archiver is done, log space is released.
The log file has reached a limit where all database updates/deletes/inserts are stalled until enough space is reclaimed. The Warning field is also visible.
The logging system is backing out the oldest transaction. Doing this does not block any other transactions, but it does take CPU cycles. The amount of CPU cycles used depends upon what the transaction was doing when it was singled out for rollback.
If a session is stalled, it may be waiting for a lock.
To check for concurrency problems
The Lock Info Menu is displayed.
The Lock List Display screen is displayed.
The String to search for prompt appears.
If there are lock lists with blocked locks, the cursor is placed on that lock list. Any lock lists with a status of WAIT are blocked from proceeding.
The Blocking Lock Display screen is displayed.
You are returned to the Lock List Display screen.
You can use IPM to determine how efficient group commit is in your installation. The ratio of Log group count to Log group commit indicates how many waiting transactions are satisfied for each group commit operation.
To determine the efficiency of group commit in your installation
The Log Info Menu is displayed.
The Logging System Summary screen is displayed.
A ratio of 10:1 indicates that 10 commits were satisfied with one group commit write. You can use the Interval menu item to observe this over a short period of time.
If the ratio approaches 1:1, potentially empty (or near empty) log buffers are being written out, possibly wasting space in the log file. To avoid this, decrease the size and number of the log buffers.
The Logging System Header screen in IPM lets you determine how full and how close to FORCE_ABORT the log file is.
Note: This procedure is most useful when the autorefresh option is set.
To check the capacity of the log file
The Log Info Menu is displayed.
The Logging System Header screen is displayed.
To see which transaction is preventing reclamation of log file space
The Log Info Menu is displayed.
The Logging System Header screen is displayed.
The diagram depicts the log file as it logically appears. The field boundaries represent the physical begin and end of file. The logical begin and end are marked by > symbols.
A submenu and additional transaction information on the Logging System Header screen is displayed.
On this transaction display, you can view the transactions that span the portion of the log file represented by the ^ symbol on the Log file diagram field. All transactions found for the current portion of the log file appear in the scrolling area on the bottom right of the screen. The Next and Previous menu items move the caret symbol to any area of the Log file Diagram covered by the arrow (">----->").
This transaction is the oldest transaction in the log file that is preventing log file space from being reclaimed.
You can use IPM as an efficient troubleshooting tool to locate the source of various operating or functional problems by using IPM utilities. IPM includes the following utilities, often used in troubleshooting an Ingres installation:
This utility is used to monitor and administer DBMS servers. With iimonitor or IPM, you can examine the status of a DBMS server or shut down a server or particular server session.
The lockstat utility allows you to display locking status information.
The logstat utility allows you to display logging status information.
This utility is used to monitor and administer the Name Server. You can display DBMS server information, register servers, and delete servers from the registered list.
For detailed troubleshooting procedures, see the System Administrator Guide.