TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    How to Increase Memory for TripleA

    Scheduled Pinned Locked Moved Player Help
    5 Posts 5 Posters 3.6k Views 5 Watching
    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.
    • LaFayetteL Offline
      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_ZodG C 2 Replies Last reply Reply Quote 2
      • General_ZodG Offline
        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?

        redrumR 1 Reply Last reply Reply Quote 2
        • redrumR Offline
          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.

          TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

          1 Reply Last reply Reply Quote 0
          • C Offline
            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
            • RoiEXR Offline
              RoiEX Admin
              last edited by

              @Cernel I updated it

              1 Reply Last reply Reply Quote 3

              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
              • 1 / 1
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums