Troubleshooting a Faulty Service in XP

  

Introduction When an intermittent failure occurs in a Windows XP service, information about the cause of the failure is hardly generated. Therefore, it may be difficult to determine the cause of the problem. This step-by-step article describes how to use the "Windows Debugging Tools" to eliminate intermittent service failures.

To troubleshoot intermittent service failures, follow these steps:

1. At the command prompt, type the following command. Press ENTER after typing each command.

cd %systemroot%\\system32 copy svchost.exe svchostdbg.exe regedit

2. In the Registry Editor, click the subkey that corresponds to the name of the service that failed. This subkey is located in the following subkey:

HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services

3. In the details pane, right-click “ImagePath”, and then click “ Edit ”.

4. In the path shown in the “Value Data” box, change “svchost.exe” to svchostdbg.exe and click “OK”.

5. Exit the Registry Editor.

6. Type the following command at the command prompt, and then press ENTER:

net start ServiceName

Replace ServiceName with the name of the failed service.

7. Right-click on the taskbar and click “Task Manager”.

8. In the Windows Task Manager, click the “process” tab.

9. On the "View" menu, click “Select Columns”.

10.Click to select the “PID (process identifier)” checkbox, then click “OK”.

11. Locate the service in the <;Image Name” column. Then, note the corresponding process identifier (PID) for the service in the “PID” column.

12. At the command prompt, type the following command. Press ENTER after typing each command.

cd \\Program Files\\Debugging Tools for Windows adplus -p PID -crash

Replace the PID with the PID of the failed service.

13. Wait for the service to fail.

14. After the service has failed, analyze the dump file for information that can help identify the cause of the problem. This information includes the last error that occurred. This dump file is located in the following folder:

C:\\Program Files\\Debugging Tools for Windows\\



Copyright © Windows knowledge All Rights Reserved