public double getMaximumMemory() {
            return maximumMemory;
        }
Returns the maximum amount of memory available to Openfire, including used, free and as-of-yet unallocated
memory, in megabytes.

This value is equivalent to the amount of memory available to the Java process as configured with the -Xmx
value.

@return maximum amount of memory available to Openfire, in megabytes.
xmppserver/src/main/java/org/jivesoftware/util/MemoryUsageMonitor.java