How can I schedule JVM restarts, shutdowns, thread dumps, or other actions with my Java applications?
The Java Service Wrapper provides the ability to schedule a number of actions with timers.
What if your application is suffering from a memory leak which requires the JVM to be restarted at least once per week? It needs to be restarted during a time when the system is not used, at times when system administrators are home in bed.
Or if your application needs to be taken down for 10 minutes every night to allow external backups to take place?
Or you may simply want to schedule that some more benign action takes place once every 5 minutes.
Many large applications require the ability to run scheduled tasks or perform actions at specific times or at regular intervals. The problem is that different OS platforms each provide their own way of scheduled actions. When the application needs to be able to run across all of those platorms it is often necessary to implement this functionality for each platform individually.