public final class MemoryUtils extends Object
Modifier and Type | Method and Description |
---|---|
static long |
currentEdenMemoryUsageMB() |
static long |
currentOldMemoryUsageMB() |
static long |
currentPermMemoryUsageMB() |
static int |
getTotalPhysicalMemorySizeInMB()
Returns the total amount of physical memory on the current machine in megabytes.
|
static void |
main(String[] args) |
static String |
memPoolNames() |
static long |
peakEdenMemoryUsageMB() |
static long |
peakOldMemoryUsageMB() |
static long |
peakPermMemoryUsageMB() |
static void |
resetPeakUsage() |
public static String memPoolNames()
public static long currentEdenMemoryUsageMB()
public static long currentOldMemoryUsageMB()
public static long currentPermMemoryUsageMB()
public static long peakEdenMemoryUsageMB()
public static long peakOldMemoryUsageMB()
public static long peakPermMemoryUsageMB()
public static void resetPeakUsage()
public static int getTotalPhysicalMemorySizeInMB()
Copyright © 2017 The Apache Software Foundation. All rights reserved.