org.mmbase.applications.crontab
Class MemoryWarner

java.lang.Object
  extended byorg.mmbase.applications.crontab.AbstractCronJob
      extended byorg.mmbase.applications.crontab.MemoryWarner
All Implemented Interfaces:
CronJob, Runnable

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,v 1.3 2006/06/16 09:14:04 michiel Exp $
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
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 CronJob
Specified by:
run in class AbstractCronJob


MMBase build 1.8.1.20060716