Java applications are only allowed to use a limited amount of memory . This limit is specified during application startup. Java heap space indicates object could not be allocated in the Java heap. With -Xmx you can configure more memory for you JVM. To be sure that you don't leak or waste memory. ex...