Added default perm gen and min/max settings for jvm, fixes #2229