private static double getMaxMemory(Object discard) {
        try {
            return PlatformDependent.maxDirectMemory();
        } catch (Throwable e) {
            LOG.warn("Error in DirectMemoryMonitor task.", e);
        }
        return -1;
    }
User: michaels@netflix.com
Date: 4/29/16
Time: 10:23 AM
zuul-core/src/main/java/com/netflix/zuul/netty/server/DirectMemoryMonitor.java