SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Increasing memory used by SongKong on MacOS

By default on MacOS SongKong will use upto a quarter of physical memory by default (for heap), and usually it will use alot less. But if you have a very large library or unusual configuration it is possible for SongKong to fail with the error

SongKong is short of memory, task has to be cancelled to prevent further problems Java heap space

In such cases it is worth temporarily increasing the amount of memory used to see if that resolves the issue

  • The bottom right hand corner of SongKong window shows the current/max memory usage in Mb, make a note of the max memory usage

  • Stop SongKong

  • Right click on /Application/SongKong and select Show Package Contents

  • Select Contents

  • Right click on Info.plist and select Open With TextEdit

  • Find the following line

    <string>-XX+HeapDumpOnOutOfMemoryError</string>

  • And below it add a new line to set max memory, so for example to set it to 4GB add

    <string>-Xmx4G</string>

    to set it to 8GB add

    <string>-Xmx8G</string>

  • Restart SongKong

  • You should now see the max memory usage in Mb has increased.

  • Hopefully this will resolve the memory issue