@Peter 32 bit ram size is 4GB. So i think u ... On a 64-bit JVM, the limit for 32-bit references is 32 GB.
stackoverflow.com