Search Tools Links Login

Scaling problem warning about the browser sniffer control

ASP comes with a control named MSWC.BrowserType that can be used to detect the user's browser. In another article I posted, it detailed how to use it. However, if you have a heavy use web site, you need to read this warning.

Original Author: Ian Ippolito (vWorker)

Planet Source Code receives a pretty decent volume of traffic about 6-7 hits/second. When I implemented some code to detect the user's browser using MSWC.BrowserType and copied it to production and interesting thing happened. For about an hour, the site functioned normally. But after an hour or so, the CPU would max out at 100% and the site would accept new connections but wouldn't post back any return content to the users.

When I unplugged the T1s, the CPU still wouldn't go down...telling me that IIS was hosed. This repeated itself for about 2-3 days (site crashing many times...having to reboot to fix) until I put two and two together and removed the MSWC.BrowserType code.

Instantly the site went back to normal. So the lesson I learned is...use this component with care!

For those who are interested, this was done on 2 machines running WLBS and Windows 2000 SP2.

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 97 times




No attachments for this post

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.