Ji Mun
Ji Mun

Reputation: 1830

Want to increase Java Heap Size to 4GB+: Physical Memory 8 GB, JVM 64-bit

I want to run a memory intensive package on a web server.

Current computer's settings are... Windows 7 64 bit 64-bit JVM RAM: 8GB

When I try to run eclipse with -Xms1024m -Xmx2048m -XX:MaxPermSize=256m

I get:

Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.

From posts that I read, it seems like I should be able to use more than 4GB of memory. When I ran the code, I was able to max out the memory at -Xmx1200M and still be able to run the code. But for what I want to accomplish, I need to use more memory. How can I increase the memory size here?


Thank you everyone. The issue was that I was using a 32-bit version of JDK. I was able to run memory at 2GB after switching the JDK to the 64 bit version. Thanks!

Upvotes: 3

Views: 10406

Answers (1)

Ji Mun
Ji Mun

Reputation: 1830

The problem was that I was using a 32-bit version of JDK.

Thank you, and thank you to Mister Smith for pointing out that I should answer it and mark it as solved.

Upvotes: 5

Related Questions