subsonic won's launch -- java overflow

Need help? Post your questions here.

Moderator: moderators

subsonic won's launch -- java overflow

Postby digitalplatypus » Wed Feb 23, 2011 4:32 am

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
digitalplatypus
 
Posts: 2
Joined: Wed Feb 23, 2011 4:30 am

Postby alphawave7 » Wed Feb 23, 2011 4:56 am

keywords: "Memory Used 97 of 97 MB "
Increase your memory.
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am

Not sure what this means

Postby digitalplatypus » Wed Feb 23, 2011 5:44 am

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.
digitalplatypus
 
Posts: 2
Joined: Wed Feb 23, 2011 4:30 am

Re: Not sure what this means

Postby jrh.koenig » Wed Feb 23, 2011 6:36 am

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
jrh.koenig
 
Posts: 18
Joined: Sat Feb 27, 2010 3:51 pm
Location: Frankfurt, Germany

Re: Not sure what this means

Postby alphawave7 » Wed Feb 23, 2011 7:19 am

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
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am

Re: Not sure what this means

Postby jrh.koenig » Wed Feb 23, 2011 7:38 am

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
jrh.koenig
 
Posts: 18
Joined: Sat Feb 27, 2010 3:51 pm
Location: Frankfurt, Germany

Thank you jrh.koenig!!!

Postby bam0027 » Wed Feb 23, 2011 10:59 am

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...
bam0027
 
Posts: 4
Joined: Mon Feb 21, 2011 1:33 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 20 guests