I am way too swamped right now to fill a bug report, but check in the INCLUDES on your mapfile. I have this problem on 4.10.1 and the culprit was the includes I had on my main mapfile being left open.

   Cheers,
--
*Rodrigo Del C. Andrade*
/Programador/
/SIC - SSE - Soluções Segurança Pública/

*DÍGITRO TECNOLOGIA*
*E-mail:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
*Fone:* +55 48 3281-7314 / +55 48 3281-7000
*Fax:* +55 48 3281-7299
*Site:* www.digitro.com <http://www.digitro.com>


Daniel Morissette wrote:
Sorry for the late reply. That sounds like a leak of file handles, perhaps you could use 'lsof' to find out which files are left open (you'd have to do that before the script ends execution), and then file a bug with all the details.

Daniel


Benedito A. Cruz wrote:
Hello,

I am upgrading my mapserv applications to a new server. It starts working with no problems, but after a while the mapserv application stops working. After a lot of tests i discovered that the following Perl program works OK
using mapserv 4.2.0 in the old server , but returns with "Too many open
files" using mapserv 4.10.1 in the new server (it opens 23 files and die):


#-------------------------------------------------------------
#!/usr/local/bin/perl
$|=1;

use mapscript;

foreach (0..50)
{ print "$_ ";
  my $map = new
mapscript::mapObj('/home/mapcria/bin/data/mapfiles/default.map') or die
"Unable to open mapfile $!";
  undef $map;
}
#-------------------------------------------------------------

$./tooManyOpenFilesBug 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Unable to open
mapfile Too many open files at /home/xxx/tooManyOpenFilesBug
#-------------------------------------------------------------





Does anybody have a hint on the problem? I need it opening a lot of files, since I am using mapserv as a component of a web service and not as a CGI.

The versions I am using in the new server are:

Fedora Core 6 x86_64
Kernel 2.6.18-1.2798.fc6  x86_64 x86_64 x86_64 GNU/Linux
GCC 4.1.1 20070105 (Red Hat 4.1.1-51)
PERL 5.8.8
GDAL 1.4.0
GD 2.0.33
GEOS 2.2.3
GEOTIFF 1.2.3
PROJ 4.5.0


[]s


Benê




Reply via email to