[mapserver-dev] More Performance

Paul Ramsey pramsey at cleverelephant.ca
Mon May 12 14:50:46 EDT 2008


Andrea Aime pointed out that Geoserver is still running about 3-times
as fast as Mapserver in some use cases, which has prompted me to
discover Shark (note to developers on OS/X, learn to run Shark).

Among the things Shark tells me is that the epsg configuration file
remains the biggest (avoidable, but non-obvious) performance issue,
potentially hogging huge amounts of resources, since the projections
are loaded even for layers that aren't being rendered.  Even worse,
it's a performance issue that fcgi doesn't fix, since the loading
happens in msLoadMap.

Another thing Shark tells me is that we are burning resources in
curl_global_init (called from msHTTPInit via msHTTPInitRequestObj)
even when there are no WMS or WFS layers defined.  This is eating
about 5% of the total cycles, on a fairly well-tuned map file, and
could be fixed.

Finally, the biggest single resource muncher in this small-easy-map
case is loading the font file.  This could be an artefact of the OS/X
font loading, or it could be generic. It looks like gd has a font
cache, so perhaps this goes away in FCGI.  I guess that should be my
next test, because if it doesn't go away it's a big win in the FCGI
case to make it go away.

P.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot_01.png
Type: image/png
Size: 118299 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20080512/2c0a0221/screenshot_01-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bench.map
Type: application/octet-stream
Size: 2276 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20080512/2c0a0221/bench-0001.obj


More information about the mapserver-dev mailing list