use slot memory limit instead of arbitrary default for JVM memory size