fast-cgi

Huub hfl at HOME.NL
Wed Apr 27 08:49:58 EDT 2005


Hi List (Bart) (I did address the complete list actually)

fastcgi settings in httpd.conf:

LoadModule fastcgi_module modules/mod_fastcgi.dll

AddHandler fastcgi-script fcg fcgi fpl
FastCgiConfig -idle-timeout 300 -killInterval 500 -initial-env PROJ_LIB
-initial-env PATH -initial-env TNS_ADMIN


Huub

Bart van den Eijnden wrote:

>Huub,
>
>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
>
>Bart van den Eijnden
>Syncera-ITSolutions
>Postbus 270
>2600 AG  DELFT
>
>tel.nr.: 015-7512436
>email: BEN at Syncera-ITSolutions.nl
>
>
>
>>>>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
>released.
>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
>"http://schemas.opengeospatial.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
>&#39;hn_auto&#39;.
>msOracleSpatialLayerWhichShapes(): OracleSpatial error. *Cannot allocate
>items buffer*
></ServiceException>
></ServiceExceptionReport>
>
>
>i found this in the archives
>(http://mapserver.gis.umn.edu/wilma/mapserver-dev/0409/msg00149.html)
>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)  {
> > msSetError( MS_ORACLESPATIALERR,
> > "Cannot allocate items buffer",
> > "msOracleSpatialLayerWhichShapes()" );
> > return MS_FAILURE;
>
>
>
>
>
>



More information about the mapserver-dev mailing list