Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Wed Apr 27 08:40:58 EDT 2005


maybe it is wiser to ask if other people have been experiencing memory leaks with Mapserver as a FastCGI?

I do remember Fernando warning me for memory leaks.

What are your settings for FastCgiConfig in the Apache httpd.conf?

Best regards,

Bart van den Eijnden
Postbus 270
2600 AG  DELFT 015-7512436
email: BEN at

>>> Huub <hfl at HOME.NL> 04/27/05 02:22pm >>>
Hi list (Bart),

i'm looking at a few thing concerning fastcgi and oracle spatial.

We're using OracleSpatial10g and fastcgi in a 4.5 compile, actually it
was compiled by Bart van den Eijnden :-) from recent sources
We found that every maprefresh uses more and more memory, it's never
Maybe that this has got something to do with the included error

fastcgi is supposed to keep open connections, but i think it does
something more.
just now i stopped apache and memoryusage dropped from 2.5Gb to 300Mb ....

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
<ServiceExceptionReport version="1.1.1">
msDrawMap(): Image handling error. Failed to draw layer named
msOracleSpatialLayerWhichShapes(): OracleSpatial error. *Cannot allocate
items buffer*

i found this in the archives
where the error is 'thrown'

 > /* allocate enough space for items */
 > if (layer->numitems > 0) {
 > layerinfo->items = (item_text_array *)malloc(
 > sizeof(item_text_array) * layer->numitems );
 > if (layerinfo->items == NULL)  {
 > "Cannot allocate items buffer",
 > "msOracleSpatialLayerWhichShapes()" );
 > return MS_FAILURE;

More information about the mapserver-dev mailing list