Jump to content
Kyu

Managing RAM usage of PokeMMO in Windows

Recommended Posts

Kyu   

PokeMMO provides a configuration file which allows users to manage their client's RAM usage. This is located in the base directory of PokeMMO and is named PokeMMO.l4j.ini
 
This configuration file comes with sensible defaults, limiting RAM allocation to 512MB (with a little bit extra required for Java's overhead):

-Xms256M
-Xmx512M

Most people will have their game work fine with these defaults, but there are some situations where you may want to change them:

  • You're using a very large amount of client mods and the client is crashing with an 'Out of Memory' error.
  • The game is crashing with an 'Out of Memory' error after extended play sessions due to memory leaks we will probably write and then not notice for a year.
  • You're using a low RAM computer (<=2GB) and you want to prevent disk thrashing when using Chrome with 30 tabs open at the same time as PokeMMO, while on Vista.
  • You feel like giving PokeMMO 3.5GB of RAM so that you can try to convince yourself buying 4x 8GB sticks on sale was a good idea and not a waste of money.

Regardless of your motivations, the recommended guidelines for changing the settings are as follows:

 

If you are decreasing the amount of RAM used:

  • Change the number in -Xmx to something smaller:
    • A good number you can reduce this to is 384.
    • A smaller number is 256.
    • An even smaller number is 128. Change the numbers in -Xms to the same thing if doing this.

We don't recommend you reduce this number below 384. 256 and below will cause issues if you are using FireRed+Emerald+HG/SS+sprite mods.

 

An example of how your file will look after reducing RAM allocation is:

-Xms256M
-Xmx384M

Note that the contents of the file are case-sensitive. Your settings will not apply unless they match the case in the original file.

 

 

If you are increasing the amount of RAM used:

 

  • Change the number in -Xmx to something bigger:
    • The default is 512. This allows for Emerald+FireRed+HG/SS+Lots of client mods.
    • A big number is 768.
    • A bigger number is 1024.
    • An unnecessarily large number is 3584.

 

We don't recommend you increase this number beyond 512 unless your client is crashing with an 'Out of Memory' error.

 

An example of how your file will look after increasing RAM allocation is:

-Xms1024M
-Xmx3584M

Note that the contents of the file are case-sensitive. Your settings will not apply unless they match the case in the original file.

Share this post


Link to post

×

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.