Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Automated re-boot of a server/IIS?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

AnonJr
Moderator

United States
5768 Posts

Posted - 21 May 2007 :  09:57:52  Show Profile  Visit AnonJr's Homepage
We've been having some issues with one of our internal web servers. Actually, its an issue with the JET engine and the load we are asking it to handle, but since that's somewhat out of my hands I'm focusing on what I can do.

We've found that under peak load the JET engine locks up and any attempt to connect to an Access database throws an error adErrUnspecified - a.k.a the least helpful of all messages.

The only solution we've found so far is to re-boot the server. I've added some checks in the code to test for adErrUnspecified and redirect them to a generic error page if it occurs.

My question is this: is there is a way to either shut down and restart IIS (Don't know if that will be enough or not), or trigger a re-boot of the server if the error is detected? Since I'm 8 to 5 (well, theoretically), but there are staff that need the site 24/7, I want to avoid issues like last night where the site locked up and for 12 hours was unavailable.

Even if it is possible, I may not be able to implement it, but I'd like the option to be available.

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 21 May 2007 :  10:12:16  Show Profile  Send ruirib a Yahoo! Message
Haven't tried it, but something like this should work:

Set wsh = CreateObject("WScript.Shell")
Response.Write wsh.run("cmd /c iisreset /RESTART")
set wsh=nothing


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 21 May 2007 :  11:30:12  Show Profile  Visit AnonJr's Homepage
Hmm. I'll have to run that by the server admin.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07