[mapserver-users] Memory allocation error

Alexandre Saunier alexandre.saunier at camptocamp.com
Wed Nov 24 07:26:44 PST 2010


Hello,

when trying to generate a map via WMS, MapServer returns the following
error above some width/height:

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msDrawMap(): Image handling error. Failed to draw layer named
'csraster_50k_192'.
msDrawRasterLayerGDAL(): Memory allocation error. Allocating work
image of size 1093x930x3 failed.
</ServiceException>
</ServiceExceptionReport>

It looks like a memory problem but the requested map size is not so
huge. csraster_50k_192 data are composed of about 50 1-to-4MB ECW
tiles. MapServer version is 5.6.5. GDAL version is 1.7.2. OS is Debian
Lenny.

Has anyone a hint about what may cause the problem? Is there some
memory setting that could be increased?

Thanks for your help!
Alexandre



More information about the MapServer-users mailing list