Post Reply 
ReadyNAS V0.71 java heap space error
30-04-2013, 13:26 (This post was last modified: 30-04-2013 13:27 by simoncn.)
Post: #9
RE: ReadyNAS V0.71 java heap space error
(30-04-2013 12:03)guenter55 Wrote:  Simon, thank you for the new 0.72 release.
I installed it (without any problems).
But now again I have the Out of Memory error.
I have to admit that I added further files to the music folder
(now about 500.000 music files).
MinimServer crashed after processing 270.000 of them.
Unfortunately the begin of the log is again missing due to a big number of
warning because of ID-tags that obviouely aren't conform to the standard.
Is there a possibility to suppress these warings?

Guenter

I've looked at the log, and the memory usage seems normal for this number of files.

MinimServer wasn't designed to handle 500,000 files, and I'm not sure how well it will work with such a large library. To get through the startup phase, you'll need to increase the Java maximum heap size to 256 MB (see instructions below). After this, you might encounter further problems. For example, the total RAM size on the NV+ v2 is only 256 MB, so MinimServer will consume all available RAM and this might cause the NAS to run very slowly. I'll be interested to hear your experiences.

To increase the Java maximum heap size, you need to edit the file /etc/frontview/addons/bin/MINIMSERVER/start.sh and change line 62 from:

LD_LIBRARY_PATH=$MINIMSERVER/libsys $JAVA -jar ../lib/minimserver.jar --noconsole </dev/null >$OUT_FILE 2>&1 &

to:

LD_LIBRARY_PATH=$MINIMSERVER/libsys $JAVA -Xmx256m -jar ../lib/minimserver.jar --noconsole </dev/null >$OUT_FILE 2>&1 &

To get access to this file, you need to install the "Enable root SSH access" ReadyNAS add-on. After installing this, you can login as root and edit the file directly on the NAS, or you can use WinSCP to copy the file to a Windows PC, edit it there, and copy the modified version back to the NAS.

After editing this file, use Frontview to stop MinimServer and then restart it. You need to do this restart from Frontview, not from MinimWatch.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: ReadyNAS V0.71 java heap space error - simoncn - 30-04-2013 13:26

Forum Jump:


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