How can I go by setting up a scheduled task that will cancel a java console and then start it up again?

I need to restart my wowza service because of some java heap allocating memory error that seems to happen every night.

I tried few options but could not get it right.

link|improve this question
feedback

migrated from stackoverflow.com Jul 11 '10 at 2:41

This question came from our site for professional and enthusiast programmers.

2 Answers

You can use net.exe start/stop to start and stop services, and sc.exe (XP+) if you need to query/change service config etc

link|improve this answer
feedback

Use PsKill to close the application and then start it again, put both instructions in a batch file.

Now create a new event using the wizard and carefully configure it.

Try to run the task manually, check the status of it and also try to check the event log.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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