Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jul 11 '10 at 2:41

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

1  
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

2 Answers 2

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

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.