<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://dotnetfreak.co.uk/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Kevin Gearing&amp;#39;s Blog : McAfee, Windows</title><link>http://dotnetfreak.co.uk/blog/archive/tags/McAfee/Windows/default.aspx</link><description>Tags: McAfee, Windows</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>ASP, w3wp.exe, Disappearing Memory and McAfee VirusScan Enterprise (Again!)</title><link>http://dotnetfreak.co.uk/blog/archive/2009/02/10/asp-w3wp-exe-disappearing-memory-and-mcafee-virusscan-enterprise-again.aspx</link><pubDate>Tue, 10 Feb 2009 11:35:00 GMT</pubDate><guid isPermaLink="false">6329f370-38d9-4d4b-8419-567856985e22:1742</guid><dc:creator>dotNetFreak</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://dotnetfreak.co.uk/blog/rsscomments.aspx?PostID=1742</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://dotnetfreak.co.uk/blog/commentapi.aspx?PostID=1742</wfw:comment><comments>http://dotnetfreak.co.uk/blog/archive/2009/02/10/asp-w3wp-exe-disappearing-memory-and-mcafee-virusscan-enterprise-again.aspx#comments</comments><description>&lt;TABLE class="" cellSpacing=0 cellPadding=0 border=0&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" width="100%"&gt;
&lt;DIV class=BlogPostContent&gt;
&lt;P&gt;Following on from my post back in 2005 (&lt;A href="http://dotnetfreak.co.uk/blog/archive/2005/02/15/asp-net-w3wp-exe-100-cpu-usage-and-mcafee-virusscan-enterprise.aspx"&gt;&lt;FONT color=#000000&gt;ASP.NET, w3wp.exe, 100% CPU Usage and McAfee VirusScan Enterprise&lt;/FONT&gt;&lt;/A&gt;) I recently noticed&amp;nbsp;a particular Web server "drinking" what appeared to be an excessive amount of memory. &lt;/P&gt;
&lt;P&gt;In fact I was seeing &amp;lt; 100MB physical memory available and the page file usage at approximately 9-10GB on&amp;nbsp;a server that currently has 4GB of RAM and that isn't normally stressed at all.&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;this server hosts a number of Web sites in seperate application pools firing up Task Manager revealed some interesting results. I could see most application pools consuming 8-10MB of RAM each, some consuming 30-40MB, but quite a few consuming &amp;gt; 100MB with a couple consuming over 150MB.&lt;/P&gt;
&lt;P&gt;I started to tie the application pools back to the individual Web sites and look at the type of content that they were serving, whether it was static or dynamic, ASP, ASP.NET or PHP, whether they were using Access, MySQL or SQL Server databases and whether they were typically busy Web sites.&lt;/P&gt;
&lt;P&gt;One thing became immediately apparent, the memory boozers were all ASP driven...&lt;/P&gt;
&lt;P mce_keep="true"&gt;My initial reaction was to stop all McAfee services (always blame the anti-virus software first!) and to see what happened, so after doing this and a quick iisreset I fired up Task Manager again and waited... Sure enough 10 minutes later I was seeing application pools running at &amp;gt; 100MB.&lt;/P&gt;
&lt;P mce_keep="true"&gt;So, thinking that the AV software wasn't to blame I spent the next hour or so checking everything else I could think of.&lt;/P&gt;
&lt;P mce_keep="true"&gt;In the end I turned to the &lt;A class="" href="http://www.microsoft.com/downloads/details.aspx?familyid=9BFA49BC-376B-4A54-95AA-73C9156706E7" mce_href="http://www.microsoft.com/downloads/details.aspx?familyid=9BFA49BC-376B-4A54-95AA-73C9156706E7"&gt;IIS Diagnostics Toolkit&lt;/A&gt; (if you haven't seen this check it out!) and dumped a couple of the w3wp.exe processes, within a couple of minutes I was staring at a report which quite obviously was pointing the finger at one of the McAfee modules that was utilising 120MB of the process. After repeating this on a few other processes, all with similar results, I then had to set about working out which part of McAfee was to "blame".&lt;/P&gt;
&lt;P mce_keep="true"&gt;Eventually this led me to the ScriptScan setting within McAfee VirusScan, which is described as...&lt;/P&gt;
&lt;P mce_keep="true"&gt;"ScriptScan scans JavaScript and VBScript scripts that are executed by the &lt;STRONG&gt;Windows Scripting Host&lt;/STRONG&gt;.&amp;nbsp; WSH is used by Internet Explorer and Outlook.&amp;nbsp; If an unwanted script is detected it is not allowed to execute."&lt;/P&gt;
&lt;P mce_keep="true"&gt;Hmmm...&lt;/P&gt;
&lt;P mce_keep="true"&gt;So a quick disable (well, actually not that quick as the AV policies are centrally managed and have to be propogated down to server level from a management console),&amp;nbsp;an iisreset later and I'm closely watching Task Manager as the application pools start firing up... 10 minutes later I'm still watching... 15 minutes... time for a coffee... 30 minutes later and I'm seeing no application pools above 100MB, the vast majority at 8-20MB and the rest at 30-40MB with a couple busier sites running at 50-60MB.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Available memory has suddenly increased from &amp;lt; 100MB to &amp;gt; 2.5GB and the page file usage is down to 2GB.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Re-enabling ScriptScan proves that this "feature" is the problem...&lt;/P&gt;
&lt;P mce_keep="true"&gt;So why is a feature related to &lt;STRONG&gt;Windows Scripting Host&lt;/STRONG&gt;, interfering with a &lt;STRONG&gt;process that is excluded&lt;/STRONG&gt; from scanning, when the AV &lt;STRONG&gt;services are stopped&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P mce_keep="true"&gt;Well, if I knew the answer to that I could probably predict lottery numbers...&lt;/P&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;img src="http://dotnetfreak.co.uk/aggbug.aspx?PostID=1742" width="1" height="1"&gt;</description><category domain="http://dotnetfreak.co.uk/blog/archive/tags/Windows/default.aspx">Windows</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/McAfee/default.aspx">McAfee</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/IIS/default.aspx">IIS</category></item><item><title>ASP.NET, w3wp.exe, 100% CPU Usage and McAfee VirusScan Enterprise</title><link>http://dotnetfreak.co.uk/blog/archive/2005/02/15/asp-net-w3wp-exe-100-cpu-usage-and-mcafee-virusscan-enterprise.aspx</link><pubDate>Tue, 15 Feb 2005 17:15:00 GMT</pubDate><guid isPermaLink="false">6329f370-38d9-4d4b-8419-567856985e22:244</guid><dc:creator>dotNetFreak</dc:creator><slash:comments>22</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://dotnetfreak.co.uk/blog/rsscomments.aspx?PostID=244</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://dotnetfreak.co.uk/blog/commentapi.aspx?PostID=244</wfw:comment><comments>http://dotnetfreak.co.uk/blog/archive/2005/02/15/asp-net-w3wp-exe-100-cpu-usage-and-mcafee-virusscan-enterprise.aspx#comments</comments><description>&lt;P&gt;Recently I've been experiencing a strange problem on one of our development servers that was hosting an ASP.NET application. The server in question was running Windows Server 2003 with IIS6 and VirusScan Enterprise v8.0i.&lt;/P&gt;
&lt;P&gt;I was noticing that any ASP.NET page that was being hit would cause the CPU usage to jump to 100% for a period of a few seconds, before returning to it's typical 2-3% - The offending process? w3wp.exe.&lt;/P&gt;
&lt;P&gt;I ruled out (as far as possible) the application as the fault, simply because the same application was running on a Windows 2000 Server as well as an identical Windows Server 2003 without any issue.&lt;/P&gt;
&lt;P&gt;Running adplus (Windows Debugging Tools) revealed some interesting information, but nothing concrete. Further investigation pointed me to possibly McAfee VirusScan Enterprise, which had recently been upgraded and was a different version to that running on the other servers.&lt;/P&gt;
&lt;P&gt;To cut a long story short, McAfee have introduced 'Buffer Overflow Protection' into VirusScan Enterprise v8.0i, which if set to 'Protection Mode' seems to interfere with w3wp.exe and throw the processors to 100% - disable it and no problem.&lt;/P&gt;
&lt;P&gt;So, if you're running VS Enterprise v8.0i and start seeing strange 100% CPU usage, check that you have 'Buffer Overflow Protection' disabled, or set to 'Warning Mode', which might also solve the problem - For me, disabling is the route I'm going...&lt;/P&gt;&lt;img src="http://dotnetfreak.co.uk/aggbug.aspx?PostID=244" width="1" height="1"&gt;</description><category domain="http://dotnetfreak.co.uk/blog/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/Windows/default.aspx">Windows</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/McAfee/default.aspx">McAfee</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/IIS/default.aspx">IIS</category></item></channel></rss>