You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by sharma_arun_se <ar...@gmail.com> on 2014/10/16 09:03:58 UTC

Error (Java heap space) viewing queue through web ui having 400+ messages. Adding memory paarmeters do not solve problem...

We are using ActiveMQ version 5.8.0 on Java 1.6.

Currently when ActiveMQ queue contains lots of messages (says more than
400+), then clicking queue in ActiveMQ web UI use approx. 100% CPU/Memory
and ultimately dies with Java Heap space error. 

Adding more memory parameters did not solve the problem:
-XX:MaxPermSize=512m
-Xms512m
-Xmx1024m

We can't upgrade to ActiveMQ latest version. Is there any possible
solution/remedies for this?

Browser stack trace :

HTTP ERROR 500
Problem accessing /admin/browse.jsp. Reason: 
    Java heap space
Caused by:
java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:2882)
        at java.io.CharArrayWriter.write(CharArrayWriter.java:88)
        at java.io.PrintWriter.write(PrintWriter.java:382)
        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:425)
        at
org.apache.jsp.browse_jsp$browse_jspHelper.invoke(org.apache.jsp.browse_jsp:450)
        at
org.apache.jsp.tag.web.jms.forEachMessage_tag.doTag(org.apache.jsp.tag.web.jms.forEachMessage_tag:89)
        at
org.apache.jsp.browse_jsp._jspx_meth_jms_forEachMessage_0(org.apache.jsp.browse_jsp:170)
        at
org.apache.jsp.browse_jsp._jspService(org.apache.jsp.browse_jsp:100)
        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.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)
        at
com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
        at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)






--
View this message in context: http://activemq.2283324.n4.nabble.com/Error-Java-heap-space-viewing-queue-through-web-ui-having-400-messages-Adding-memory-paarmeters-do-n-tp4686431.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Error (Java heap space) viewing queue through web ui having 400+ messages. Adding memory paarmeters do not solve problem...

Posted by Tim Bain <tb...@alumni.duke.edu>.
This sounds like it could be https://issues.apache.org/jira/browse/AMQ-4595,
which was fixed in 5.9.0 (which uses the new HawtIO web console)...

On Wed, Oct 22, 2014 at 6:36 AM, sharma_arun_se <ar...@gmail.com>
wrote:

> We are using 1.6.0_24 , 64 bit jdk
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Error-Java-heap-space-viewing-queue-through-web-ui-having-400-messages-Adding-memory-paarmeters-do-n-tp4686431p4686625.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: Error (Java heap space) viewing queue through web ui having 400+ messages. Adding memory paarmeters do not solve problem...

Posted by sharma_arun_se <ar...@gmail.com>.
We are using 1.6.0_24 , 64 bit jdk



--
View this message in context: http://activemq.2283324.n4.nabble.com/Error-Java-heap-space-viewing-queue-through-web-ui-having-400-messages-Adding-memory-paarmeters-do-n-tp4686431p4686625.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Error (Java heap space) viewing queue through web ui having 400+ messages. Adding memory paarmeters do not solve problem...

Posted by Marco Sacchetto <ma...@pradac.it>.
Which JDK are you using? I mean, its producer, platform
 it runs on and if it's a 32 or 64 bits version.

-- 
Questo messaggio è di carattere riservato ed è indirizzato esclusivamente
al destinatario specificato. L'accesso, la divulgazione, la copia o la
diffusione sono vietate a chiunque altro ai sensi delle normative vigenti,
e possono costituire una violazione penale. Nel caso abbiate ricevuto
questo messaggio per errore siete tenuti a cancellarlo immediatamente
confermando al mittente, a mezzo e-mail, l'avvenuta cancellazione. (Legge
Italiana 196/2003).

2014-10-16 13:18 GMT+02:00 sharma_arun_se <ar...@gmail.com>:

> ActiveMQ service wrapper memory setting is:
>
> # Initial Java Heap Size (in MB)
> #wrapper.java.initmemory=3
>
> # Maximum Java Heap Size (in MB)
> wrapper.java.maxmemory=4096
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Error-Java-heap-space-viewing-queue-through-web-ui-having-400-messages-Adding-memory-paarmeters-do-n-tp4686431p4686440.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: Error (Java heap space) viewing queue through web ui having 400+ messages. Adding memory paarmeters do not solve problem...

Posted by sharma_arun_se <ar...@gmail.com>.
ActiveMQ service wrapper memory setting is:

# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=4096



--
View this message in context: http://activemq.2283324.n4.nabble.com/Error-Java-heap-space-viewing-queue-through-web-ui-having-400-messages-Adding-memory-paarmeters-do-n-tp4686431p4686440.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.