The problem may be inherent in the available memory for Java. Increase the amount of memory in the JVM, it is possible by the command line, using the given options:
- -Xms<size> set initial Java heap size
- -Xmx<size> set maximum Java heap size
- -Xss<size> set java thread stack size
Maximum memory size for 32-bit JVM is 4GB, so to increase the memory you need to use the 64-bit version of the JVM, e.g. java -Xmx6144M -d64. Flag -d64 is needed to running JVM in 64-bit mode.