<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta content="MSHTML 6.00.2900.2627" name="GENERATOR">
  <style></style>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi list (Bart),<br>
<br>
i'm looking at a few thing concerning fastcgi and oracle spatial. <br>
<br>
We're using OracleSpatial10g and fastcgi in a 4.5 compile, actually it
was compiled by Bart van den Eijnden :-) from recent sources<br>
We found that every maprefresh uses more and more memory, it's never
released.<br>
Maybe that this has got something to do with the included error<br>
<br>
fastcgi is supposed to keep open connections, but i think it does
something more.<br>
just now i stopped apache and memoryusage dropped from 2.5Gb to 300Mb
....<br>
<br>
<br>
<br>
&lt;?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?&gt;<br>
&lt;!DOCTYPE ServiceExceptionReport SYSTEM
<a class="moz-txt-link-rfc2396E" href="http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd">"http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"</a>&gt;<br>
&lt;ServiceExceptionReport version="1.1.1"&gt;<br>
&lt;ServiceException&gt;<br>
msDrawMap(): Image handling error. Failed to draw layer named
&amp;#39;hn_auto&amp;#39;.<br>
msOracleSpatialLayerWhichShapes(): OracleSpatial error. <b>Cannot
allocate items buffer</b><br>
&lt;/ServiceException&gt;<br>
&lt;/ServiceExceptionReport&gt;<br>
<br>
<br>
i found this in the archives
(<a class="moz-txt-link-freetext" href="http://mapserver.gis.umn.edu/wilma/mapserver-dev/0409/msg00149.html">http://mapserver.gis.umn.edu/wilma/mapserver-dev/0409/msg00149.html</a>)
where the error is 'thrown'<br>
<br>
&gt; /* allocate enough space for items */
<br>
&gt; if (layer-&gt;numitems &gt; 0) {
<br>
&gt; layerinfo-&gt;items = (item_text_array *)malloc( <br>
&gt; sizeof(item_text_array) * layer-&gt;numitems );
<br>
&gt; if (layerinfo-&gt;items == NULL)&nbsp; {
<br>
&gt; msSetError( MS_ORACLESPATIALERR,
<br>
&gt; "Cannot allocate items buffer",
<br>
&gt; "msOracleSpatialLayerWhichShapes()" );
<br>
&gt; return MS_FAILURE;
<br>
<br>
<br>
</body>
</html>