Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-403

FTP would periodically hang in MDC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.3, 1.0.4, 1.0.5, 1.0.6
    • 1.0.0-M1, 1.1.0
    • Core, Server
    • None
    • Encountered it both on Linux and FreeBSD, both on Sun JVM 1.6 and OpenJDK 6.

    Description

      FTP works fine for the most time but once in a while (depended on how often the FTP is used) it would hang, consuming 100% CPU, in
      java.util.HashMap.removeEntryForKey (HashMap.java:586)
      java.util.HashMap.remove (HashMap.java:555)
      org.slf4j.helpers.BasicMDCAdapter.remove (BasicMDCAdapter.java:91)
      org.slf4j.MDC.remove (MDC.java:156)
      org.apache.mina.filter.logging.MdcInjectionFilter.filter (MdcInjectionFilter.java:141)
      org.apache.mina.filter.util.CommonEventFilter.messageSent (CommonEventFilter.java:75)
      org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageSent (DefaultIoFilterChain.java:462)
      org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300 (DefaultIoFilterChain.java:46)
      org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageSent (DefaultIoFilterChain.java:802)
      org.apache.mina.filter.codec.ProtocolCodecFilter.messageSent (ProtocolCodecFilter.java:287)
      org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageSent (DefaultIoFilterChain.java:462)
      org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300 (DefaultIoFilterChain.java:46)
      org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageSent (DefaultIoFilterChain.java:802)
      org.apache.mina.core.filterchain.IoFilterEvent.fire (IoFilterEvent.java:80)
      org.apache.mina.core.session.IoEvent.run (IoEvent.java:63)
      org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask (OrderedThreadPoolExecutor.java:780)
      org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks (OrderedThreadPoolExecutor.java:772)
      org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run (OrderedThreadPoolExecutor.java:714)
      java.lang.Thread.run (Thread.java:636)

      Seems like a synchronization issue to me.

      Attachments

        Activity

          People

            niklas Niklas Therning
            artem@bizlink.ru ArtemGr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: