Set max permgen range based on default max permgen size

This will improve permgen for applications with less than 640M of
total memory.

[#58060090]