org.mmbase.applications.crontab
Class MemoryWarner

java.lang.Object
  extended by org.mmbase.applications.crontab.AbstractCronJob
      extended by 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

Field Summary
 
Fields inherited from class org.mmbase.applications.crontab.AbstractCronJob
cronEntry
 
Constructor Summary
MemoryWarner()
           
 
Method Summary
 void run()
          Implement this.
 
Methods inherited from class org.mmbase.applications.crontab.AbstractCronJob
getEntry, init, init, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryWarner

public MemoryWarner()
Method Detail

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