Increasing Memory (Can help with the bot) - MegaMek/megamek GitHub Wiki

Increasing Memory (Can help with the bot)

If you've edited your ini files previously to increase memory to the programs you can keep the value in the Xmx comment. As a general rule try not to allocate more than 25% of system memory to MegaMek (Java) this way. Realistically 4 gigs of memory provides the memory required to improve performance in MegaMek and MekHQ.

The ini files that can be edited are:

  • Megamek - MegaMek.l4j.ini
  • MegaMekLab - MegaMekLab.l4j.ini
  • MekHQ - MekHQ.l4j.ini

image

For systems with 16 Gig

-Xmx4096m


Systems with 32 gig of memory should safely be able to go to

-Xmx8192m