How to Increase Memory for TripleA
-
Set maximum RAM
(Valid for TripleA v1.9.0.0.5401+)
It may happen that your TripleA client exits with anOutOfMemoryError, even if your PC has more RAM to offer.<br>
In this case you might want to increase the usable amount of RAM for your installation of TripleA.<br>
There are multiple ways to achieve this, and they all depend on the way your version of TripleA has been installed on your computer.<br>
<amount>is the amount of memory you want to assign to TripleA.<br>
1means 1 byte,1K1024 bytes,1M1024 kilobytes,1G1024 megabytes and so on.<br>
The default value TripleA uses is2G.<br><br>- Installer
- Temporary:
- Open the commandline/terminal
- Enter
/path/to/triplea -J-Xmx<amount>
- Permanent:
- Go to your TripleA installation directory.
- Open the
TripleA.vmoptionsfile. - Change the
-Xmx<amount>to an appropriate value - Start TripleA
- Temporary:
- Jar file
- Temporary:
- Open the commandline/terminal
- Enter
java -Xmx<amount> -jar /path/to/the/triplea.jar
- Permanent:
- On Windows
- Create a text file called
something.bat - Insert
java -Xmx<amount> -jar /path/to/the/triplea.jarand save the file. - Start this batch file instead of the triplea jar in the future.
- Create a text file called
- On Windows
- On Unix (macOS/Linux)
- Create a text file called
something - Insert
java -Xmx<amount> -jar /path/to/the/triplea.jarand save the file. - Mark the file as executable using
chmod +x /path/to/your/file - Start this script file instead of the triplea jar in the future.
- Create a text file called
- Temporary:
- Installer
-
Thanks for the info.
I just wanted to add 1 small point and correct me if I'm wrong.
That the 2 methods listed are specific to a given version of Triple A. Meaning if you upgrade your Triple A, you will need to repeat the steps if the path is different and or if a new TripleA.vmoptions file is added.
Also where does the .bat file have to be located?
-
@general_zod I believe that is correct. I think we'd need to not overwrite the vmoptions file when a user chooses the upgrade existing installation option in order to not have to reset that every time you upgrade.
-
@lafayette Please update for the new default of 2G (I don't know if any other changes).
-
@Cernel I updated it
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login