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
Repository Revision Date User Message
ASF #437300 Sun Aug 27 05:28:27 UTC 2006 grahamd (MODPYTHON-184) Fix memory leak in apache.make_table(). This was used by
util.FieldStorage class so affected all code using forms.
Files Changed
MODIFY /httpd/mod_python/trunk/src/tableobject.c
MODIFY /httpd/mod_python/trunk/lib/python/mod_python/__init__.py
MODIFY /httpd/mod_python/trunk/src/include/mpversion.h

Repository Revision Date User Message
ASF #437304 Sun Aug 27 06:04:46 UTC 2006 grahamd (MODPYTHON-184) Documentation on fix to memory leak in apache.make_table().
Files Changed
MODIFY /httpd/mod_python/trunk/Doc/appendixc.tex