<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/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/" xmlns:cs="http://blogs.iis.net/"><channel><title>Classic ASP</title><link>http://forums.iis.net/1032.aspx</link><description>Problems with Classic ASP (*.asp) applications discussion</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1924740.aspx</link><pubDate>Sat, 14 Nov 2009 06:30:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924740</guid><dc:creator>qbernard</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1924740.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1924740</wfw:commentRss><description>&lt;p&gt;You might want to start a new thread and post your setup info, problem symptom etc&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1924512.aspx</link><pubDate>Thu, 12 Nov 2009 19:25:27 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924512</guid><dc:creator>aspire2x</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1924512.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1924512</wfw:commentRss><description>&lt;p&gt;Hi All, we&amp;#39;re also experiencing the same issue. Did either of you guys (lkevinl, or Dublin) get closer to solving the problem? Thanks in advance!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1906217.aspx</link><pubDate>Mon, 08 Jun 2009 17:48:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906217</guid><dc:creator>Dublin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906217.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1906217</wfw:commentRss><description>Hey lkevinl,

we are having somewhat the same issue,
&amp;quot;IIS 6.0 ASP application bogs down despite free CPU &amp;amp; free memory&amp;quot;

did changing AspProcessorThreadMax from 25 to 50 help ?

did you manage to find a solution..

Thanks</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1879342.aspx</link><pubDate>Mon, 15 Sep 2008 13:01:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1879342</guid><dc:creator>lkevinl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1879342.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1879342</wfw:commentRss><description>&lt;p&gt;Hmmm... not really sure I followed all of that.&amp;nbsp; Are you saying I need to figure out which page requests are running slowly causing the queue to back up?&amp;nbsp; If so, I can try that.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But again, it seems that on my system where I have quite a bit of spare memory and CPU cycles that things are getting choked off by some other limiting factor.&amp;nbsp; That&amp;#39;s why I raised the AspProcessorThreadMax from 25 to 50.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also created www2, www3, and www4 each as their own website in IIS to spread users across 3 extra w3wp.exe processes, kind of like a web garden for ASP where they&amp;#39;re session will be maintained for that process.&amp;nbsp; I&amp;#39;ve implemented some code to round robin users who first hit to be sent to www, www2, www3, or www4 and stay there.&amp;nbsp; I&amp;#39;ll be able to turn this on and off at will.&lt;/p&gt;
&lt;p&gt;Thoughts??&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1879305.aspx</link><pubDate>Mon, 15 Sep 2008 06:03:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1879305</guid><dc:creator>qbernard</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1879305.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1879305</wfw:commentRss><description>&lt;p&gt;Well, asp queue is very high, while you are maxing on the asp executing, 25 x 4 = 100, and you getting 9X, so it is doing its job. &lt;/p&gt;
&lt;p&gt;Next, I would look at long running query, the one that stuck in the executing queue for so long and force the request queue to jam up. Take a look at the time taken field in the log file, use log parser to help. &lt;br /&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;---Ch02Top10WebRequests.sql--- &lt;br /&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;SELECT &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;TOP 10 &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;STRCAT(EXTRACT_PATH(cs-uri-stem),&amp;#39;/&amp;#39;) AS RequestPath, &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;EXTRACT_FILENAME(cs-uri-stem) AS RequestedFile, &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;COUNT(*) AS Hits, &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;MAX(time-taken) AS MaxTime, &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;AVG(time-taken) AS AvgTime, &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;AVG(sc-bytes) AS AvgBytesSent &lt;br /&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;FROM %source% TO %destination% &lt;br /&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;GROUP BY cs-uri-stem &lt;br /&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;ORDER BY MaxTime, TotalHits DESC&lt;br /&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;---Ch02Top10WebRequests.sql--- &lt;/font&gt;
&lt;p&gt;
&lt;p&gt;Damn... the IIS Insider archive screwed up, the Sep 2006 was missing. that was the last IIS insider column published. sigh.&amp;nbsp; Run the above via &lt;br /&gt;&lt;/p&gt;&lt;font face="Courier New"&gt;C:\LogParser\Samples&amp;gt;Logparser.exe file:Ch02Top10WebRequests.sql?source=”&amp;lt;//localhost/w3svc/1&amp;gt;”&lt;/font&gt; 
&lt;p class="Code" style="MARGIN:2pt 1.25in 2pt 0in;"&gt;&lt;font face="Courier New"&gt;+destination=”Top10WebRequests.txt” -o:NAT&lt;/font&gt;&lt;/p&gt;
&lt;p class="Code" style="MARGIN:2pt 1.25in 2pt 0in;"&gt;&lt;font face="Courier New"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="Code" style="MARGIN:2pt 1.25in 2pt 0in;"&gt;&lt;font face="Courier New"&gt;check if you have high process time request, look inside the scripts and do time-stamping or each function or data call, etc.&lt;br /&gt;&lt;br /&gt;next, you want wan to try iis debugdiag to see if it capture more valuable info to help you identify what&amp;#39;s wrong.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1879296.aspx</link><pubDate>Mon, 15 Sep 2008 01:03:28 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1879296</guid><dc:creator>lkevinl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1879296.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1879296</wfw:commentRss><description>&lt;p&gt;dear god man...&amp;nbsp; what a horrendous day....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I read an article about AspProcessorThreadMax in IIS 6.0.&amp;nbsp; It menation about increasing the number of worker threads from the default of 25 to 50.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&lt;a title="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d4ed262f-11d0-4a87-b15d-57a8c800539e.mspx?mfr=true" href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d4ed262f-11d0-4a87-b15d-57a8c800539e.mspx?mfr=true"&gt;http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d4ed262f-11d0-4a87-b15d-57a8c800539e.mspx?mfr=true&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This sounds like it could be related to what I&amp;#39;m seeing.&amp;nbsp; The CPU usage is not maxing out, there is free RAM available, yet the server is very unresponsive.&amp;nbsp; I have seen some times where the request queue was high and the requests excuting was low.&amp;nbsp; Doesn&amp;#39;t this mean that IIS simply can&amp;#39;t catch up?&amp;nbsp; Even the numbers above for Active Server Pages show that.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve bumped the AspProcessorThreadMax to 50 but my traffic has died down right now.&amp;nbsp; This is horrible.&amp;nbsp; Processing power to spare and I really don&amp;#39;t know where things were getting choked. At least on my old server, it was clear that the CPU was the limiting factor.&lt;/p&gt;
&lt;p&gt;Any thoughts?&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1879284.aspx</link><pubDate>Sun, 14 Sep 2008 16:45:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1879284</guid><dc:creator>lkevinl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1879284.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1879284</wfw:commentRss><description>&lt;p&gt;Clearly I&amp;#39;m not benefitting from the availability of the Quad Core Xeon and splitting up the processes helps in this case.&amp;nbsp; But I&amp;#39;m not sure why this is an issue.&amp;nbsp; Should the one pocess just use more of the resources?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here are some numbers:&lt;/p&gt;
&lt;p&gt;Busy w3wp.exe process - 227MB mem usage, 283MB peak mem usage.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Perfmon numbers: &lt;/p&gt;
&lt;p&gt;ASP Server Pages - Requests Executing Avg 91, Max 98 duration 1:40, Requests Queued Avg 408, Max 508, Request Rejected 0, Request/sec Avg 28, Max 152, Sessions Current 2319, Max 2339&lt;/p&gt;
&lt;p&gt;Memory - Pages/sec Avg 1.1, Max 41.966&lt;/p&gt;
&lt;p&gt;Physical Disk Total - Avg Disk Queue Length&amp;nbsp;Avg 104, Max 294&lt;/p&gt;
&lt;p&gt;Processor Total - % Processor Time Total - Avg 11%, Max 66%&lt;/p&gt;
&lt;p&gt;SQL Server:Database -&amp;nbsp;Active Transactions Avg 5, Max 9, Transactions/sec Avg 36, Max 170&lt;/p&gt;
&lt;p&gt;SQL Server:General&amp;nbsp;Stats&amp;nbsp;- User Connections Avg 104, Max 107&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1879281.aspx</link><pubDate>Sun, 14 Sep 2008 16:08:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1879281</guid><dc:creator>lkevinl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1879281.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1879281</wfw:commentRss><description>&lt;p&gt;OK, I can say definitively that this problem seems to be with IIS.&amp;nbsp; Both the localhost AND the www2 subdomain perform nicely while the www subdomain is very unresponsive to requests for the exact same page.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I created another website in IIS for the www2 subdomain pointing to the exact same directory that the default www site points to and created it&amp;#39;s own Application Pool.&amp;nbsp; This way, I can test to see if it is IIS related only.&amp;nbsp; Both of these are still pulling data from the same database and any disk I/O related issues will be shared since they are on the same box.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;So one IIS process is slow and the other is not which seems to point to IIS getting bogged down despite having plenty of resources.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any ideas?&amp;nbsp; What can I check??&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1879280.aspx</link><pubDate>Sun, 14 Sep 2008 15:59:24 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1879280</guid><dc:creator>lkevinl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1879280.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1879280</wfw:commentRss><description>&lt;p&gt;OK...&amp;nbsp; I&amp;#39;m monitoring the busy traffic now.&amp;nbsp; I have one browser with my site at the standard subdomain www, another browser at the subdomain www2 which should now get it&amp;#39;s own IIS process, and a third browser which is opened to localhost with a copy of the website on it but connecting to the same, busy remote&amp;nbsp;server.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This should show whether a different IIS process is as slow as the busy process and whether or not the slowdowns are coming from IIS or SQL Server.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I see slowness and so far, perfmon looks OK... I hope I&amp;#39;m tracking the right stats.&amp;nbsp; I&amp;#39;ll see how things going with these browser tests.&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1878965.aspx</link><pubDate>Wed, 10 Sep 2008 13:05:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878965</guid><dc:creator>Rovastar</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878965.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1878965</wfw:commentRss><description>&lt;p&gt;Maybe it is not the database but worth checking.&lt;/p&gt;&lt;p&gt;Nothing in the http error log? C:\WINDOWS\system32\LogFiles\HTTPERR&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That is processing http requests before getting to IIS log files.&lt;/p&gt;&lt;p&gt;Here is a link where it explain about the TCP/IP connection limits in Windows 2003&lt;br /&gt;&lt;/p&gt;&lt;p&gt;http://forums.iis.net/p/1149707/1871069.aspx#1871069 &lt;/p&gt;&lt;p&gt;See my post at the bottom - it is (5,000-1,024 nearly 4,000) maximum TCP connections on Windows 2003 &lt;/p&gt;&lt;p&gt;And see here&lt;/p&gt;&lt;p&gt;http://blogs.msdn.com/david.wang/archive/2006/04/12/HOWTO-Maximize-the-Number-of-Concurrent-Connections-to-IIS6.aspx&lt;/p&gt;&lt;p&gt;I cannot remember what http status/error message you get but look for anything not a success and investigate that (so any 4xx or 5xx errors in that time)&lt;/p&gt;&lt;p&gt;When having a lot of concurrent connections. &lt;/p&gt;&lt;p&gt;Also use perfmon to see how many concurrent connections you have and use the max counter value as well this will tell you the max amout you have had since last reboot.&lt;/p&gt;&lt;p&gt;I always get a little concern when people have say 3,000+ connections on a single box there are a lot of others things to consider and more loops to jump through to get a smooth running system - hence why I (and others) recommend additional servers. ALthough WIndows/IIS can cope with more you have to tweak it some.&lt;/p&gt;&lt;p&gt;I am not saying that this is your problem but you should look at this especially as normally websites increase in traffic/concurrent connections over time and the higher numbers means more potential problems if you are not used to those sort of environments. Ask yourself/your clients is it better to spend money now on new kit/infrastructure or risk have it fall over and then try and fix problems when you are really busy/successful. A downed website is not good for business.&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1878921.aspx</link><pubDate>Tue, 09 Sep 2008 22:27:08 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878921</guid><dc:creator>lkevinl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878921.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1878921</wfw:commentRss><description>&lt;p&gt;In reply to Rovastar:&lt;/p&gt;
&lt;p&gt;Hmmm... I read articles about resource contention which made using several worker processes sound appealing, but I can&amp;#39;t use web gardens anyway since this is Classic ASP... I found out the hard way!&lt;/p&gt;
&lt;p&gt;It is just slow.&amp;nbsp; Slow means several seconds, up to 10 seconds or more for a simple ASP page.&amp;nbsp; I have one page where I show a flash &amp;quot;Processing&amp;quot; animation and then redirect to the actual page content.&amp;nbsp; The page with the flash on it is very simple.&amp;nbsp; I actually had a 10 second pause getting to that page rather than the actual page that had heavier processing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The SQL Server has tables, stored procedures, views.&amp;nbsp; During these updates, some stored procedures are running, some using table variables which consume memory.&amp;nbsp; I actually wasn&amp;#39;t so surprised by the memory consumption of SQL Server as I was by IIS.&amp;nbsp; IIS had well over 200MB.&amp;nbsp; On the old server, I never saw it get over 150MB.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Great suggestion about checking the SQL querys during these busy times.&amp;nbsp; I didn&amp;#39;t do it while it was happening because at the time, it really didn&amp;#39;t seem like SQL was the bottle neck based on my test using the dev box running IIS and the same web site connecting to the busy box&amp;#39;s SQL Server.&amp;nbsp; Regardless, I&amp;#39;ll give this a try.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Regarding the Mail Server, I was concerned about it, but it really wasn&amp;#39;t taking up much of the CPU cycles.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I need to check the IIS logs, another good suggestion.&amp;nbsp; I personally didn&amp;#39;t see any Server Busy error pages but that doesn&amp;#39;t mean other users didn&amp;#39;t.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;How will I know if I&amp;#39;ve reached the TCP connection limit?&amp;nbsp; The HTTP status error messages will appear in the system event log or in the IIS logs?&amp;nbsp; Where do I adjust the connection limit?&amp;nbsp; Is this a good idea?&lt;/p&gt;
&lt;p&gt;Did see anything else in the event logs.&amp;nbsp; I&amp;#39;m looking through the IIS logs now.&amp;nbsp; If I find anything I&amp;#39;ll post.&amp;nbsp; Thanks for the tips!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1878917.aspx</link><pubDate>Tue, 09 Sep 2008 22:04:41 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878917</guid><dc:creator>lkevinl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878917.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1878917</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;tomkmvp:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;What does the application do?&amp;nbsp; Are you following good ASP coding practices (i.e. not putting db objects into session vars)?&amp;nbsp; Any chance you could offload SQl to another box, at least for testing?&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Well, the application is a website... I call it an application because that&amp;#39;s the way I think of it.&amp;nbsp; I started coding it years ago and have hit most of the poor coding practice bumps and&amp;nbsp;made corrections.&amp;nbsp; No db objects in session vars, minimal use of session vars except to maintain&amp;nbsp;a few&amp;nbsp;user state variables consisting of integer values or short strings.&amp;nbsp; I have clean-up code that runs at the end of every page to close DB connections and set record sets to nothing, etc.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t easily move SQL to another box but what I can do and tried to do a bit of during the heavy traffic time was connect my dev machine to the SQL Server on the busy box&amp;nbsp;using the IIS and the copy of the website on the dev box.&amp;nbsp; I need to do some more testing during the next rush, but I don&amp;#39;t believe I saw slow downs on the dev box which means I had a lightly loaded IIS paired with a heavily loaded SQL Server 2000 which seemed to be OK.&amp;nbsp; I&amp;#39;m going to try this config during the next big rush.&lt;/p&gt;
&lt;p&gt;There is&amp;nbsp;some pretty heavy disk activity going on.&amp;nbsp; I have some pages with&amp;nbsp;active content that updates periodically.&amp;nbsp; To enhance performance, when and update&amp;nbsp;occurs, I redraw the page and store the content to disk using a file system object.&amp;nbsp;&amp;nbsp;During the time inbetween updates, I&amp;nbsp;just read from the disk file using a file system object and response.write instead of the other processing that would normally do to generate the page.&amp;nbsp; Basically, I wrote a custom disk caching system for a couple of heavily hit pages on the site.&amp;nbsp; These pages can be unique among groups of users, so I can have a&amp;nbsp;several thousands of these pages being read from disk or being&amp;nbsp;written during&amp;nbsp;updates.&amp;nbsp; This never was an issue on the old server.&amp;nbsp; I have the ability to turn this feature off which would cause these pages to always be generated dynamically.&amp;nbsp; This, in theory, should make the disk&amp;nbsp;I/O go&amp;nbsp;way down and the CPU usage go&amp;nbsp;up, by how much, I don&amp;#39;t know.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With this upgraded hardware&amp;nbsp;maybe the benefit of using the disk on the old system is now outweighed by the power of the processor in the new system meaning that now the Disk I/O is the bottleneck where on the old system, the CPU was.&amp;nbsp; Hmmmm.&amp;nbsp; This is very easy for me to test by switching a flag.&amp;nbsp; I&amp;#39;ll definitely try this.&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1878873.aspx</link><pubDate>Tue, 09 Sep 2008 13:39:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878873</guid><dc:creator>Rovastar</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878873.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1878873</wfw:commentRss><description>&lt;p&gt;First off don&amp;#39;t use web gardens. 99.99% of the time there is no need for them. Really they are only good for a short term fix for certain coding issues.&lt;/p&gt;&lt;p&gt;Is it just slow?&lt;/p&gt;&lt;p&gt;How slow is &amp;#39;slow&amp;#39;? &lt;/p&gt;&lt;p&gt;The memory consumption of SQL looks high what is it doing there?&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Do a trace on your SQL server box and see if there is a bottleneck there. &lt;/p&gt;&lt;p&gt;Run performance stats on the SQL server look out for locks, latches, etc. Compare this to your baseline stats for when the server was last know to be working well. What has changed?&lt;/p&gt;&lt;p&gt;If you are getting trafic like 3000+ concurrent users then I would look at least tiering your setup - so have your SQL on another box. &lt;/p&gt;&lt;p&gt;When it is slow can you perform an typical SQL query like in your app - compare the speed peak and off peak.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;But depending on your setup it could well be your mail server (although I would expect to see an increase in your CPU) I had to move mail of one of our budget mass hosters to another box as this was affecting the websites. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Do you get any errors at all in your IIS logs in these busy times? &lt;/p&gt;&lt;p&gt;It could be that you rare running out of TCP/IP connections. Maybe there are other factors like you mail, etc&amp;nbsp; eating up all those TCP connections. I think Windows 2003 has 6000 (or is it 8,000) by default but that is total connections for all apps not just the obvious ones in IIS. If it is this you will see server busy type HTTP staus error messages.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Also related to this do you have anything in the http sys error log?&lt;/p&gt;&lt;p&gt;It could be asp as otehr have said look out for queues, etc there.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1878863.aspx</link><pubDate>Tue, 09 Sep 2008 12:26:35 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878863</guid><dc:creator>tomkmvp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878863.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1878863</wfw:commentRss><description>&lt;p&gt;What does the application do?&amp;nbsp; Are you following good ASP coding practices (i.e. not putting db objects into session vars)?&amp;nbsp; Any chance you could offload SQl to another box, at least for testing?&lt;/p&gt;</description></item><item><title>Re: IIS 6.0 ASP application bogs down despite free CPU &amp; free memory</title><link>http://forums.iis.net/thread/1878841.aspx</link><pubDate>Tue, 09 Sep 2008 08:52:10 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878841</guid><dc:creator>qbernard</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878841.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1878841</wfw:commentRss><description>&lt;p&gt;Looks like hardware bottlenecks to me, can you do some performance analysis to look at ASP - request executing, in queue, etc.&lt;/p&gt;
&lt;p&gt;NLB is a good choice for you, say move out the SQL, then have 2 nodes NLB of IIS infront, with sticky session, no need to worry about the client sesion running around the two nodes, it will stick until the session end / expired.&lt;/p&gt;</description></item></channel></rss>