Super User is a question and answer site for computer enthusiasts and power users. 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

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.

share|improve this question

migrated from Jul 11 '10 at 2:41

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

type services.msc in run box, locate service you wish to kill, restart, schedule, etc. and perform your actions. – Josh Campbell Jun 24 '13 at 15:59

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.

share|improve this answer

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .