Skip to content

Increase allocated RAM

Antoine Willerval edited this page Jul 13, 2023 · 3 revisions

Standalone

With the standalone version (the jar version), you simply need to replace/add in your command -XmxNG, where N is the number of gigs allocated in the RAM

example with 10G of RAM

java -Xmx10G -jar qendpoint.jar

Windows (Installer)

The default installation location of qendpoint is C:\Program Files\qendpoint\, you need to go to the app/qendpoint.cfg file.

You need to find the line

[JavaOptions]
java-options=-Djpackage.app-version=CURRENT_VERSION

You simply need to add -XmxNG, where N is the number of gigs allocated in the RAM.

example with 10G of RAM

[JavaOptions]
java-options=-Djpackage.app-version=CURRENT_VERSION -Xmx10G

Linux (Installer)

You need to go in the installation directory TODO: FIND WHERE?

You need to find the line

[JavaOptions]
java-options=-Djpackage.app-version=CURRENT_VERSION

You simply need to add -XmxNG, where N is the number of gigs allocated in the RAM.

example with 10G of RAM

[JavaOptions]
java-options=-Djpackage.app-version=CURRENT_VERSION -Xmx10G

MacOS (Installer)

The default installation location of qendpoint is /Library/qendpoint.app/, you need to go to the app/qendpoint.cfg file.

In the app/qendpoint.cfg you need to find the line

[JavaOptions]
java-options=-Djpackage.app-version=CURRENT_VERSION

You simply need to add -XmxNG, where N is the number of gigs allocated in the RAM.

example with 10G of RAM

[JavaOptions]
java-options=-Djpackage.app-version=CURRENT_VERSION -Xmx10G

Powershell (Command line interface)

Enter this command in Powershell

"$((Split-Path -Parent (Get-Command qendpoint.ps1).Source))\javaenv.ps1"

Then open the file path

In the $javaenv object, edit in the JAVAOPTIONS the options -Xmx1G, example to allocate 10GB:

"JAVAOPTIONS"  = "-XX:NewRatio=1", "-XX:SurvivorRatio=9", "-Xmx10G"

Bash (Command line interface)

Enter this command in a shell

echo "$(dirname $(which qepSearch.sh))/javaenv.sh"

Then open the file path

Edit the JAVAOPTIONS line to edit the option -Xmx1G, example to allocate 10GB:

JAVA_OPTIONS="-Xmx10g"