Page 1 of 1

subsonic music folder cache

PostPosted: Fri Dec 24, 2010 1:06 am
by trinitymusic
I'm getting these errors in the tomcat sys log, which I believe is stopping me from being able to upload large mp3s/zip files through subsonic's interface.

Anyone know how to fix this?


INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Dec 23, 2010 1:47:49 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive subsonic.war
Dec 23, 2010 1:48:00 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.
Dec 23, 2010 1:48:00 PM net.sf.ehcache.Cache initialise
WARNING: Cache: chatCache 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.

PostPosted: Fri Dec 24, 2010 2:59 am
by GJ51
Try opening the SS control panel and increasing the memory allocation on the settings tab.

PostPosted: Fri Dec 24, 2010 3:53 am
by stozher
:D no comment...

SS 4.2 (build 1944) – November 21, 2010
jetty-6.1.x, java 1.6.0_18, Linux (105.6 MB / 153.1 MB)

/etc/default/subsonic:
SUBSONIC_ARGS="--home=/srv/subsonic --port=80 --max-memory=512 ...

subsonic_sh.log:
2204 [main] INFO org.springframework.jdbc.datasource.DriverManagerDataSource - Loaded JDBC driver: org.hsqldb.jdbcDriver
2917 [main] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean - Initializing EHCache CacheManager
Dec 23, 2010 7:47:27 AM net.sf.ehcache.CacheManager addShutdownHookIfRequired
INFO: The CacheManager shutdown hook is enabled because net.sf.ehcache.enableShutdownHook is set to true.
Dec 23, 2010 7:47:27 AM 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.
Dec 23, 2010 7:47:27 AM net.sf.ehcache.Cache initialise
WARNING: Cache: chatCache 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.

PostPosted: Fri Jan 28, 2011 4:30 pm
by rhodes3581
Has anyone figured out why this error is occurring or how to fix it? I am noticing the same thing and my max memory for subsonic is set to 512.

PostPosted: Fri Jan 28, 2011 5:34 pm
by stozher
.../subsonic/jetty/.../webapp/WEB-INF/classes/ehcache.xml :roll:

Code: Select all
...

    <cache name="musicFolderCache"
           maxElementsInMemory="0"
           eternal="true"
           diskPersistent="true"
           overflowToDisk="true"/>

    <cache name="chatCache"
           maxElementsInMemory="0"
           eternal="true"
           diskPersistent="true"
           overflowToDisk="true"/>

</ehcache>

Code: Select all
maxElementsInMemory="1"

Restart server, clear browser cache and refresh page...