0 Replies Latest reply on Jun 3, 2014 3:58 AM by Shiv Dixit

    Memory Settings in JBoss Fuse ESB 6.0 - java.lang.OutOfMemoryError: Java heap space

    Shiv Dixit Newbie

      Hi,

      I am running JBoss Fuse ESB 6.0 as Windows service and using 1G as the Java Max memory which is defined in wrapper configuration file. If there are more pending messages on activemq then browsing operation fails with below error.

       

      All batch scripts inside Fuse_Home/bin are present with their default memory settings. Do we need changes in those scripts (fuse.bat/karaf.bat/start.bat/setenv.bat etc)?

       

      Thanks

      Shiv

       

      java.lang.OutOfMemoryError: Java heap space

      at java.util.Arrays.copyOf(Unknown Source)

      at java.io.CharArrayWriter.write(Unknown Source)

      at java.io.PrintWriter.write(Unknown Source)

      at com.opensymphony.module.sitemesh.filter.RoutablePrintWriter.write(RoutablePrintWriter.java:144)

      at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:181)

      at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:449)

      at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:462)

      at org.apache.jsp.browse_jsp$browse_jspHelper.invoke0(org.apache.jsp.browse_jsp:347)

      at org.apache.jsp.browse_jsp$browse_jspHelper.invoke(org.apache.jsp.browse_jsp:399)

      at org.apache.jsp.tag.web.jms.forEachMessage_tag.doTag(org.apache.jsp.tag.web.jms.forEachMessage_tag:85)

      at org.apache.jsp.browse_jsp._jspx_meth_jms_forEachMessage_0(org.apache.jsp.browse_jsp:133)

      at org.apache.jsp.browse_jsp._jspService(org.apache.jsp.browse_jsp:72)

      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)

      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)

      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

      at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:132)

      at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:127)

      at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)

      at org.ops4j.pax.web.jsp.JspServletWrapper.service(JspServletWrapper.java:124)

      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)

      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)

      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)

      at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)

      at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:102)

      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)

      at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)