maxmem for OOM errors

Someone has probably already said it, but just in case

 

Entering BCDEDIT /Set IncreaseUserVa 3072 into a command line might help. Seemed to work for me, but might be my imagination.

This sets mexmem value for Windows 7 in the boot instructions. It might be slightly different for different operation systems.

 

 

2,742 views 2 replies
Reply #1 Top

Elemental crashes with OOM on me when its memory leak gobbles somewhere between 3 and 4 GB of memory.  I have 4 GB of RAM, plus Windows has a swap file that seems to double that for 8 GB total.  It gets about halfway there when boom, OOM!  I know its a memory leak because I have had Task Manager running with the Performance tab open.  One of my CPUs is at full, my memory consumption at around half, when Windows closes the app, those drop to nothing ... that in itself doesn't mean a memory leak, of course, but when I reload Elemental, reload the autosave (I have it set to save every turn thanks to the crashes), and when it has loaded and is running again, I quickly alt+tabbed out and the Performance monitor notes I am down from somewhere around ~3.5 of RAM usage when it OOM-crashed to only ~1.5 GB, even though it has the same game loaded right at the point at when it crashed.

Reply #2 Top

using bcdedit is only half of the fix because Elemental is programmed to only use 2gb of memory. you need to allow the game itself to use the 3072. This also only applies to 32bit operating systems.

 
If you read my post/fix you can find more details.

https://forums.elementalgame.com/393090