public class SystemMemoryMonitor extends MonitorBase
Note: Linux will use a great deal of RAM for caching and such when memory is available. Therefore most of the time the free memory will be quite low. But this is OK since the operating system will give up the RAM being used for caching and such if a process needs it. Therefore the allowable free memory should be set to quite a low value.
Constructor and Description |
---|
SystemMemoryMonitor(EmailSender emailSender,
java.lang.String agencyId)
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getOperatingSystemValue(java.lang.String methodName)
Gets an operating system value via reflection.
|
checkAndNotify, getMessage, recipientsGlobal
public SystemMemoryMonitor(EmailSender emailSender, java.lang.String agencyId)
emailSender
- agencyId
- public static java.lang.Object getOperatingSystemValue(java.lang.String methodName)
methodName
- Name of the special internal
com.sun.management.OperatingSystemMXBean method to call