0

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?

Kevin
  • 169
  • 1
  • 7
  • 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: http://stackoverflow.com/questions/94948/restarting-coldfusion-mail-queue – Ben Doom Jun 16 '10 at 21:24

1 Answers1

2

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.

Ben Doom
  • 684
  • 3
  • 6