How to increase Windows service startup timeout period

Problem

Some software services may failed to start in slower machine and you will get following error events in Application event log.

Event ID: 7000

The ServiceName service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.

Event ID: 7009

A timeout was reached (30000 milliseconds) while waiting for the ServiceName service to connect.

Solution

To fix this service startup problem, we need to increase default startup timeout period 30000 milliseconds (30 seconds). Follow the below steps to increase all windows services startup timeout.

  • Open Run window by clicking Start button -> click Run.
  • In Run window, type regedit, and then click OK to open Registry Editor.
  • Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl
  • In the right pane, locate the ServicesPipeTimeout entry.
Note: If the ServicesPipeTimeout entry does not exist, first you should create it. Follow below steps:

  1. On the Edit menu, point to New, and then click DWORD Value.
  2. Type ServicesPipeTimeout, and then press ENTER.
  • One you locate (or created) ServicesPipeTimeout, right-click ServicesPipeTimeout, and then click Modify.
    Click Decimal, type 120000 (2 mins), and then click OK.
This value (120000) represents the time in milliseconds to wait for windows service to start before timeout.
  • Restart the computer once you done the changes.
How to increase Windows service startup timeout period

Advertisement

Leave a Comment