The main SongKong window contains some useful performance statistics on the task bar at the bottom of the window in the right hand corner
When SongKong is started the maximum memory it can ever use is specified, this is the second value and SongKong can never use more memory than this regardless of how much memory your computer actually has whereas the first value is how much of that memory SongKong is actually using. Note that SongKong uses a garbage collector to release memory that is no longer required and this is called periodically, if SongKong is nowhere near max memory usage it tries to recover memory less often than it could, and so the current memory usage may be higher than SongKong is actually using.
For example in screenshot below it says 87Mb of 2,000 Mb
Under normal circumstances you should not need to modify the memory settings, but increasing the memory allocated to SongKong may improve performance. If you encounter a memory problem increasing the memory levels should alleviate the issue. Memory modification is platform specific and detailed below:
Windows
By default Windows will set maximum heap memory usage to a quarter of the computers total memory, you can modify the percentage as follows:
-
In Windows Explorer go to C:\Program Files\JThink\SongKong\app
-
Select SongKong.cfg file, then right click and select Edit
-
Modify the value of
java-options=-XX:MaxRAMPercentage=25.0
e.g. to increase to 50% change it to
java-options=-XX:MaxRAMPercentage=50.0 -
Select Save
MacOS
By default MacOS will set maximum heap memory usage to a quarter of the computers total memory, but you can modify this by editing /Applications/SongKong.app/Info.plist.
For example to set it to 4GB of memory
-
In Finder click on Applications:SongKong and select Show Package Contents
-
Select Contents folder, then right click on Info.plist and select with Open with TextEdit
-
Within TextEdit find this section
<string>-XX:G1HeapRegionSize=8m</string>
Add following line below (to set max memory usage to 4GB)
<string>-Xmx4G</string>
- Within TextEdit select Save
Linux
Modify the maximum memory allocated by editing the songkong.sh file.
For example to set it to 4GB of memory
- Open songkong.sh with editor
- Modify -Xmx1800m to -Xmx4000m
- Save changes
