public class MemoryObserver extends Object
| Modifier and Type | Field and Description |
|---|---|
static FloatConfOption |
FREE_MEMORY_FRACTION_FOR_GC
For which fraction of free memory will we issue manual gc calls
|
static IntConfOption |
MIN_MS_BETWEEN_FULL_GCS
Minimum milliseconds between two manual gc calls
|
static BooleanConfOption |
USE_MEMORY_OBSERVER
Whether or not to use memory observer
|
| Constructor and Description |
|---|
MemoryObserver(ZooKeeperExt zk,
String zkPath,
GiraphConfiguration conf)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
callGc()
Manually call gc, if enough time from last call has passed
|
public static final BooleanConfOption USE_MEMORY_OBSERVER
public static final FloatConfOption FREE_MEMORY_FRACTION_FOR_GC
public static final IntConfOption MIN_MS_BETWEEN_FULL_GCS
public MemoryObserver(ZooKeeperExt zk, String zkPath, GiraphConfiguration conf)
zk - ZookeeperzkPath - Path on zookeeper for memory observer filesconf - ConfigrationCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.