CDH-14971: Using jvm.memory.heap.used instead of jvm.memory.heap.max in test to work around an Ubuntu issue