Web crash

P

Paul M

Hi
I have an asp contact page which self submits to an email address. The form
works fine but every now and then the website seems to crash for abourt 2
minutes and I can't browse to any of the other pages as though it is
rebooting itself or it is busy doing something
Can poorly coded asp pages cause this to happen even though they work ok
most of the time?

Thanks
Paul M
 
R

Ronx

Yes.

It is possible that the asp script has gone into a loop with no exit,
and will run until the timeout stops it. The timeout is set by default
to 90 seconds. If the loop is resource intensive then it could stop the
site. Check your site logs for errors in the 500 range.
 
M

md Webs Unlimited

Paul,

You'll need to use debunking statements to determine where the code is
looping, if at all.

For example:


myself = "SELECT name,address,address2 FROM customer"
set rs = openRSexecute(mySQL)
do while not rs.eof
response.write "in loop"
response.end
.....
rs.movenext
loop

The
response.write "in loop"
response.end

lets you know that you reached that point in the code.

Note: If the rs.movenext statement where missing it would cause an
indefinite loop.





--
Mike - FrontPage MVP '97 - '02
Expression Tools & Addin
http://www.j-moves.com
http://www.panemanager.com
FrontPage Tools & Addin
http://www.jbots.com
I-Commerce
http://www.candypress.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top