This article defines what is and is not a "silent exit" and describes the facilities and processes that you can use to diagnose a potential occurrence of the problem.
Self-termination of the Microsoft Exchange Information Store is different from an abnormal ending of the process such as occurs with an access violation (crash). In an abnormal situation, something unexpected has occurred inside the process. One example of an unexpected situation is the miscalculation of a memory address and the subsequent attempt to write to a memory location that is considered read-only. When an unexpected event occurs, the Just in Time Debugger (JIT) is invoked to capture the situation either in a debugger for immediate evaluation or in a log file for post mortem analysis. By default, Dr. Watson is the JIT debugger for Windows and generates an entry in the Dr. Watson Log file. If it is configured to do so, Dr. Watson also generates a user .dmp file for postmortem analysis by Microsoft.
By contrast, in a silent exit, code that is running inside the Microsoft Exchange Information Store is explicitly or implicitly calling for the process to quit. When a silent exit occurs, the JIT debugger is never invoked because the process itself asked to be terminated. For example, two Win32 Application Programming Interface (API) functions that perform this action are
TerminateProcess and
ExitProcess.
For more information about these functions, visit the following Microsoft Web sites:
Any code that is running inside a process, such as a third-party DLL, can call the two functions mentioned above and cause the entire process to be terminated without notification. When the information store quits in this way, it is extremely difficult to determine what is responsible for causing the termination and under what conditions the process exited.
For the Microsoft Exchange 2000 Information Store, the following new code and registry key was added to give the store the ability to intercept calls to the
TerminateProcess and
ExitProcess functions and to allow additional information to be captured when these functions are called from anywhere in the process, including from third-party DLLs.
SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
Name: Intercept Exit Functions
Type: REG_DWORD
Value: <see the following list>
The following values are acceptable for this setting:
- 0 Do nothing (same behavior as without the registry key present).
- 1 Log an event before exiting.
- 2 Log an event, and create a log file with a full call stack and information about loaded modules (this option requires the correct symbols to be available on the system at the time it fails). The log file name is Storeterm.log, and it is written to the same folder as Store.exe. For example, it is written to Exchsrvr\Bin.
- 3 Log an event, and cause a debug break for immediate debugging (if a debugger is already attached to process).
- 4 Log an event, and cause a crash to start the JIT debugger.
For the Microsoft Exchange 2003 Information Store, an event is written to the event log by default. This event indicates that the Information Store has terminated. Additionally, it indicates which process caused the termination. There is no
SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
registry key, but you can add it to control the level of data and debugging activity. Microsoft Product Support Services (PSS) may require that you change this value to enable them to troubleshoot a problem more.
Unfortunately, there are still cases when an information store silent exit can occur, such as a stack overflow. To diagnose these situations you must attach a debugger to the store process. However, there are cases where it may appear that the information store has experienced a silent exit, when actually the process was terminated by the following means:
- During Cluster service failover the Information Store did not shutdown in the resource timeout allotted and had to be forcefully terminated to force the cluster failover.
- User intervention required a forceful exit of the information store process, such as running Kill.exe.
When the application log is configured to log an event, the following event is logged in the application log:
Event Type: Information
Event Source: MSExchangeIS
Event Category: General
Event ID: 9643
Description: Process termination function %1 was called by a function in module %2; some parameters and their values were %3. A significant section of the call stack is in the data section. %n%n
For more information, click http://search.support.microsoft.com/search/?adv=1.