Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.3, 1.0.4, 1.0.5, 1.0.6
    • Fix Version/s: 1.0.7, 1.1.0
    • Component/s: Core, Server
    • Labels:
      None
    • Environment:
      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.

        Activity

        Hide
        ArtemGr added a comment -

        P.S. This is an old bug, I encountered it periodically for at least a year.

        Show
        ArtemGr added a comment - P.S. This is an old bug, I encountered it periodically for at least a year.
        Hide
        Niklas Gustavsson added a comment -

        What version of slf4j are you using and have you tried upgrading slf4j?

        Show
        Niklas Gustavsson added a comment - What version of slf4j are you using and have you tried upgrading slf4j?
        Hide
        ArtemGr added a comment -

        I'm using slf4j-api-1.6.1.jar and slf4j-jdk14-1.6.1.jar for some time.
        Went thru several MINA and slf4j upgrades over time (while tracking the FTPSERVER SVN) in hopes that it will go away.

        Show
        ArtemGr added a comment - I'm using slf4j-api-1.6.1.jar and slf4j-jdk14-1.6.1.jar for some time. Went thru several MINA and slf4j upgrades over time (while tracking the FTPSERVER SVN) in hopes that it will go away.
        Hide
        ArtemGr added a comment -

        Still seeing it in 1.0.6, Mina 2.0.4.

        Show
        ArtemGr added a comment - Still seeing it in 1.0.6, Mina 2.0.4.
        Hide
        Niklas Gustavsson added a comment -

        I would recommend reporting this to the slf4j project. Please provide the issue URL in this issue as I would like to follow the discussions and upgrade if its fixed.

        Show
        Niklas Gustavsson added a comment - I would recommend reporting this to the slf4j project. Please provide the issue URL in this issue as I would like to follow the discussions and upgrade if its fixed.
        Hide
        ArtemGr added a comment -

        Niklas, I have found existing issue at http://bugzilla.slf4j.org/show_bug.cgi?id=203

        Show
        ArtemGr added a comment - Niklas, I have found existing issue at http://bugzilla.slf4j.org/show_bug.cgi?id=203
        Hide
        Niklas Gustavsson added a comment -

        Thanks for reporting back!

        Show
        Niklas Gustavsson added a comment - Thanks for reporting back!
        Hide
        Ceki Gulcu added a comment - - edited

        SLF4J bug 203 was fixed moments ago and is part of SLF4J version 1.6.4.

        Show
        Ceki Gulcu added a comment - - edited SLF4J bug 203 was fixed moments ago and is part of SLF4J version 1.6.4.
        Hide
        Niklas Gustavsson added a comment -

        Thanks for reporting and thanks for the fix Ceki! Now fixed in svn.

        Show
        Niklas Gustavsson added a comment - Thanks for reporting and thanks for the fix Ceki! Now fixed in svn.

          People

          • Assignee:
            Niklas Gustavsson
            Reporter:
            ArtemGr
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development