Page 1 of 1

JAVA error - browser failure

PostPosted: Thu Jun 03, 2010 6:06 pm
by lpadron
Have been using Subsonic for several days. Based it on a VISTA (fully updated) 4gb HP laptop. Everything more or less worked correctly until this morning.

Received the following JAVA MEMORY error (below) when starting the browser (tried both Chrome and IE 7). The browser locks up and never finishing populating the UI.

Tried reinstalling Subsonic. Tried reinstalling JAVA. Nothing works. Here's the error:


Exception java.lang.OutOfMemoryError
Message Java heap space
Java version Sun Microsystems Inc. 1.6.0_20
Operating system Windows Vista 6.0
Server jetty-6.1.x
Memory Used 96 of 96 MB
Stack trace java.lang.OutOfMemoryError: Java heap space
at java.util.regex.Pattern$BnM.optimize(Unknown Source)
at java.util.regex.Pattern.compile(Unknown Source)
at java.util.regex.Pattern.(Unknown Source)
at java.util.regex.Pattern.compile(Unknown Source)
at java.lang.String.split(Unknown Source)
at net.sourceforge.subsonic.service.SearchService$Line.parse(SearchService.java:724)
at net.sourceforge.subsonic.service.SearchService.getIndex(SearchService.java:602)
at net.sourceforge.subsonic.service.SearchService.getRandomAlbums(SearchService.java:481)
at net.sourceforge.subsonic.controller.HomeController.getRandom(HomeController.java:167)
at net.sourceforge.subsonic.controller.HomeController.handleRequestInternal(HomeController.java:95)
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:707)
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)

Re: JAVA error - browser failure

PostPosted: Thu Jun 03, 2010 6:12 pm
by Gonzo
lpadron wrote:Memory Used 96 of 96 MB

Assign more memory to your subsonic. You should be able to change the basic settings from your windows start menu (Windows Installation Instructions)

After that, you'll have to restart your Subsonic.

more memory to a service?

PostPosted: Thu Jun 03, 2010 6:54 pm
by lpadron
Thanks Gonzo for the suggestion. How (step by step) do I assign more memory to a service? I've gone into properties for the SUBSONIC service. Don't see a way to assign more memory to a service from properties.

Memory available - page file

PostPosted: Thu Jun 03, 2010 7:58 pm
by lpadron
FYI . . . total memory is 4gb - OS is 64 bit Vista - Page file is set to 6127mb.

Re: more memory to a service?

PostPosted: Thu Jun 03, 2010 8:21 pm
by Luterin
lpadron wrote:Thanks Gonzo for the suggestion. How (step by step) do I assign more memory to a service? I've gone into properties for the SUBSONIC service. Don't see a way to assign more memory to a service from properties.


Click the Subsonic icon in the tray, then click the "settings" tab, change the field "Memory Limit", click "Save Settings". :)

fixed!!!

PostPosted: Thu Jun 03, 2010 10:38 pm
by lpadron
Luterin, thanks!

Changed mem to 300 from 100. Fixed!!! Thanks.

BTW, Sindre. Subsonic is incredible. Love it!!! :)

Just wish there was a better abbreviation for Subsonic than "SS." Not a good thing especially considering history in Norway a few years back.

Thanks for all!!!