Post Reply 
Out of memory error
04-01-2026, 15:22
Post: #1
Out of memory error
Actually a good reason for my first post here: Happy new year and all the best for 2026!

I'm with a trial license on my quite old Synology DS215j.
It has only 500 MB of RAM and 8 TB of HDDs (92% full).
I use that NAS only for my personal "huge" music library - nothing else.
MinimServer worked well with its initial settings and even with my first own "optimisations".

With the following settings MS2 could not read my entire library and ended with an out of memory error:

Code:
.configVersion = 2.2.118
.licenseType = trial
minimserver.activeProfile = default
minimserver.monitorUDN = 2fd59e40-0e87-4d8c-8ae4-32d7d1458ac3
minimserver.udn = 2345d8eb-c43a-44ce-b134-1278c09a2acf
minimserver.systemUpdateID = 328
minimserver.configVersion = 2.2.133
minimserver.license = 2.0.4
minimserver.contentDir = /volume1/music/Lib\#1\n/volume1/music/Lib\#2\n/volume1/music/Lib\#3
.updatesExpiry = 20260108
minimserver.trialExpiry = 1767879156000
minimserver.trialVersion = 2.2
minimserver.indexTags = AlbumArtist, Group, Artist, Date, Genre, All Artists, Composer, *RecentAdded, *RecentPlayed, \#AudioData, \#AudioFormat, \#AudioQuality
stream.configVersion = 2.1.102
minimserver.lastRescan = 1766515142341
.logLevel = verbose
minimserver.serverOptions = indexArtwork\=none, language\=en
minimserver.itemTags = DiscNumber, TrackNumber
minimserver.tagFormat = Album.displayFormat\={$date^[^] $album^}, Title.displayFormat\={$discnumber^$tracknumber^^. ^$title^}, Group.displayFormat\={$group}
minimserver.tagOptions = all.ignore.sort\={The}, -Album.ignore.sort, Album.sortTags\={Date}
minimserver.listViewAlbums = all
minimserver.alphaGroup = AlbumArtist
minimserver.writeAllTags = alltags.txt
minimserver.aliasTags = Content Group\:Group
stream.baseTime = 1766573020441
http.listenerPort = 9790
.integrityCheck = 20a9872d94a4dde338696e591e6e09107

Is there anything wrong with these settings?

Best regards,
Thomas
Find all posts by this user
Quote this message in a reply
04-01-2026, 17:26
Post: #2
RE: Out of memory error
Welcome to the MinimServer forum and Happy New Year!

MinimServer is written in Java. By default, the Java VM allocates 25% of total memory for its heap (125 MB on your NAS) A large library can exceed this and this would produce an OutOfMemory error.

The solution is to set an option to tell Java to allocate a larger amount of heap memory. To do this, you need to create a file named minimstart.conf in the MinimServer/etc shared folder. This file should contain a single line as follows:

javaopts = -Xmx250m

After doing this, stop and restart MinimServer from Synology Package Center. MinimServer will now run with 250MB of heap space, which should hopefully be enough for your large library and also leave enough for other system requirements.
Find all posts by this user
Quote this message in a reply
04-01-2026, 20:07
Post: #3
RE: Out of memory error
Thank you very much, Simon!

The rescan was succesful at the first attempt and the server seems to work fine now. Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)