#include <VMRSSLimit.h>


Kills your application if it uses too much virtual memory, after calling the (optional) callback function
Definition at line 57 of file VMRSSLimit.h.
Public Member Functions | |
| VMRSSLimit (double maxRSS_MB, void(*callbackFnc)(double)) | |
| void | expire () |
Static Public Member Functions | |
| static void | runVMRSSLimit (double maxRSS_MB, void(*callbackFnc)(double)) |
| Start the CPU load and usage monitor with max in MB, optional callback function. | |
| static void | stopVMRSSLimit () |
| stops the limiter | |
| static double | getRSS () |
| return the latest virtual memory size | |
Static Public Attributes | |
| static const uint64_t | DEFAULT_FREQUENCY = 5*1000*1000 |
| default limiter frequency | |
| VMRSSLimit::VMRSSLimit | ( | double | maxRSS_MB, | |
| void(*)(double) | callbackFnc | |||
| ) |
Definition at line 63 of file VMRSSLimit.cc.
References ADD_SELECTORS, and maceLog.
Referenced by runVMRSSLimit().
| void VMRSSLimit::expire | ( | ) | [virtual] |
implemented by each timer subclass with the action to take when the timer fires
Implements TimerHandler.
Definition at line 82 of file VMRSSLimit.cc.
References ABORT, ADD_SELECTORS, maceError, maceLog, and TimerHandler::schedule().
1.5.5