Page 1 of 1

subsonic won's launch -- java overflow

PostPosted: Wed Feb 23, 2011 4:32 am
by digitalplatypus
Exception javax.servlet.ServletException
Message javax.servlet.jsp.JspException: Java heap space
Java version Apple Inc. 1.6.0_22
Operating system Mac OS X 10.6.6
Server jetty-6.1.x
Memory Used 97 of 97 MB
Stack trace javax.servlet.ServletException: javax.servlet.jsp.JspException: Java heap space at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:854) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) at org.apache.jsp.WEB_002dINF.jsp.musicFolderSettings_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.musicFolderSettings_jsp:177) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) 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.handle(ServletHandler.java:362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:236) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902) 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.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) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at net.sourceforge.subsonic.filter.ParameterDecodingFilter.doFilter(ParameterDecodingFilter.java:54) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at net.sourceforge.subsonic.filter.BootstrapVerificationFilter.doFilter(BootstrapVerificationFilter.java:54) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Caused by: java.lang.OutOfMemoryError: Java heap space

PostPosted: Wed Feb 23, 2011 4:56 am
by alphawave7
keywords: "Memory Used 97 of 97 MB "
Increase your memory.

Not sure what this means

PostPosted: Wed Feb 23, 2011 5:44 am
by digitalplatypus
Do I need to increase memory within the java applet? The subsonic program?
If so how?
The computer has over 3gb of free ram so it's not that.
Sorry if this seems a newbie question, but I am new to subsonic.

Re: Not sure what this means

PostPosted: Wed Feb 23, 2011 6:36 am
by jrh.koenig
digitalplatypus wrote:Do I need to increase memory within the java applet? The subsonic program?
If so how?
The computer has over 3gb of free ram so it's not that.
Sorry if this seems a newbie question, but I am new to subsonic.


Hi,

you have to edit following file to increase the memory settings:

/Applications/Subsonic.app/Contents/Info.plist

at line 37 -Xmx100m to -Xmx256m or whatever your installation needs.

Regards

Johannes

Re: Not sure what this means

PostPosted: Wed Feb 23, 2011 7:19 am
by alphawave7
jrh.koenig wrote:
digitalplatypus wrote:Do I need to increase memory within the java applet? The subsonic program?
If so how?
The computer has over 3gb of free ram so it's not that.
Sorry if this seems a newbie question, but I am new to subsonic.


Hi,

you have to edit following file to increase the memory settings:

/Applications/Subsonic.app/Contents/Info.plist

at line 37 -Xmx100m to -Xmx256m or whatever your installation needs.

Regards

Johannes


If this is the easiest method on MacOS, it should be added to the Memory Tutorial: http://forum.subsonic.org/forum/viewtopic.php?t=3939

Re: Not sure what this means

PostPosted: Wed Feb 23, 2011 7:38 am
by jrh.koenig
I don't know if it is necessary because you will find that information in the installation dokumentation on www.subsonic.org for MacOSX.



alphawave7 wrote:
jrh.koenig wrote:
digitalplatypus wrote:Do I need to increase memory within the java applet? The subsonic program?
If so how?
The computer has over 3gb of free ram so it's not that.
Sorry if this seems a newbie question, but I am new to subsonic.


Hi,

you have to edit following file to increase the memory settings:

/Applications/Subsonic.app/Contents/Info.plist

at line 37 -Xmx100m to -Xmx256m or whatever your installation needs.

Regards

Johannes


If this is the easiest method on MacOS, it should be added to the Memory Tutorial: http://forum.subsonic.org/forum/viewtopic.php?t=3939

Thank you jrh.koenig!!!

PostPosted: Wed Feb 23, 2011 10:59 am
by bam0027
You solution worked perfectly. I've updated the Tutorial thread with your notes.

My only concern is that this file will be overwritten from upgrades to the software. Too bad this parameter can't be stored in the /Library folder...