public class OffHeapHelper extends Object
| Constructor and Description |
|---|
OffHeapHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeAllOffHeapRegions()
Closes all off-heap regions in the cache and waits for off-heap memory to be empty (closing
a region asynchronously releases the off-heap memory it held, so we want to wait
for that to finish).
|
static void |
closeAllRegions()
Closes all offheap regions in the cache and waits for off-heap memory to be empty (closing
a region asynchronously releases the off-heap memory it held, so we want to wait
for that to finish).
|
static void |
dumpOffHeapOrphans()
use internal product calls to determine who the orphans are and log them
|
static Set<com.gemstone.gemfire.cache.Region<?,?>> |
getAllRegions()
Return a Set of all regions defined in this member.
|
static com.gemstone.gemfire.internal.offheap.OffHeapMemoryStats |
getOffHeapMemoryStats()
Return the off-heap memory stats object for this member
|
static boolean |
isOffHeapMemoryConfigured()
Determines if this member has off-heap memory currently allocated.
|
static void |
verifyOffHeapMemoryConsistency(boolean checkRefCounts)
Do consistency checks on off-heap memory.
|
static void |
verifyOffHeapMemoryConsistencyOnce() |
static void |
verifyRegionsEnabledWithOffHeap(List<String> regionNames)
Verify that the given list of full region path names have off-heap memory enabled
|
static void |
waitForGlobalOffHeapSilence()
Wait for 30 seconds of off-heap silence throughout the system.
|
static void |
waitForGlobalOffHeapSilence(int secondsOfSilence)
Wait for off-heap memory to be stable and silent across the system for the given number of seconds.
|
static void |
waitForOffHeapSilence()
Wait for 30 seconds of off-heap silence in this member.
|
static void |
waitForOffHeapSilence(int secondsOfSilence)
Wait for off-heap memory to be stable and silent for the given number of seconds.
|
static void |
waitForWanQueuesToDrain()
Wait for all async event queues (including wan queues) in this member to drain.
|
public static void verifyOffHeapMemoryConsistency(boolean checkRefCounts)
checkRefCounts - If true, then check that all refCounts are exactly 1. If false skip the
refCount check. During validation, if any remote member is doing gets on data that lives
in this member, the refCounts will be changing.public static void waitForGlobalOffHeapSilence()
public static void waitForGlobalOffHeapSilence(int secondsOfSilence)
secondsOfSilence - The number of seconds off-heap memory must be stable for before returning.public static void waitForOffHeapSilence()
public static void waitForOffHeapSilence(int secondsOfSilence)
secondsOfSilence - The number of seconds off-heap memory must be stable for before returning.public static void dumpOffHeapOrphans()
public static void closeAllRegions()
public static void closeAllOffHeapRegions()
public static Set<com.gemstone.gemfire.cache.Region<?,?>> getAllRegions()
public static void verifyRegionsEnabledWithOffHeap(List<String> regionNames)
regionNames - A List of full region path names, or null of all regions are
expected to have off-heap enabled.public static boolean isOffHeapMemoryConfigured()
public static void verifyOffHeapMemoryConsistencyOnce()
public static com.gemstone.gemfire.internal.offheap.OffHeapMemoryStats getOffHeapMemoryStats()
public static void waitForWanQueuesToDrain()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.