This is the java tool documentation for Windows® on Java7. Look for the -Xmx option and go to the garbage collection ergonomics link. That tells you that the initial size is 1÷64 of available memory (or more) and the default maximum ¼ of memory or 1GB whichever is the smaller.