Page 1 of 1

Solution to wakeup/sleep problem

PostPosted: Sat Oct 04, 2014 5:19 pm
by stefana888
I found a solution to the problem that Serviio cannot detect wakeup/sleep properly on Windows (Issue#802). This caused unpredictable faulty behavior.

Not running Serviio as a WIndows service but instead as a Java process will make the wakeup/sleep mechanism work perfectly.

So I recommend running Serviio with the delivered batch file instead of the default ServioService.exe command, ie 'serviio -start', 'serviio -stop'. A shortcut to 'serviio.bat' (no arguments needed) is easily created in the Windows Autostart folder which will make Serviio startup automatically on system boot. Don't forget to disable or remove the Serviio Windows service first.

Re: Solution to wakeup/sleep problem

PostPosted: Thu Nov 06, 2014 9:07 am
by stefana888
To prevent Serviio from sudden chashes without error message and jvm stack exception error on Win 32 with 2 GB RAM I run 'serviio.bat' with the following command line (no heap adjustment and with thread stack size):

  Code:
%START_COMMAND% -Xss320k -XX:+UseParNewGC %JAVA_OPTS% -classpath "%SERVIIO_CLASS_PATH%" org.serviio.MediaServer %*