Uploaded image for project: 'Wave'
  1. Wave
  2. WAVE-302

Server is unstable due to OutOfmemoryEception in Socket.IO

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • None
    • None
    • Server
    • None

    Description

      Turbulence message is displayed after login.
      The logs shows the following exception:

      java.lang.OutOfMemoryError: Direct buffer memory
      at java.nio.Bits.reserveMemory(Bits.java:656)
      at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:113)
      at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:305)
      at org.eclipse.jetty.io.nio.DirectNIOBuffer.<init>(DirectNIOBuffer.java:46)
      at org.eclipse.jetty.io.AbstractBuffers.newBuffer(AbstractBuffers.java:94)
      at org.eclipse.jetty.io.PooledBuffers.getBuffer(PooledBuffers.java:70)
      at org.eclipse.jetty.http.AbstractGenerator.increaseContentBufferSize(AbstractGenerator.java:187)
      at org.eclipse.jetty.server.Response.setBufferSize(Response.java:986)
      at com.glines.socketio.server.transport.jetty.JettyContinuationTransportHandler.connect(JettyContinuationTranspo
      rtHandler.java:340)
      at com.glines.socketio.server.transport.AbstractHttpTransport.connect(AbstractHttpTransport.java:101)
      at com.glines.socketio.server.transport.AbstractHttpTransport.handle(AbstractHttpTransport.java:75)
      at org.waveprotocol.box.server.rpc.AbstractWaveSocketIOServlet.serve(AbstractWaveSocketIOServlet.java:164)
      at org.waveprotocol.box.server.rpc.AbstractWaveSocketIOServlet.doGet(AbstractWaveSocketIOServlet.java:117)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.waveprotocol.box.server.rpc.ServerRpcProvider$WaveSocketIOServlet.service(ServerRpcProvider.java:566)
      at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
      at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
      at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
      at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
      at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
      at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1333)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:487)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:972)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:906)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
      at org.eclipse.jetty.server.Server.handle(Server.java:346)
      at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442)
      at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:910)
      at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:565)
      at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)
      at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
      at java.lang.Thread.run(Thread.java:679)
      2011-11-12 03:51:05.663:DBUG:oejs.ServletHandler:[GET /socket.io/xhr-multipart/null]@1488755615 org.eclipse.jetty.server
      .Request@58bc9b9f
      2011-11-12 03:51:05.663:DBUG:oejs.Server:RESPONSE /socket.io/xhr-multipart/null 500

      Attachments

        1. selenium-test-creation.html
          2 kB
          Vicente J. Ruiz Jurado

        Activity

          People

            yurize Yuri Zelikov
            yurize Yuri Zelikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: