[MapProxy] Too many open files

Oliver Tonnhofer olt at omniscale.de
Tue Nov 3 23:59:00 PST 2015


Hi,


> On 02.11.2015, at 14:10, Jesse V Griffis <jvgriffis at gmail.com> wrote:
> I have a mapproxy install with a couple hundred separate layers. I am using sqlite for storage. I am deployed using gunicorn. Over time, the gunicorn/mapproxy process opens most of the sqlite files and apparently never closes them, eventually throwing "Too many open files" errors that require a mapproxy restart.
> 
> Obviously I don't want to have to monitor for that and restart it. I can increase the number of open files to a very large number and it appears to go away but I'm afraid that's a temporary solution.


Your observation is right, MapProxy does keep SQLite files open. The only solution is to increase the number of open files (ulimit) as you already did. 




Regards,
Oliver

-- 
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | http://omniscale.com
OpenStreetMap WMS and tile services         | http://maps.omniscale.com



More information about the MapProxy mailing list