Forum Moderators: open

Message Too Old, No Replies

Server 500 error testing

memory leak, 500 server error, too many connection strings

         

Roxster

6:12 pm on Dec 14, 2008 (gmt 0)

10+ Year Member



How do I go about testing my website for memory leak and server 500 errors. I have several in my logs, but they are spread across many pages. I recall an error on the site which causes the website to freeze giving a 500 server error stating that too many connection strings where left open. How do I test where the programming error originated?

Ocean10000

2:56 pm on Dec 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That error usually is because you are not closing the database connection after you are done with the database request. And they do not get recycled quick enough for the amount of traffic you are currently getting.

Are you using Asp Classic or Asp.Net? I see this happen more often in Asp Classic then Asp.net, but it possible in both.

pageoneresults

3:03 pm on Dec 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How do I test where the programming error originated?

Wouldn't that be nirvana? ;)

Actually, we've done that. We have a 500 Error reporting utility (our own) that records every single 500 and sends emails when they occur. The emails are usually a "complete dump" of all information required to track and correct the error. Some of them are rather difficult to backtrack but we do get to all of them.

500s = Kiss of Death

Too many Classic ASP sites running out there not knowing if their apps are generating 500 errors. Most visitors will not alert you to the issues and some may be totally invisible, seamless. But, the function on the backend failed. And who knows, it may have just caused 100% CPU use and used 1 GIG of RAM. Ask me, I know. As early as this morning. Darn typos! :)

P.S. Adding a 400/500 Error reporting utility is the best thing a Windows Website Administrator can do. You'd be surprised at the number of 500 Errors that you'll see initially. Oh sure, everything seems to be running smoothly. But, deep down inside, there are ghosts in the machine.