<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Server Room &#187; active directory</title>
	<atom:link href="http://serverroom.edublogs.org/tag/active-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://serverroom.edublogs.org</link>
	<description>Pay no attention to the man behind the curtain (he's running the IT)</description>
	<lastBuildDate>Mon, 18 May 2009 18:47:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Exchange 2003 high CPU (mad.exe)</title>
		<link>http://serverroom.edublogs.org/2009/05/18/exchange-2003-high-cpu-madexe/</link>
		<comments>http://serverroom.edublogs.org/2009/05/18/exchange-2003-high-cpu-madexe/#comments</comments>
		<pubDate>Mon, 18 May 2009 18:47:26 +0000</pubDate>
		<dc:creator>Sahmeepee</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[exchange 2003]]></category>

		<guid isPermaLink="false">http://serverroom.edublogs.org/?p=46</guid>
		<description><![CDATA[I noticed recently that both of my DCs and my Exchange 2003 server were running at higher CPU than normal. Only one of the DCs is a GC and it had recently fallen over due to a hardware failure, but had since been running for a few days without problems.
As the CPU usage was not [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed recently that both of my DCs and my Exchange 2003 server were running at higher CPU than normal. Only one of the DCs is a GC and it had recently fallen over due to a hardware failure, but had since been running for a few days without problems.</p>
<p>As the CPU usage was not excessive (20% on Exchange vs. typical usage of around 3-5%; 15% usage on the DCs compared to typical 1-3%) it had not impacted on performance, so I only noticed it from a perfmon trace I leave running against all servers. I logged onto a DC, ran task manager (taskmgr.exe) and found the task with highest CPU: <a title="lsass.exe" href="http://en.wikipedia.org/wiki/Local_Security_Authority_Subsystem_Service">lsass.exe</a>. A quick scan through the event logs on the affected servers didn&#8217;t turn up anything significant.</p>
<p>I then ran <a href="http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx">filemon</a> to see what files lsass was accessing and give me a quick insight into where the problem might lie. Almost all the accesses were relating to <a title="ridiculously detailed info about ntds.dit" href="http://www.windowsnetworking.com/kbase/WindowsTips/Windows2000/AdminTips/ActiveDirectory/ActiveDirectorydatabasefileNTDS.DIT.html">ntds.dit</a> &#8211; the <a href="http://en.wikipedia.org/wiki/Active_Directory">AD</a> database. This <a href="http://blogs.msdn.com/spatdsg/archive/2007/01/30/what-s-bogging-down-your-cpu.aspx">microsofty&#8217;s blog post</a> had some good advice on tracking down CPU issues, but I couldn&#8217;t really use the tip of unplugging the server from the network so Wireshark was a better option. I chose to run <a href="http://www.wireshark.org/">wireshark</a> on the DC to check if the AD activity was generated on the DC itself or if a remote server was querying AD. As it turned out, Exchange was generating a lot of queries relating to other forests in the domain. Exchange is renowned for being very <a href="http://www.answers.com/stroppy">stroppy</a> about having good access to a GC and the information from Wireshark made me suspect that Exchange had become upset after a weekend without access to a GC in our AD site.</p>
<p>I moved over to the Exchange 2003 server and checked the high CPU services on there. Top of the pops was mad.exe &#8211; the Exchange System Attendant. The excellent Microsoft Exchange Team blog (you had me at ehlo) had a useful article entitled <a href="http://msexchangeteam.com/archive/2005/06/09/406137.aspx">The Cliff Notes on System Attendant (MAD.EXE)</a>. That confirmed my suspicions that Exchange was going a little bit haywire with AD queries so as a quick fix I restarted the system attendant service and its dependant services from the Windows services console (services.msc).</p>
<p>The high CPU persisted for a couple of minutes and then subsided. Another quick scan through the Exchange server&#8217;s event logs showed a splattering of ExchangeAL errors in the Application event log like this one:</p>
<pre>Event Type: Error
Event Source: MSExchangeAL
Event Category: LDAP Operations
Event ID: 8270
User:  N/A
Description:
LDAP returned the error [10] No Such Attribute when importing the transaction
dn: &lt;GUID=**********&gt;
changetype: Modify
msExchPoliciesIncluded:delete:{**********},{26491CFC-9E50-4857-861B-0CB8DF22B5D7}
msExchPoliciesIncluded:add:{**********},{26491CFC-9E50-4857-861B-0CB8DF22B5D7}
msExchALObjectVersion:329
objectGUID:**********
-</pre>
<p>&#8230; but they subsided after a couple of minutes too and the storm was over. Mad.exe was back down to 0.00% CPU and the DCs were behaving themselves. Job done.</p>
<p> </p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fserverroom.edublogs.org%2F2009%2F05%2F18%2Fexchange-2003-high-cpu-madexe%2F';
  addthis_title  = 'Exchange+2003+high+CPU+%28mad.exe%29';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://serverroom.edublogs.org/2009/05/18/exchange-2003-high-cpu-madexe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
