FAQ  •  Register  •  Login

Using Serviio with very large libraries

<<

RichardG

Serviio newbie

Posts: 2

Joined: Fri Sep 02, 2016 11:52 am

Post Fri Sep 02, 2016 12:21 pm

Using Serviio with very large libraries

Hi

I thought it might be useful to post my experience using Serviio with a large library on Windows 10.

When I say "large library", Serviio currently reports 30968 music tracks, 4667 videos and 480798 images. I've been casting around for some time to try and find a media server that will deal adequately with all that and, eventually, happened upon Serviio. I installed it without a problem, mapped the appropriate drives to it and away we went. Except that it wasn't seeing new content or deleting entries that no longer existed - aka the delta engine wasn't running. I had almost resigned myself to doing a "Force refresh" every day (tedious!) when I came across a useful post by Falk elsewhere on this forum "Reliability with a large library". To cut a long story short, he had found that Java runs out of heap space for the delta engine with large libraries. After a bit of experimenting, I have managed to get Serviio running happily albeit that library updates can take 24 hours to appear.

I'm running Serviio from the .bat file (it suits my set-up better). I've modified this so that Serviio goes to my local 64-bit Java install rather than the 32-bit version that comes with the server - 64-bit Java gives access to much more memory. I increased the maximum heap size to 4 gigabytes initially (-Xmx4096M) and suddenly things worked! I monitored Java's use of memory through Windows Task Manager and it peaked at about 1.2GB so I've since cut the maximum heap size back to 2GB. In retrospect, I might have made it work with the 32-bit version of Java (maximum available heap size there is reputed to be about 1.4GB on Windows) but with this configuration I shouldn't run into problems as the library expands.

I'd like the indexing side of Serviio to be faster, but at least it works - and for what I need, it's free! Thanks, Serviio team!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Sep 03, 2016 8:23 am

Re: Using Serviio with very large libraries

Thanks for posting this. It might depend on number of directories, as they are what the java file watching service watches really. You can set your Xmx in ServiioService.exe.vmoptions so that you don't have to run from the .bat file
<<

dominotes

Streaming enthusiast

Posts: 22

Joined: Fri Oct 14, 2016 6:23 am

Post Sat Oct 15, 2016 9:53 pm

Re: Using Serviio with very large libraries

I knew this parameter (Minecraft game = same problem ), I set it to 10Gb, and right now, java uses 3.9Gio, total memory used : 5.2 Gio out of 15.6.
I'm adding many pictures, so Java might use much more memory at home very soon.
RIght now : 59872 audio files / 785 pictures.

So yes, if you can, allow java to use more ram.
For beginners, the setting is in serviio/bin/serviio.sh file. At the end (my settings) :
# Execute the JVM in the foreground
exec "$JAVA" -Xmx10G -Xms4G -XX:+UseG1GC -XX:GCTimeRatio=1 -XX:MinHeapFreeRatio=40 -XX:MaxHeapFreeRatio=70 $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer "$@"

Please, read
http://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html (linux users)
http://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html (windows users)
http://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html (macos users)

Computing my database with those settings (files are stored on a 1Tb ssd) takes less than 10' (my server has an I7 3.2ghz processor)

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 88 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.