httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52123] New: High memory usage in propfind
Date Wed, 02 Nov 2011 13:07:43 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52123

             Bug #: 52123
           Summary: High memory usage in propfind
           Product: Apache httpd-2
           Version: 2.2.20
          Platform: PC
        OS/Version: Solaris
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_dav
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: arne@die-jansens.de
    Classification: Unclassified


When doing a propfind on directories with many files (e.g. 100000), mod_dav
consumes multiple GB of memory. The cause is that for each file, the prop_db
gets opened and closed, but closing the propdb does not free any memory. There
is a source code comment:

    /* Currently, mod_dav's pool usage doesn't allow clearing this pool. */
#if 0
    apr_pool_destroy(propdb->p);
#endif

Even with the pool_destroy in place, the dav_propdb structure itself would not
get destroyed, as it is not allocated from the pool.
The original commit that added this pool was talking about 'lifetime issues'.
Are they resolved yet?
Or, on the other hand, would it be possible to open the propdb only once for
the propfind request?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message