I start my server using the command "java -xms 1280m -xmx 1280m". On Linux machines, this works fine, and I see that the process uses almost the same amount of memory. However, on Windows machines, I see that the java process uses significantly less than 1280 m - about 500-600 m. I collected this data from the Windows task manager, if that matters. Both Windows machines that I checked are Windows 2003 servers and have 2 GB and 3 GB of RAM, respectively. I always thought that specifying the initial heap size on -xms would force java to use at least most of the memory. Am I mistaken? Or is it a feature with java on Windows?
source
share