In Windows, Tomcat6 restarts the service regularly. First, create the tomcat6 service: service install tomcat6 (1) create a restart script for the service, tomcat_restart.bat @ echo restart tomcat6 service, log to C: \ tomcat_restart.log @ echo 1. stop tomcat6 service @ echo 2. sleep 10 seconds @ echo 3. start tomcat6 service echo --------------------------------------------------------> C: \ tomcat_restart.log echo [% date % time %] Prepare to restart tomcat> C: \ tomcat_restart.log echo [% date % time %] stop the service> C: \ tomcat_restart.log net stop tomcat6> C: \ tomcat_restart.log @ echo wait 10 seconds ping-n 10 127.0.0.1 echo [% date % time %] restart> C: \ tomcat_restart.log net start tomcat6> C: \ tomcat_restart.log echo >>c: \ tomcat_restart.log echo (2) Add to System Task Scheduler control panel-task scheduler-add Task Scheduler, select tomcat_restart.bat