How to set up memory cache?

Need help? Post your questions here.

Moderator: moderators

How to set up memory cache?

Postby jarome » Sun Aug 21, 2011 9:11 pm

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?
jarome
 
Posts: 88
Joined: Sat Apr 16, 2011 2:53 am

Re: How to set up memory cache?

Postby GJ51 » Sun Aug 21, 2011 9:36 pm

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.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: How to set up memory cache?

Postby jarome » Sun Aug 21, 2011 10:21 pm

But where do I set it?
jarome
 
Posts: 88
Joined: Sat Apr 16, 2011 2:53 am

Re: How to set up memory cache?

Postby GJ51 » Sun Aug 21, 2011 10:26 pm

Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: How to set up memory cache?

Postby jarome » Sun Aug 21, 2011 10:39 pm

viewtopic.php?f=2&t=5028
had the answer. It should be set properly as a default IMHO.
jarome
 
Posts: 88
Joined: Sat Apr 16, 2011 2:53 am

Re: How to set up memory cache?

Postby GJ51 » Sun Aug 21, 2011 10:54 pm

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
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: How to set up memory cache?

Postby jarome » Sun Aug 21, 2011 10:59 pm

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
jarome
 
Posts: 88
Joined: Sat Apr 16, 2011 2:53 am

Re: How to set up memory cache?

Postby GJ51 » Mon Aug 22, 2011 12:35 am

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.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: How to set up memory cache?

Postby alphawave7 » Mon Aug 22, 2011 2:05 am

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)
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am


Return to Help

Who is online

Users browsing this forum: No registered users and 18 guests