java.io.IOException: Closing session that seems to be stalled. Preventing OOM

JIRA | Guus der Kinderen | 2 years ago
  1. 0

    Daryl found this in the logfiles (five rotated log files full, all logged within a couple of seconds). The probable cause is {{StalledSessionsFilter}} trying to (asynchronously) close a session that is already being closed. {code}2015.03.19 19:18:49 org.jivesoftware.openfire.nio.ConnectionHandler - ConnectionHandler reports IOException for session: (0x000003D3: nio socket, server, /REDACTED:46248 => /REDACTED:5222) java.io.IOException: Closing session that seems to be stalled. Preventing OOM at org.jivesoftware.openfire.net.StalledSessionsFilter.filterWrite(StalledSessionsFilter.java:60) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$8(DefaultIoFilterChain.java:621) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:953) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:877) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:618) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:502) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:447) at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:291) at org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession.java:857) at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableImpl.java:354) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:239) at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:138) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:80) at org.jivesoftware.openfire.net.SocketReader.processMessage(SocketReader.java:307) at org.jivesoftware.openfire.net.ServerSocketReader.access$301(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$3.run(ServerSocketReader.java:148) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}

    Jive Software Open Source | 2 years ago | Guus der Kinderen
    java.io.IOException: Closing session that seems to be stalled. Preventing OOM
  2. 0

    Daryl found this in the logfiles (five rotated log files full, all logged within a couple of seconds). The probable cause is {{StalledSessionsFilter}} trying to (asynchronously) close a session that is already being closed. {code}2015.03.19 19:18:49 org.jivesoftware.openfire.nio.ConnectionHandler - ConnectionHandler reports IOException for session: (0x000003D3: nio socket, server, /REDACTED:46248 => /REDACTED:5222) java.io.IOException: Closing session that seems to be stalled. Preventing OOM at org.jivesoftware.openfire.net.StalledSessionsFilter.filterWrite(StalledSessionsFilter.java:60) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$8(DefaultIoFilterChain.java:621) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:953) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:877) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:618) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:502) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:447) at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:291) at org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession.java:857) at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableImpl.java:354) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:239) at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:138) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:80) at org.jivesoftware.openfire.net.SocketReader.processMessage(SocketReader.java:307) at org.jivesoftware.openfire.net.ServerSocketReader.access$301(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$3.run(ServerSocketReader.java:148) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}

    JIRA | 2 years ago | Guus der Kinderen
    java.io.IOException: Closing session that seems to be stalled. Preventing OOM
  3. 0

    Daryl found this in the logfiles (five rotated log files full, all logged within a couple of seconds). The probable cause is {{StalledSessionsFilter}} trying to (asynchronously) close a session that is already being closed. {code}2015.03.19 19:18:49 org.jivesoftware.openfire.nio.ConnectionHandler - ConnectionHandler reports IOException for session: (0x000003D3: nio socket, server, /REDACTED:46248 => /REDACTED:5222) java.io.IOException: Closing session that seems to be stalled. Preventing OOM at org.jivesoftware.openfire.net.StalledSessionsFilter.filterWrite(StalledSessionsFilter.java:60) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$8(DefaultIoFilterChain.java:621) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:953) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:877) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:618) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:502) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:447) at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:291) at org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession.java:857) at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableImpl.java:354) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:239) at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:138) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:80) at org.jivesoftware.openfire.net.SocketReader.processMessage(SocketReader.java:307) at org.jivesoftware.openfire.net.ServerSocketReader.access$301(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$3.run(ServerSocketReader.java:148) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}

    Jive Software Open Source | 2 years ago | Guus der Kinderen
    java.io.IOException: Closing session that seems to be stalled. Preventing OOM
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check for bad records in the input data (like '(null)')
  6. 0
    samebug tip
    Bad input data (not properly separated)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Closing session that seems to be stalled. Preventing OOM

      at org.jivesoftware.openfire.net.StalledSessionsFilter.filterWrite()
    2. org.jivesoftware.openfire
      StalledSessionsFilter.filterWrite
      1. org.jivesoftware.openfire.net.StalledSessionsFilter.filterWrite(StalledSessionsFilter.java:60)
      1 frame
    3. Apache MINA Core
      AbstractIoSession.write
      1. org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625)
      2. org.apache.mina.core.filterchain.DefaultIoFilterChain.access$8(DefaultIoFilterChain.java:621)
      3. org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:953)
      4. org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:877)
      5. org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625)
      6. org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:618)
      7. org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:502)
      8. org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:447)
      8 frames
    4. org.jivesoftware.openfire
      ServerSocketReader$3.run
      1. org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:291)
      2. org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession.java:857)
      3. org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289)
      4. org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableImpl.java:354)
      5. org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:239)
      6. org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:138)
      7. org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:80)
      8. org.jivesoftware.openfire.net.SocketReader.processMessage(SocketReader.java:307)
      9. org.jivesoftware.openfire.net.ServerSocketReader.access$301(ServerSocketReader.java:60)
      10. org.jivesoftware.openfire.net.ServerSocketReader$3.run(ServerSocketReader.java:148)
      10 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames