Skip to content

Adjusting aPriori heap size

Adjusting heap size is not particularly difficult, but if you get it wrong (such as allocating more memory to heap than exists on your machine), you can disable your computer. If you are unsure about performing these procedures, contact either your internal IT team, or aPriori Customer Support.

First, determine how big your heap size setting should be by referring to the System Requirements guide document. For the purposes of these examples, we’ll assume that you want to double that setting to 8 GB (8192 MB) but use the number that is correct for your situation.

Then use the procedure below that is correct for your environment to change the setting.

Note:

You can do this either by editing the aPriori start-up file runStandaloneApriori.cmd, or by setting an environment variable APRIORI_JAVA_OPTS. Make sure to restart aPriori for this change to take effect.

Standalone aPriori: start-up file

  1. Navigate to the /bin folder in your aPriori installation folder.
  2. Open runStandaloneApriori.cmd in your favorite text editor (for example, Notepad++).
  3. Find the line that starts:

    set APRIORI_JAVA_OPTS=-Xmx4096m…
    
  4. Change to “4096” (or whatever the correct value is for your installation. Only change the numbers between the Xmx and the m.

  5. Save the file and restart aPriori .

Standalone aPriori: environment variable

You can alternatively change the heap setting by using an environment variable.

  1. Create a system environment variable named APRIORI_JAVA_OPTS.
  2. Set the value of this new environment variable to "-Xmx8192m" (or whatever the correct value is for your installation).
  3. Save/apply changes and restart aPriori .

Creo® Direct Integration: start-up file

Do the following with the assistance of your IT team:

  1. Open the Creo® start-up script in your favorite text editor.
  2. Add the following line:

    Set APRIORI_MAX_MEMORY=8192m (or whatever the correct value is for your installation).

  3. Restart Creo®.

Creo® Direct Integration: environment variable

Do the following with the assistance of your IT team:

  1. Create a system environment variable named "APRIORI_MAX_MEMORY”.
  2. Set the value of this new environment variable to “8192” (or whatever the correct value is for your installation).
  3. Save/apply changes and restart Creo®.