Opened 18 years ago

Last modified 15 years ago

#1859 closed defect

php/mapscript has a memory leak — at Initial Version

Reported by: woodbri@… Owned by: mapserverbugs
Priority: high Milestone: 5.6 release
Component: MapScript-PHP Version: 4.10
Severity: normal Keywords:
Cc: dmorissette

Description

I just updated to mapserver nightly (Aug 9, 2006) and I'm running the ka-map
precache2.php modified to run in apache. The previous fix to solve the leaking
file handles improves things greatly, but there is still a memory leak.

If I restart apache and fire off the script it uses a modest amount of memory,
under 300MB for the process. Since I'm running 25000 scale, it runs a long time,
and after 24 hours the process is using over 1GB of memory.

I can send my copy of precache2.php if that would help. The mapfile uses:

  OUTPUTFORMAT
    NAME PNG8
    DRIVER "GD/PNG"
    EXTENSION "png"
    MIMETYPE "image/png"
    IMAGEMODE RGBA
    TRANSPARENT OFF
    FORMATOPTION "QUANTIZE_FORCE=ON"
    FORMATOPTION "QUANTIZE_DITHER=OFF"
    FORMATOPTION "QUANTIZE_COLORS=256"
  END

I assume this is reproducible with any mapfile.

Change History (0)

Note: See TracTickets for help on using tickets.