subsonic stop working with out of memory (java heap)

General discussions.

Moderator: moderators

subsonic stop working with out of memory (java heap)

Postby spacebug » Sat Jan 29, 2011 3:05 am

subsonic stop working after some time with error "out of memory" (java heap).

from subsonic.log

Running on a Linux-machine with ubuntu 10.10 desktop 64bit.

[2011-01-29 03:55:15,907] INFO DaoHelper - Checking database schema.
[2011-01-29 03:55:16,768] INFO DaoHelper - Done checking database schema.
[2011-01-29 03:55:17,112] INFO SearchService - Automatic index creation scheduled to run every 1 day(s), starting at Sun Jan 30 03:00:00 CET 2011
[2011-01-29 03:55:17,274] INFO PodcastService - Automatic Podcast update disabled.
[2011-01-29 03:55:20,289] INFO NetworkService - Deleted port mapping for port 4040
[2011-01-29 03:55:21,108] INFO VersionService - Resolved local Subsonic version to: 4.2
[2011-01-29 03:55:21,507] INFO VersionService - Resolved latest Subsonic final version to: 4.3
[2011-01-29 03:55:21,507] INFO VersionService - Resolved latest Subsonic beta version to: 4.4.beta1
[2011-01-29 03:55:22,858] WARN CoverArtController - Failed to create thumbnail for /data2/musik/Bjork-Post-(Reissue)-2010-SO/00-bjork-post-(reissue)-2010.jpg
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferByte.<init>(DataBufferByte.java:92)
at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleModel.java:415)
at java.awt.image.Raster.createWritableRaster(Raster.java:944)
at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier.java:1186)
at javax.imageio.ImageReader.getDestination(ImageReader.java:2896)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1016)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:984)
at javax.imageio.ImageIO.read(ImageIO.java:1438)
at javax.imageio.ImageIO.read(ImageIO.java:1342)
at net.sourceforge.subsonic.controller.CoverArtController.getCachedImage(CoverArtController.java:141)
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)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
spacebug
 
Posts: 8
Joined: Sat Jan 29, 2011 3:02 am

Postby stozher » Sat Jan 29, 2011 12:52 pm

Edit "/etc/default/subsonic". Example:

SUBSONIC_ARGS="--home=/srv/subsonic --port=80 --max-memory=512 --default-music-folder=/srv/subsonic/Music --default-podcast-folder=/srv/subsonic/Podcasts --default-playlist-folder=/srv/subsonic/Playlists"


See available options from "/usr/share/subsonic/subsonic.sh". Last file is for user desktop startup of SS. Configuration file from "/etc/default" is for daemon (started at system startup) and overwrite options from "subsonic.sh".
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby spacebug » Thu Feb 03, 2011 5:02 pm

stozher wrote:Edit "/etc/default/subsonic". Example:

SUBSONIC_ARGS="--home=/srv/subsonic --port=80 --max-memory=512 --default-music-folder=/srv/subsonic/Music --default-podcast-folder=/srv/subsonic/Podcasts --default-playlist-folder=/srv/subsonic/Playlists"


See available options from "/usr/share/subsonic/subsonic.sh". Last file is for user desktop startup of SS. Configuration file from "/etc/default" is for daemon (started at system startup) and overwrite options from "subsonic.sh".


I will try that. Mine said "--max-memory=100"
I have a pretty big collection of files..
spacebug
 
Posts: 8
Joined: Sat Jan 29, 2011 3:02 am


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests