Manually Changing the beaTunes Memory Configuration on OS X
If you repeatedly run into OutOfMemoryErrors, and other remedies don't help, you might want to manually change beaTunes' memory configuration.
To do so, you have to edit two files with a simple text editor like TextEdit.
But before you do anything else, make sure you have shut down beaTunes.
Both files are located in the beaTunes3 application bundle. To
get to them, CTRL-click (or right-click) on the beaTunes3
application in Finder and select Show Package Contents.
This will open a new Finder window with the contents of the
application bundle. In this window open the Contents
folder.
The Contents folder contains two files. One named
Info.plist, another named
Info.plist.template.
- Open
Info.plistwith TextEdit (e.g. through CTRL-click, Open With). - Find the line containing
<key>VMOptions</key> - In the next line, find the parameter that starts with
-Xmx - This parameter specifies the maximum heap size of the Java beaTunes3 process. By changing this parameter you can grant more or less memory to beaTunes. Typically this parameter is less than 1000m, meaning less than 1000 megabytes.
- Change the
-Xmxparameter to a higher value, e.g. to-Xmx1500m - Save the file
To make the change permanent, you need to also edit the second
file, i.e. Info.plist.template:
- Open
Info.plist.templatewith TextEdit. - Find the line containing
<key>VMOptions</key> - In the next line, find the parameter
-Xmx${vm.memory.heap.max} - Replace the whole expression with the same parameter you used
in
Info.plist, e.g.-Xmx1500m. - Save the file
One thing to keep in mind when changing the -Xmx
parameter is, that you cannot assign more memory to beaTunes than
your system has to offer. E.g. granting beaTunes a value of 4000m
does not make any sense on a system with only 2GB of RAM.
After you saved both files, start using beaTunes with the changed settings.
For Windows, please see here