Given these two commands
A:
$ java -Xms10G -Xmx10G myjavacode input.txt
B:
$ java -Xms5G -Xmx5G myjavacode input.txt
I have two questions:
- Since command A reserves more memory with its parameters, will A run faster than B?
- How do
-Xmxand-Xmsaffect the running process and the output of my program?