public static long getDirectMemoryTotalCapacity() {
        try {
            Long value = (Long)mbeans.getAttribute(directPool, "TotalCapacity");
            return value == null ? -1 : value;
        } catch (JMException ex) {
            Logger.getLogger(MemoryUtils.class.getName())
                    .log(Level.SEVERE, "Error retrieving TotalCapacity", ex);
            return -1;
        }
    }
@return Should return the total direct memory available, result seem off
see post http://jmonkeyengine.org/forum/topic/monitor-direct-memory-usage-in-your-app/#post-205999
jme3-core/src/main/java/com/jme3/util/MemoryUtils.java