Article ID: 910904 - Last Review: July 23, 2009 - Revision: 3.0 A change in the functionality of COM+ in Windows Server 2003 to support automatic collection of a process dump file and process termination
On This PageINTRODUCTIONThis article describes a change in the functionality of Microsoft COM+ (Component Services) in Microsoft Windows Server 2003. By default, when a COM+ component experiences an unusually high call time, no information is recorded for the COM+ component that experiences the problem. Additionally, no action is taken to try to recover from the problem. After you apply Microsoft Windows Server 2003 Service Pack 2 (SP2), an event is logged when a COM+ component experiences an unusually high call time. The event log identifies the COM+ component that experiences the problem. Additionally, the event log mentions this Microsoft Knowledge Base article. You can configure the system to perform one or both of the following actions:
MORE INFORMATIONDefault behaviorConsider the following scenario:
Event Type: Information
Configuration optionsImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows You can configure the system to perform one or both of the following actions when a long-running COM+ component is detected:
Value name: AverageCallThreshold
To globally define the actions to be taken for all COM+ components on the computer, add the configuration values under the following registry key:Data type: REG_DWORD Description: Threshold, in seconds, when the appropriate actions will be taken Default value: 0 Value name: DumpType Data type: REG_DWORD Description: 0 = Generate a full dump file
Default value: 0
1 = Generate a minidump file 2 = No dump file Value name: Terminate Data type: REG_DWORD Description: 0 = Process will continue
Default value: 0
1 = Process will be terminated HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3\AutoDump HKEY_CLASSES_ROOT\AppId\{<YourAppID>}\AutoDump\{<YourCLSID>} RecommendationsCollect full dump filesFor best supportability, collect a full dump file when a COM+ component experiences an unusually high call time. For example, to do this, create the following single registry value:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3\AutoDump
AverageCallThreshold = 300
Similarly, collect a full dump file when an unhandled exception occurs in a COM+ application. To do this, click to select the Enable Image Dump on Application Fault check box on the Dump tab in the properties of each COM+ application. Analyze the dump filesWhen a dump file is produced, perform an initial analysis of the problem. To do this, follow these steps:
ConsiderationsThe AverageCallThreshold registry valueA value of 300 seconds is an appropriate threshold for many environments. However, the ideal value may vary depending on the particular environment. To make sure that action is taken as quickly as possible but only when a legitimate problem occurs, select the smallest possible value that is exceeded only in a problematic scenario.The TerminateProcess registry valueTerminating the process when high call times occur may help the COM+ component automatically recover from some problems. This may be especially desirable in environments where high availability is a major concern. When you use this feature, notice that it is especially important to select an appropriate AverageCallThreshold registry value to avoid unintentionally terminating the process.The DumpType registry valueMinidump files are faster to create and take less disk space than full dump files. However, minidump files are less useful for problem analysis because they frequently lack the required data. Typical full dump files for a Dllhost.exe process are approximately 10 megabytes (MB) to 50 MB and take a matter of seconds to generate. However, the size of full dump files varies depending on the size of the working set of the process that is dumped.The dump file optionsBy default, the dump files are stored in the %systemroot%\system32\com\dmp directory. You can use the settings in the Image Dump Directory box and under the Maximum Number of Dump Images area for the appropriate COM+ application to control the location of the dump files and the number of dump files.The call timeThe call time for a COM+ component is a running average for all instances of the COM+ component. The call time is calculated by the COM+ System Application. Additionally, the call time is displayed in the Call Time (ms) column of the Status View in the Component Services MMC snap-in. | Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|





















Back to the top