Question

I am getting Out of memory error when trying to run MasterTestSuite in my eclipse enviroment

I am using

-Xms256m -Xmx650m -XX:MaxPermSize=1024m

I could increase my XMX even more, but if I increase it more than 700m, I get Could not reserve enough space for object heap

So looks like, in my environment, the maximum amount of heap space that the program is able to allocate is 650m.

But when I look at my C drive, I have about 30gb free space left.

Is there something I need to do so that I can increase my XMX to say 1024m and not get the COuld not reserve enough space for object heap error?

Was it helpful?

Solution

Assuming your on Windows, what's the settings for the size of your Virtual Memory (Control Panel -- System -- Advanced system settings -- Performance -- Advanced tab -- Virtual memory)? Increase that some more so that Windows can swap from RAM to your page file. (Changing it will require a reboot.) That will slow things down a bit, as the swap file (on disk) is much slower than RAM.

OTHER TIPS

Maybe I'm misunderstanding something, but the heap is being stored in RAM, not on your hard disk, unless you're using some weird sort of virtual memory.

(edit) I realize that answer isn't super helpful. If you are trying to use virtual memory, you should check your operating system and verify how much disk space is being set aside for virtual memory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top