Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-838

file descriptors leak with new http provider endpoint when having a wrong provider's target url

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • servicemix-http-2009.01, servicemix-http-2009.02, servicemix-http-2010.01
    • 2013.02
    • servicemix-http
    • None
    • Linux 2.6.35-23-generic-pae #41-Ubuntu SMP i686 GNU/Linux
      SMX- web app distribution
      jboss 4.3

    Description

      Hi all! i have been facing a connection leak when using new http provider endpoints.
      The component consumes linux kernel's file descriptors when provider endpoint points to non existing URL.
      To test it, i have attached a single http proxy that consumes requests that are sent thro a http provider with a wrong target URL. it can be consumed using the following line:

      wget *serviceURL* --post-data="<msg>amsg</msg>"

      Each time a request is done, a file descriptor is consumed but released. It can be detected by counting consumed file descriptor:

      ps aux |grep java # helps to determine which SMX process id

      lsof -p *smxProcessId* | wc -l #counts smx file descriptors

      As long requests are done, last command line will show an increasing usage fd count. Then maximum allowed file descriptor is reached, SMX stop working because it cant open any kind of connection.
      Regards

      Attachments

        1. FDIssueExample.tgz
          3 kB
          Matias Urbieta

        Activity

          People

            Unassigned Unassigned
            murbieta Matias Urbieta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: