Manage java -Xms and -Xmx.  closes #2