public class MemoryMonitor
extends java.lang.Thread
| Constructor and Description |
|---|
MemoryMonitor()
Initializes the monitor and checks if the active JVM requires explicit GC to release unused heap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Wakes every 2 minutes (or on demand) and triggers GC until free memory
ratios meet target thresholds, lowering targets after 6 failed passes.
|
void |
start()
Starts the compaction daemon if enabled for this JVM.
|
void |
suggestGC()
Triggers an immediate GC run: delegates to SPU when idle, delegates to G1FootprintHelper if active, or wakes this daemon.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yieldpublic MemoryMonitor()
public void suggestGC()
public void start()
start in class java.lang.Threadpublic void run()
run in interface java.lang.Runnablerun in class java.lang.ThreadCopyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.