Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    How to Increase Memory for TripleA

    Player Help
    5
    5
    2332
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LaFayette
      LaFayette Admin last edited by RoiEX

      Set maximum RAM

      (Valid for TripleA v1.9.0.0.5401+)
      It may happen that your TripleA client exits with an OutOfMemoryError, 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>
      1 means 1 byte, 1K 1024 bytes, 1M 1024 kilobytes, 1G 1024 megabytes and so on.<br>
      The default value TripleA uses is 2G.<br><br>

      • Installer
        • Temporary:
          1. Open the commandline/terminal
          2. Enter /path/to/triplea -J-Xmx<amount>
        • Permanent:
          1. Go to your TripleA installation directory.
          2. Open the TripleA.vmoptions file.
          3. Change the -Xmx<amount> to an appropriate value
          4. Start TripleA
      • Jar file
        • Temporary:
          1. Open the commandline/terminal
          2. Enter java -Xmx<amount> -jar /path/to/the/triplea.jar
        • Permanent:
          • On Windows
            1. Create a text file called something.bat
            2. Insert java -Xmx<amount> -jar /path/to/the/triplea.jar and save the file.
            3. Start this batch file instead of the triplea jar in the future.
        • On Unix (macOS/Linux)
          1. Create a text file called something
          2. Insert java -Xmx<amount> -jar /path/to/the/triplea.jar and save the file.
          3. Mark the file as executable using chmod +x /path/to/your/file
          4. Start this script file instead of the triplea jar in the future.
      General_Zod C 2 Replies Last reply Reply Quote 2
      • General_Zod
        General_Zod Moderators @LaFayette last edited by

        @lafayette

        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?

        redrum 1 Reply Last reply Reply Quote 1
        • redrum
          redrum Admin @General_Zod last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • C
            Cernel Moderators @LaFayette last edited by

            @lafayette Please update for the new default of 2G (I don't know if any other changes).

            1 Reply Last reply Reply Quote 0
            • RoiEX
              RoiEX Admin last edited by

              @Cernel I updated it

              1 Reply Last reply Reply Quote 2
              • 1 / 1
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums