public class SpillableMemoryManager
extends java.lang.Object
implements javax.management.NotificationListener
Low memory is defined as more than 50% of the tenured pool being allocated. Spillable objects are tracked using WeakReferences so that the objects can be GCed even though this class has a reference to them.
Modifier and Type | Method and Description |
---|---|
void |
clearSpillables() |
void |
configure(org.apache.hadoop.conf.Configuration conf) |
static SpillableMemoryManager |
getInstance() |
void |
handleNotification(javax.management.Notification n,
java.lang.Object o) |
void |
registerSpillable(Spillable s)
Register a spillable to be tracked.
|
static void |
staticDataCleanup() |
public static void staticDataCleanup()
public static SpillableMemoryManager getInstance()
public void configure(org.apache.hadoop.conf.Configuration conf)
public void handleNotification(javax.management.Notification n, java.lang.Object o)
handleNotification
in interface javax.management.NotificationListener
public void clearSpillables()
public void registerSpillable(Spillable s)
s
- the spillable to track.Copyright © 2007-2017 The Apache Software Foundation