Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

October 31, 2006 12:00 AM

The Case of the Process Startup Delays

Windows IT Pro
InstantDoc ID #93640
Rating: (0)

I don't use my laptop much when I'm not traveling, but I occasionally use it to read email in the living room. Like most Windows users, I'm frustrated by occasional unexplained delays when I perform routine tasks such as starting a program or opening a Web page. Since joining my laptop to an internal Microsoft domain, I've begun experiencing regular delays when starting processes. With my Sysinternals tools arsenal in hand, I set out to investigate the root cause, suspecting that joining the laptop to the Microsoft domain played a role.

I began my research by first noticing that, after a delay of a few seconds when starting a new process, processes that I started within the following 30 seconds launched instantly. I therefore started Sysinternals Process Explorer, waited for 30 seconds, then started Notepad from Windows Explorer's Run command. Notepad didn't appear in Process Explorer's process tree during the expected delay, which implied that the Explorer thread starting Notepad was experiencing the pause, not Notepad's startup.

You can follow all the steps I performed to diagnose the process delays by visiting my blog at https://blogs.technet.com/markrussinovich/archive/2006/08/31/453100.aspx, but the results of my investigation showed that Windows Defender is the culprit. Putting it all together, here's what I discovered happens to cause the process delays: When a program launches, the shell calls to Windows Defender's real-time protection hook, MpShHook.Dll. The hook communicates with the Windows Defender service via remote procedure calls (RPC), and as part of the protocol, RPC attempts to determine the computer account's SID. This causes RPC to look for a domain controller (DC), which it can't find. The result is a process startup delay, which is actually a network timeout.

A little more research led me to conclude that the delay happens only under the following circumstances:

  • The system is running Windows XP 64-bit Edition or Windows Server 2003 Service Pack 1 (SP1).
  • Windows Defender Beta 2 is active.
  • The system is joined to a domain but hasn't connected to the domain in the current boot session.

The Windows Defender team is looking at workarounds for the next release, but now that I understand the delay I can work around it.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.