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

httpd memory use proportional to file size

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • all
    • nonblocking
    • unknown
    • FreeBSD

    Description

      When a commit over ra_dav is adding a file to the repository, the
      httpd process allocates as much memory as the size of the file being
      transfered. For large files this isn't possible and httpd runs out of
      memory midway through the commit.
      
      How to replicate:
      
      1. Create a huge file containing random data. I used dd and
      /dev/urandom. The file only has to be a little bigger than the maximum
      ammount of memory a process on the server can allocate. You can reduce
      the hard limit on the data segment size to view this problem with a
      smaller file if you wish.
      
      2. Add the file to a repository.
      
      3. Commit the change.
      
      4. Watch httpd run out of memory.
      

      Original issue reported by mprice

      Attachments

        1. 1_mem.txt
          8 kB
          Subversion Importer

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: