[mapserver-users] Too many open files...

Lee Meilleur lee.meilleur at gis.leg.mn
Tue Mar 29 09:37:15 PDT 2011


The problem ended up being an issue with ulimit, the parameters I entered were not taking.  I found the page below which seems to have resolved the issue.  Thanks again for all of the suggestions.

http://www.xenoclast.org/doc/benchmark/HTTP-benchmarking-HOWTO/node7.html

Lee


-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Monday, March 28, 2011 5:05 PM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Too many open files...

Lee,

I think I have run into this before.
Turn off SELinux if it is running and I bet that is it.

Otherwise, try building mapserver from source, maybe you ahve a library or rpm packaging issue.

-Steve W

On 3/28/2011 5:57 PM, Jim Klassen wrote:
>
> Are you running anything else significant on the machine?
>
> It would generally be very difficult for MapServer, running in CGI 
> mode, to use up all the open files.
>
> The only cases I can think of that could be related to MapServer 
> serving shapefiles would be (1) FastCGI and a bug that isn't closing 
> files.  If this is the case, the issue should go away for awhile after 
> you restart apache.  (2) if you have some sort of tileindex with a 
> huge number of items in it or a tileindex that points back to itself.
>
> Otherwise, I could see this if something else on the machine is using 
> up all the file handles (globally or per user).
>
> Another random thought... is there some interaction with SELinux 
> (assuming you have SELinux enforcing)?
>
> I think you said this behavior was new... if so, has anything changed 
> on the machine lately?
>
> Sorry I can't be more helpful.
>
> Jim K
>
> On Mar 28, 2011, at 4:45 PM, Lee Meilleur wrote:
>
>> Fedora 12 Apache 2.2.14 Prefork MPM
>>
>> ./shp2img: error while loading shared libraries: librx.so.0: cannot 
>> open shared object file: No such file or directory (this was news to 
>> me)
>>
>> Serving shapefiles only.
>>
>> MapServer version 5.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE 
>> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
>> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
>> SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR 
>> INPUT=GDAL INPUT=SHAPEFILE
>>
>> Thanks
>>
>> -----Original Message----- From:
>> mapserver-users-bounces at lists.osgeo.org
>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen 
>> Woodbridge Sent: Monday, March 28, 2011 4:29 PM To:
>> mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Too 
>> many open files...
>>
>> On 3/28/2011 5:05 PM, Lee Meilleur wrote:
>>> Hello,
>>>
>>> Has anyone run into the error: "Too many open files: couldn't set 
>>> child process attributes: /var/www/cgi-bin/mapserv"? This error 
>>> shows up in an Apache error_log. A broken image now shows up for 
>>> MapServer layers since this started. I've tried changing the ulimits 
>>> or the MaxRequestsPerChild for Apache with no luck.
>>> Any other ideas?
>>
>> You probably need to give us more information like:
>>
>> Which OS? Which Apache version? Which Apache MPM module are you 
>> using? /var/www/cgi-bin/mapserv -v output?
>>
>> Does this happen when you run shp2img? What are you serving via 
>> mapserver? vectors, imagery, database, etc?
>>
>> -Steve W _______________________________________________
>> mapserver-users mailing list mapserver-users at lists.osgeo.org 
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> _______________________________________________ mapserver-users 
>> mailing list mapserver-users at lists.osgeo.org 
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________ mapserver-users 
> mailing list mapserver-users at lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list