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
Jim Gallacher made changes - 13/Aug/06 04:03 PM
Field Original Value New Value
Description 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)


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


Graham Dumpleton made changes - 25/Aug/06 05:04 AM
Fix Version/s 3.3 [ 12310101 ]
Graham Dumpleton made changes - 25/Aug/06 05:28 AM
Attachment MP184-2006-08-25-grahamd-1.diff [ 12339539 ]
Graham Dumpleton made changes - 27/Aug/06 05:28 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Graham Dumpleton made changes - 01/May/07 10:41 AM
Status Resolved [ 5 ] Closed [ 6 ]