As it is described in many sources I am trying to use java -Xms512m
from the command line in order to set maximum size of heap for java machine to 512 Mb.
But something goes wrong and command line shows the following
And, as I checked directly from the program:
long heapMaxSize = Runtime.getRuntime().maxMemory();
heapMaxSize is equal to 954728448 which is about 1Gb.