org.mmbase.applications.crontab
Class MemoryWarner
java.lang.Object
org.mmbase.applications.crontab.AbstractCronJob
org.mmbase.applications.crontab.MemoryWarner
- All Implemented Interfaces:
- Runnable, CronJob
public class MemoryWarner
- extends AbstractCronJob
Performs Runtime.gc(), and if afterwards the used memory is above a certain fraction of the
maximally used memory, mail a warning to someone. The idea is that that someone can then take
action, like exploring what is the matter, or clearing some caches.
You need mmbase-email.jar installed for this.
<property name="memory">*/10 * * * *|org.mmbase.applications.crontab.MemoryWarner||0.8;Michiel.Meeuwissen@omroep.nl</property>
- Version:
- $Id: MemoryWarner.java 42079 2010-05-03 09:06:58Z michiel $
- Author:
- Michiel Meeuwissen
|
Method Summary |
void |
run()
Implement this. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryWarner
public MemoryWarner()
run
public final void run()
- Description copied from class:
AbstractCronJob
- Implement this.
- Specified by:
run in interface Runnable- Specified by:
run in interface CronJob- Specified by:
run in class AbstractCronJob
MMBase 2.0-SNAPSHOT - null