Page 1 of 1

How to set up memory cache?

PostPosted: Sun Aug 21, 2011 9:11 pm
by jarome
On OpenSUSE 11.4, the server crashes with out of memory errors during indexing. I have 8GB of memory.

subsonic_sh.log complains that

Aug 21, 2011 4:58:21 PM net.sf.ehcache.CacheManager addShutdownHookIfRequired
INFO: The CacheManager shutdown hook is enabled because net.sf.ehcache.enableShutdownHook is set to true.
Aug 21, 2011 4:58:21 PM net.sf.ehcache.Cache initialise
WARNING: Cache: musicFolderCache has a maxElementsInMemory of 0. It is strongly recommended to have a maximumSize of at least 1. Performance is halved by not using a MemoryStore.
Aug 21, 2011 4:58:21 PM net.sf.ehcache.Cache initialise

How do I set the cache size? What is the recommended value?

I also get lots of errors in subsonic.log. For example

2011-08-21 17:06:17,557] WARN CoverArtController - Failed to create thumbnail for /data1/music/Rachmaninov, Sergei/Piano Music Vol. 5; Ruth Laredo/01 Morceaux de fantasie, Op. 3 - Elegie in F-flatminor.mp3
java.lang.Exception: Unable to decode image.
at net.sourceforge.subsonic.controller.CoverArtController.getCachedImage(CoverArtController.java:143)
at net.sourceforge.subsonic.controller.CoverArtController.handleRequest(CoverArtController.java:93)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
. . .

I don't store cover art. Is there a way to turn this "feature" off?

Re: How to set up memory cache?

PostPosted: Sun Aug 21, 2011 9:36 pm
by GJ51
viewtopic.php?f=6&t=3939

I use 256 and never have problems.

Turning off Cover Art is not a standard feature, but it may have been done by someone in the Mods section.

Re: How to set up memory cache?

PostPosted: Sun Aug 21, 2011 10:21 pm
by jarome
But where do I set it?

Re: How to set up memory cache?

PostPosted: Sun Aug 21, 2011 10:26 pm
by GJ51

Re: How to set up memory cache?

PostPosted: Sun Aug 21, 2011 10:39 pm
by jarome
viewtopic.php?f=2&t=5028
had the answer. It should be set properly as a default IMHO.

Re: How to set up memory cache?

PostPosted: Sun Aug 21, 2011 10:54 pm
by GJ51
It was, but the program has evolved rapidly and the number of users with very large collections has suddenly emerged. In the Windows version it's very easy to modify in the control panel, but you are right, it's time to bump the default setting.

One of the issues is that there are many users out there that still runSubsonic on VERY small systems that have 512mb or less of total memory so there has to be an installation option for them as well. Some of the SS users are actually using NAS devices and the Shiva Plug, which have very limited resources. Us forum users are still trying to get a feel for what the ranges are for appropriate settings on various systems, but keep in mind that the recent incorporation of video playback has compounded the issue.

Be assured, however that Sindre does keep up with what's going on in the forums and does do frequent updates that are of concern to the users.

http://subsonic.svn.sourceforge.net/vie ... n/TODO.TXT

Re: How to set up memory cache?

PostPosted: Sun Aug 21, 2011 10:59 pm
by jarome
There also then needs to be a wiki page with detailed information on how to set things, where they are located, what they do, and recommended values.

My server has been crashing all the time with out of memory errors and filling up the logs with errors trying to do cover art.
So what else should I set up?

And no one has yet answered my post about why
/etc/init.d/subsonic status
does not work.

Thanks,
Jim

Re: How to set up memory cache?

PostPosted: Mon Aug 22, 2011 12:35 am
by GJ51
http://subsonic.org/pages/documentation.jsp

viewforum.php?f=6

viewtopic.php?f=2&t=6346

Keep in mind that this is a users' forum. There are many knowledgeable users here that can answer most of your questions, but it doesn't always happen quickly. I'm strictly a Windows guy, so I can't answer any issues with other OS's that are related to those installs. If you do some reading and searching, you can often find that your particular issue may already have been addressed elsewhere. Reading through the posts can also give you an idea of which posters may have the expertise that is likely to be helpful to you. Establishing communication with some of the Linix guys will most likely lead you to the help your looking for.

There is no doubt that Subsonic takes above average skill level to get the most out of it, but the effort is definitely worth it. Be patient, do some reading and searching and try to get to the people that are most likely to help you.

Re: How to set up memory cache?

PostPosted: Mon Aug 22, 2011 2:05 am
by alphawave7
jarome wrote:There also then needs to be a wiki page with detailed information on how to set things, where they are located, what they do, and recommended values.

My server has been crashing all the time with out of memory errors and filling up the logs with errors trying to do cover art.
So what else should I set up?

And no one has yet answered my post about why
/etc/init.d/subsonic status
does not work.

Thanks,
Jim


I STRONGLY encourage those that wish to 'give back' after receiving assistance from fellow users, apply and add to our wiki...give credit to those that helped if you wish, but with the goal of helping others. 8)