Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the easiest way to tell IIS7 to restart Coldfusion Server at set time intervals (every 6 hours for example) without paying for something like Service Hawk?

share|improve this question
Why do you need to restart so often? If you're experiencing constant crashes, invest in a tool like FusionReactor or SeeFusion which will give you a lot of insight into what ColdFusion is doing. Tuning the JVM and adjusting your application code will go a long way toward correcting any stability problems you're experiencing. – Justin Scott Jun 14 '10 at 17:29
Not so much crashes as it is eating up memory, even with JVM tweaked. Restarting it helps when the mail spooler hangs up. Trying to do the best we can do on a shared hosting for the time being. – Kevin Jun 14 '10 at 18:17
I had problems with my spooler losing contact with Exchange. There's a solution here that worked for me:… – Ben Doom Jun 16 '10 at 21:24
up vote 2 down vote accepted

Offhand, you could do this with a batch file and Task Scheduler.

The batch file would look something like:

net stop "coldfusion 9 application server"
net start "coldfusion 9 application server"

The exact details will differ from version to version.

You can then schedule this batch file as often as you want/need.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.