Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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: stackoverflow.com/questions/94948/… –  Ben Doom Jun 16 '10 at 21:24

1 Answer 1

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

 
discard

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.