Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-184

Memory leak apache.table()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.x, 3.2.10
    • 3.3.1
    • core
    • None

    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)

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

      Attachments

        1. MP184-2006-08-25-grahamd-1.diff
          1 kB
          Graham Phillip Dumpleton

        Activity

          People

            jgallacher James Paul Gallacher
            jgallacher James Paul Gallacher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: