java on osx - xmx ignored? <p>i've got two computers running on Mac OS X El Capitan and Ubuntu 16.04 LTS. On both is Java SDK 1.8.0_101 installed.</p> <p>When I try to start an game server on Ubuntu with more memory than available, I get the following output:</p> <pre><code>$ java -Xms200G -Xmx200G -jar craftbukkit.jar nogui Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f9b6e580000, 71582613504, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 71582613504 bytes for committing reserved memory. # An error report file with more information is saved as: # </code></pre> <p>On Mac OS I don't get this error:</p> <pre><code>$ java -Xms200G -Xmx200G -jar craftbukkit.jar nogui Loading libraries, please wait... </code></pre> <p>Both computers have 8GB of memory. I also tried with an other Apple computer - same problem.</p> <p>Is that a bug of java mac version?</p> <p>(Is there a way to force limit the memory usage e.g. to 1GB? -Xmx1G won't work and I wasn't able to find another reason. Not here neither on google)</p> <p>Thank you!</p> <p>Sorry for my bad english...</p>