Issue Details (XML | Word | Printable)

Key: MODPYTHON-184
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jim Gallacher
Reporter: Jim Gallacher
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
mod_python

Memory leak apache.table()

Created: 13/Aug/06 04:01 PM   Updated: 01/May/07 10:41 AM
Return to search
Component/s: core
Affects Version/s: 3.3.x, 3.2.10
Fix Version/s: 3.3.1

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works MP184-2006-08-25-grahamd-1.diff 2006-08-25 05:28 AM Graham Dumpleton 1 kB

Resolution Date: 27/Aug/06 05:28 AM


 Description  « Hide
There is a memory leak in apache.table().

from mod_python import apache

def handler(req):
    req.content_type = 'text/plain'
    t = apache.make_table()

    req.write('ok table:')
    return apache.OK

Using mpm-worker with StartServers 2, and 20000 requests results in memory consumption going from 1.2% to 9.3% per process. (ie approx 8k per request)

This will have an impact on FieldStorage which makes use of apache.make_table(), which is the deprecated name for apache.table()




 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.