Hello,
In Java, -Xms sets the initial Java heap size, while-Xmx sets the maximum Java heap size.
e.g,
# Start with 128MB of memory, and allow the Java process to use up to 1024MB of memory.
java -Xms128m -Xmx1024m
# Start with 256MB of memory, and allow the Java process to use up to 4G (4096MB) of memory.
java -Xms256m -Xmx4g