added java_xms safeguards

java_xms value is discarded if:
xms <= 0
xms >xmx
xms is not an integer