1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. While the majority of active discourse on D20PRO has moved to our Discord Channels, this forum is still active and checked-in on regularly by our staff. However, for the very latest information, conversation and/or immediate support, please join us on Discord here: http://discord.gg/Ph38ckM
    Dismiss Notice

How to fix Out of Memory errors

Discussion in 'General Discussion' started by thraxxis, Nov 26, 2013.

  1. thraxxis

    thraxxis Member

    Joined:
    Jul 8, 2008
    Messages:
    507
    Likes Received:
    1
    Hail and well met,

    There are times when d20Pro can run out of memory, especially if using a lot of hi resolution images or importing a really big product from the Marketplace. If you encounter any Out of Memory errors, or simply want to guard against them in advance, please keep reading.

    In advance of a full help article, here is a quick reference to upping the amount of heap memory available to d20Pro.

    The Java argument for increasing the needed memory is xMx. Simply update the value in the right place and you are golden. Easy, right? :mrgreen:

    Windows
    Easiest path is to run the installer again. It should remember the prior install directory. Select 1024 for heap memory. Leave the new campaign options unchecked (unless you want a fresh campaign of course). None of your existing campaigns will be touched so this is completely safe. Run d20Pro.

    Also you may edit the d20Pro.bat file to substitute -Xmx512m for -Xmx1024m.

    And there is also the option of hacking the Windows registry. If you hunt for d20Pro and/or Xmx and you should find the key value pair to modify. I'm not a on Windows machine right now, though if requested I can look up the exact path to where to make the change and post it later. :geek:

    Mac
    Right-click on d20Pro and tap "Show Package Contents" (or equivalent). This opens the folder that holds the d20Pro application. Browse into Contents and open the Info.plist file. Find the value for VMOptions and change -Xmx512m to -Xmx1024m and save the file. Run d20Pro.

    Linux
    Replace -Xmx512m with -Xmx1024m in d20pro.sh (or equivalent). Run d20Pro.

    64 Bit Users
    Those rocking 64 bit systems and have a 64 bit version of Java and increase the available memory much higher than 1 gigabyte (1024 megabytes). Use -Xmx2g where 2 is how many gigs to allocate. :ugeek:

    P.S. More information on this topic can be found here: http://forums.d20pro.com/viewtopic.php?f=2&t=2033
    P.P.S. If you get stuck allocating more memory send us a note at http://d20pro.com/contact/ and we will do our best to get you going.
     
  2. edwardcd

    edwardcd Administrator
    Staff Member

    Joined:
    Oct 13, 2010
    Messages:
    1,374
    Likes Received:
    9
    New way for MAC and WINDOWS:

    Step 1:
    Press the "Edit" button on the bottom of the d20Pro Live Window.

    Step 2:
    Select the new value of RAM you would like to allocate. As a good rule of thumb, use 25% of your total installed RAM.

    Step 3:
    Press OK.

    Step 4:
    Close out of D20PRO.

    Step 5:
    Reopen D20PRO and enjoy. You can see the new allocated RAM value.


    --edit: removed missing images.
     
  3. ionstorm20

    ionstorm20 New Member

    Joined:
    Oct 25, 2009
    Messages:
    9
    Likes Received:
    0
    I'm having an issue with the new way (or the old way for that matter) where no matter what I set it to, it resets the value to 455.5 no matter what happens every time it re-loads.
     
  4. owlbear

    owlbear Administrator
    Staff Member

    Joined:
    Sep 5, 2011
    Messages:
    636
    Likes Received:
    160
    @ionstorm20 if you launch from the shell script it will use an override -Xmx<some number>m value for the memory.

    You'll want to edit this in a text editor to override the value. You can set it to 1024g or 2048g or some other base 8 variant.
     

Share This Page