You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/05/24 12:59:04 UTC

DO NOT REPLY [Bug 51256] New: Memory consumption by parent process at sort_hook function

https://issues.apache.org/bugzilla/show_bug.cgi?id=51256

             Bug #: 51256
           Summary: Memory consumption by parent process at sort_hook
                    function
           Product: Apache httpd-2
           Version: 2.2.17
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: horowity@gmail.com
    Classification: Unclassified


I have noticed that sort_hook function don't destroy temporary pool.

This leads to a memory consumption of ~500K (=68 hooks * 8K) per PROCESS!

The resolution is very simple - destroy this pool after usage (before returning
the sorted hooks array).

Since the sorted hooks are memcpy'ed to another pool anyway, no one need this
pool.

-- 
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


DO NOT REPLY [Bug 51256] Memory consumption by parent process at sort_hook function

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51256

--- Comment #1 from horowity@checkpoint.com <ho...@gmail.com> 2011-05-24 13:32:43 UTC ---
Created attachment 27052
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27052
destroy the pool after usage

-- 
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


DO NOT REPLY [Bug 51256] Memory consumption by parent process at sort_hook function

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51256

Issac Goldstand <is...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Issac Goldstand <is...@apache.org> 2011-05-24 13:53:31 UTC ---
committed in r1127053

Thanks!

-- 
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


DO NOT REPLY [Bug 51256] Memory consumption by parent process at sort_hook function

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51256

horowity@checkpoint.com <ho...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable

-- 
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