public final class MemoryUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
logMemoryStatistics()
Logs current heap memory statistics.
|
static void |
startMemoryLogger()
Constructs and starts a memory logger thread with a logging rate of 1000 milliseconds.
|
static void |
startMemoryLogger(long rateInMillis)
Constructs and starts a memory logger thread.
|
static void |
stopMemoryLogger()
Stops the memory logger, if any, started via
startMemoryLogger(long) or
startMemoryLogger(). |
public static void logMemoryStatistics()
Runtimepublic static void startMemoryLogger(long rateInMillis)
rateInMillis - how often memory info should be logged.public static void startMemoryLogger()
public static void stopMemoryLogger()
startMemoryLogger(long) or
startMemoryLogger().Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.