public double getUsedMemory() {
            return usedMemory;
        }
Returns the amount of memory currently used by Openfire (memory populated with objects), in megabytes.

@return total amount of memory used by Openfire, in megabytes.
xmppserver/src/main/java/org/jivesoftware/util/MemoryUsageMonitor.java