Errai webapp becomes unresponsive in periods
morols Nov 23, 2015 6:24 PMHi,
I'm new to GWT and Errai, but am working with an application that in some situations ends up unresponsive for some time until it returns to normal.
When I click on things that are supposed to show other parts of the app it just hangs. I can observe requests pending for a long time and then failing when observing the network tab in the browser's developer tools.
I took a thread dump when the system was responding fine and then when it wasn't. A difference noted was the below threads. I actually took more dumps, when it started not responding and after a while where we had continued clicking around and there were 9 threads waiting like the below first and 20 when we had clicked a little while longer. When the system returned to being responsive there was again no threads waiting like below.
Do you have any suggestion why we might experience this? Or any advice on what to try next?
Thanks,
Morten
20 threads with this stack:
"http-127.2.82.1-127.2.82.1-8080-13": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-16": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-2": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-21": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-29": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-3": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-30": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-31": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-34": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-36": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-38": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-4": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-55": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-61": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-63": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-64": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-7": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-83": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-88": waiting to acquire [0x00000007aad8c378]
"http-127.2.82.1-127.2.82.1-8080-9": waiting to acquire [0x00000007aad8c378]
at org.jboss.errai.bus.server.service.MessageBusProxy.send(MessageBusProxy.java:72)
at org.jboss.errai.bus.client.api.base.ConversationMessageWrapper.sendNowWith(ConversationMessageWrapper.java:238)
at org.jboss.errai.bus.client.api.base.DefaultMessageBuilder$1.sendNowWith(DefaultMessageBuilder.java:84)
at org.jboss.errai.bus.server.io.ValueReplyRPCEndpointCallback.callback(ValueReplyRPCEndpointCallback.java:22)
at org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54)
at org.jboss.errai.cdi.server.CDIExtensionPoints$2.callback(CDIExtensionPoints.java:396)
at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47)
at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:296)
at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46)
at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:97)
at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:114)
at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:142)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
at org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:466)
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
at java.lang.Thread.run(Thread.java:745)