Show more debugging info: system memory, VM memory and disk space.

This commit is contained in:
akwizgran
2014-04-10 15:46:53 +01:00
parent ab76b4a9e3
commit 0eaf46209c
7 changed files with 91 additions and 28 deletions

View File

@@ -145,6 +145,13 @@ public class BriarService extends RoboService implements EventListener {
}.start();
}
@Override
public void onLowMemory() {
super.onLowMemory();
LOG.warning("Memory is low");
// FIXME: Work out what to do about it
}
public void eventOccurred(Event e) {
if(e instanceof MessageAddedEvent) {
MessageAddedEvent m = (MessageAddedEvent) e;