Too many open files on mapserv 4.10.1
Benedito A. Cruz
bene at CRIA.ORG.BR
Mon May 7 11:01:16 PDT 2007
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ê
More information about the MapServer-users
mailing list