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

It takes about 1 minute and 100% CPU to set a "wide" passive port range (org.apache.ftpserver.DefaultDataConnectionConfiguration$Passive.SetPorts())

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-M2
    • 1.0.6, 1.1.0
    • Server
    • None
    • Windows

    Description

      We observed a long (about 1 minute) plateau of 100% CPU when trying to setPorts() in org.apache.ftpserver.DefaultDataConnectionConfiguration$Passive with "wide" port ranges such as 2122-65535.

      We observed that FTPServer internally performs an apparently very expensive scan on this range.

      Can this be made less CPU intensive and quicker (to shorten server downtime and reduce resource consumption in production)?

      Attachments

        Activity

          People

            niklas Niklas Therning
            fredmoore Fred Moore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: