Purpose of .vmoptions files
This article is typically being linked as part of this troubleshooting article.
Important: Fresh JDownloader installations should auto assign enough RAM so if you do not want to fiddle around with the .vmoptions file, try this first:
About the .vmoptions file:
In your JDownloader install directory you might see a file called "JDownloader2.vmoptions".
If it doesn't exist, you may create it.
This file is used to define the Java VM parameters for JDownloader.
Every line contains one VM parameter.
Lines starting with #
are comments (= ignored).
Most of all times you would want to use it to increase the max. memory available for JD.
-Xms
and -Xmx
lines if existent.-Xmx2g
(for 2GB max) or -Xmx1000m
(for 1000MB max)Please know that larger memory settings (e.g. larger than 1GB or larger than 2GB) do require a 64bit Java version and will fail on 32bit Java version.
When you're done with your changes:
Start JDownloader. You should see your defined -Xmx value in:
Help -> About JDownloader -> Memory -> See "Max:"
Screenshot:
You can find more Information about Java VM parameters here but only change other parameters than the ones mentioned in this article if you know what you're doing!
Tags: Memory, RAM, java.lang.OutOfMemoryError: Java heap space