Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-2019

httpd child processes waiting for locks can hit max_child limit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • all
    • unscheduled
    • mod_dav_svn
    • None

    Description

      If a repository wedges (e.g., requiring recovery), then subsequent httpd child
      processes will wait forever attempting to get a lock on it.  They won't leave
      errors in the apache logs, because nothing "went wrong" yet from their point of
      view -- they're just waiting for a lock.
      
      Eventually, the max number of children will be reached, interfering with all web
      services, not just Subversion.  This has been seen on svn.red-bean.com.
      
      Possible solution: set an alarm() for 30 (or so?) seconds in the future before
      trying to open a repository.  If succeed in opening, then cancel the alarm. 
      Otherwise, handle SIGALARM, when it comes, by logging an error and exiting.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kfogel Karl Fogel
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: