πŸ†˜Out-of-memory error

If you run into the error message on a Windows Computer:

java.lang.OutOfMemoryError: Java heap space

The maximum memory of QuPath can be updated in QuPath. Click on Edit > Preferences > Set max memory

If this approach does not work, you must change the QuPath .cfg file directly. Therefore open your Qupath app folder.

open the app folder

Search in the app folder for the QuPath-0.5.1.cfg file and open it with the Editor

open the .cfg file
add the lines

Once the file is open, scroll to the bottom of the file where you can find the update by allocating a memory.

[JavaOptions]
java-options=-Djpackage.app-version=0.5.1
java-options=-XX:MaxRAMPercentage=50
java-options=-Xmx16G

If you encounter any other problems please visit QuPath-read the docs.

Last updated