Vassal heap error

I am trying to load the campaign set up for the TSWW Barbarossa. I set my heap size at min: 256 and max:4096. When I click on the module it says that my heap size is more than my physical memory on my computer. I have 8 GB of RAM. The vassal module will launch and when I try to load the campaign set up file i get an error message saying that vassal has run out of memory and will require a bigger heap file. I am not sure what to do.

Ron

Thus spake Ronster:

I am trying to load the campaign set up for the TSWW Barbarossa. I set
my heap size at min: 256 and max:4096. When I click on the module it
says that my heap size is more than my physical memory on my computer.
I have 8 GB of RAM. The vassal module will launch and when I try to
load the campaign set up file i get an error message saying that vassal
has run out of memory and will require a bigger heap file. I am not
sure what to do.

Java requires a contiguous heap. What’s it’s telling you is that you
don’t have 4BG of contiguous memory available, which is quite possible
even if you have 8GB RAM in total and very little running. Try reducing
the max heap somewhat.


J.

I reduced it down to min 256 and max 2096 and still I get the same error. Would I need to set the heap size even smaller? Thanks for the quick response.

Ron

Thus spake Ronster:

I reduced it down to min 256 and max 2096 and still I get the same
error. Would I need to set the heap size even smaller? Thanks for the
quick response.

Try 1024. It’s an unusual module that actually needs a max heap even
that size.


J.

The campaign set up opened up on a heap size of 1024. However the file is very sluggish. I can barely move across the map. It takes about 2-3 minutes just to scroll.

Ron

I might be able to beat that. I’m getting the same error, but then following it with a “Memory too low” error message. So, the maximum heap size is both too low and too high at the same time. this only happens when I try to lead the World in Flames Final Edition files. Version 3.2.17

Thus spake SNicewarner:

I might be able to beat that. I’m getting the same error, but then
following it with a “Memory too low” error message. So, the maximum heap
size is both too low and too high at the same time. this only happens
when I try to lead the World in Flames Final Edition files. Version
3.2.17

Java’s heap has to be contiguous in memory. If you set a max heap which
is larger than any contiguous block of free memory on your system, Java
can’t start. When that happens, there’s a fallback max heap we’ve set
so that you can at least get into the module to reset the max heap to
a different value.

That’s why you’re seeing what you’re seeing.

When reporting a problem like this, it’s helpful to say what module
you’re trying to load, to what you have your max heap set, and how
much RAM your machine has.


J.

Try something larger than 1024, in that case.

It may be that your machine simply doesn’t have enough RAM for that module to run well.