MemoryUtil - removed java.management references. TODO other memory usage checks