Exception java.lang.OutOfMemoryError

Need help? Post your questions here.

Moderator: moderators

Exception java.lang.OutOfMemoryError

Postby csoldfield » Wed Jun 16, 2010 2:24 pm

Am having a crash on starting after dumping a _large_ number of new tracks onto my server (now at >1TB). Seems unable to generate the track list. Maybe I'll try moving files out of the top level dir.
Is there a limit to the number of files ?
regards, Clive

Error

Subsonic encountered an internal error. You can report this error in the Subsonic Forum. Please include the information below.
Exception java.lang.OutOfMemoryError
Message Java heap space
Java version Sun Microsystems Inc. 1.6.0_20
Operating system Windows XP 5.1
Server jetty-6.1.x
Memory Used 96 of 96 MB
Stack trace java.lang.OutOfMemoryError: Java heap space at java.io.WinNTFileSystem.list(Native Method) at java.io.File.list(Unknown Source) at java.io.File.listFiles(Unknown Source) at net.sourceforge.subsonic.util.FileUtil.listFiles(FileUtil.java:61) at net.sourceforge.subsonic.domain.MusicFile.getChildren(MusicFile.java:290) at net.sourceforge.subsonic.service.MusicFileService.getChildDirectories(MusicFileService.java:138) at net.sourceforge.subsonic.service.MusicIndexService.createArtists(MusicIndexService.java:136) at net.sourceforge.subsonic.service.MusicIndexService.getIndexedArtists(MusicIndexService.java:64) at net.sourceforge.subsonic.controller.LeftController.getCacheEntry(LeftController.java:216) at net.sourceforge.subsonic.controller.LeftController.handleRequestInternal(LeftController.java:129) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) 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.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81) at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) 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)
Clive
csoldfield
 
Posts: 14
Joined: Tue Feb 20, 2007 9:22 pm
Location: USA

Postby csoldfield » Wed Jun 16, 2010 2:43 pm

Tried increasing the "Subsonic Control Panel->Settings:Memory Limit from the default 100MB to 768MB.
Appears to have worked so far...still indexing:-

Server jetty-6.1.x, java 1.6.0_20, Windows XP (112.4 MB / 127.0 MB)
Clive
csoldfield
 
Posts: 14
Joined: Tue Feb 20, 2007 9:22 pm
Location: USA

Postby csoldfield » Thu Jun 17, 2010 11:28 pm

The increased memory setting appears to have fixed my issue. I now see:-

jetty-6.1.x, java 1.6.0_20, Windows XP (222.5 MB / 536.9 MB)

12,417 artists
11,263 albums
166,420 songs
816.02 GB (~ 12,676 hours)
Clive
csoldfield
 
Posts: 14
Joined: Tue Feb 20, 2007 9:22 pm
Location: USA


Return to Help

Who is online

Users browsing this forum: No registered users and 26 guests