Opened 17 years ago
Last modified 17 years ago
#2013 closed defect
MapScript not closing font file handles and/or "include"d mapfiles — at Initial Version
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | high | Milestone: | 5.0 release |
Component: | MapServer C Library | Version: | 4.10 |
Severity: | major | Keywords: | |
Cc: | jmckenna@…, dmorissette, zjames |
Description
When using PHP Mapscript to generate map tiles (using tile.php from the Ka-Map project), file handles to TTF font files aren't being closed after the script is finished. The output of lsof shows: /xxx/VeraBd.ttf httpd 31401 apache mem REG 253,0 65932 18645269 /xxx/Vera.ttf httpd 31439 apache mem REG 253,0 63684 18645272 /xxx/VeraIt.ttf httpd 31439 apache mem REG 253,0 65932 18645269 /xxx/Vera.ttf In addition, the same thing seems to happen when using the "INCLUDE" directive inside a mapfile. The included mapfiles aren't being closed: In main mapfile: INCLUDE "/xxx/subfile1.map" INCLUDE "/xxx/subfile2.map" Output of lsof: httpd 31978 apache 60r REG 253,0 85032 9389109 /xxx/subfile1.map httpd 31978 apache 61r REG 253,0 3580 9389098 /xxx/subfile2.map httpd 31978 apache 62r REG 253,0 85032 9389109 /xxx/subfile1.map httpd 31978 apache 63r REG 253,0 3580 9389098 /xxx/subfile2.map As a result, continued requests to the script eventually exceed the system's maximum number of open file handles and the requests begin to fail. This doesn't occur when using the mapserv executable on the same mapfiles.
Note:
See TracTickets
for help on using tickets.