grails-events-push icon indicating copy to clipboard operation
grails-events-push copied to clipboard

Tomcat 7 crash

Open ruado1987 opened this issue 12 years ago • 2 comments

No idea why my application, which makes use of this plugin, is bringing down Tomcat (v7) whenever client-side javascript code sends push request to server-side event topic. I read some discussion on google group and someone suggested that increasing heap size of the jvm will sort out the problem but it doesnt work in my case. Has anyone encountered this issue?

BTW, here is an excerpt from the jvm dump file which indicates the culprit is Atmosphere but I have no idea to workaround this:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.apache.tomcat.jni.Socket.send(J[BII)I+0 j org.apache.coyote.http11.upgrade.UpgradeAprProcessor.write(I)V+14 j org.apache.coyote.http11.upgrade.UpgradeOutbound.write(I)V+5 j org.apache.catalina.websocket.WsOutbound.doWriteBytes(Ljava/nio/ByteBuffer;Z)V+45 j org.apache.catalina.websocket.WsOutbound.doWriteText(Ljava/nio/CharBuffer;Z)V+65 j org.apache.catalina.websocket.WsOutbound.writeTextMessage(Ljava/nio/CharBuffer;)V+44 j org.atmosphere.container.version.TomcatWebSocket.write(Lorg/atmosphere/cpr/AtmosphereResponse;Ljava/lang/String;)Lorg/atmosphere/websocket/WebSocket;+82 j org.atmosphere.container.version.TomcatWebSocket.write(Lorg/atmosphere/cpr/AtmosphereResponse;Ljava/lang/String;)Lorg/atmosphere/cpr/AsyncIOWriter;+3 j org.atmosphere.cpr.AtmosphereResponse$2.write(Ljava/lang/String;)V+43 j org.atmosphere.handler.AbstractReflectorAtmosphereHandler.onStateChange(Lorg/atmosphere/cpr/AtmosphereResourceEvent;)V+315 j org.atmosphere.cpr.DefaultBroadcaster.broadcast(Lorg/atmosphere/cpr/AtmosphereResource;Lorg/atmosphere/cpr/AtmosphereResourceEvent;)V+7 j org.atmosphere.cpr.DefaultBroadcaster.executeAsyncWrite(Lorg/atmosphere/cpr/DefaultBroadcaster$AsyncWriteToken;)V+270 j org.atmosphere.cpr.DefaultBroadcaster$3.run()V+88 j java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object;+4 j java.util.concurrent.FutureTask$Sync.innerRun()V+30 j java.util.concurrent.FutureTask.run()V+4 j java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V+59 j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+28 j java.lang.Thread.run()V+11

ruado1987 avatar Feb 28 '13 13:02 ruado1987

Just want to say that I'm experiencing this as well, but don't have a fix for it.

DrNorris avatar Jan 13 '14 20:01 DrNorris

Try 7.0.50. If you still experiment an issue, file a bug in Tomcat, not here. A JVM crash is a Tomcat bug. Thanks

jfarcand avatar Jan 13 '14 21:01 jfarcand