override jvm memory to match requested memory