maptiler / tileserver-gl

Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
https://tileserver.readthedocs.io/en/latest/
Other
2.18k stars 631 forks source link

tileserverGL hangs while load testing.. #186

Open peldhose opened 7 years ago

peldhose commented 7 years ago

Hi , We were trying to do a load test on tile server with world.mbtiles , but after severing tileserver gets hanged and not serving any of raster tiles . This is what am getting in console ;

GET /styles/klokantech-basic/rendered/8/99/16.png - - ms - - GET /styles/klokantech-basic/rendered/8/56/26.png - - ms - - GET /styles/klokantech-basic/rendered/8/1/4.png - - ms - - GET /styles/klokantech-basic/rendered/8/26/94.png - - ms - - GET /styles/klokantech-basic/rendered/8/32/62.png - - ms - - GET /styles/klokantech-basic/rendered/8/69/29.png - - ms - - GET /styles/klokantech-basic/rendered/8/36/68.png - - ms - - GET /styles/klokantech-basic/rendered/8/48/11.png - - ms - - GET /styles/klokantech-basic/rendered/8/53/50.png - - ms - - GET /styles/klokantech-basic/rendered/8/14/50.png - - ms - - GET /styles/klokantech-basic/rendered/8/63/33.png - - ms - - GET /styles/klokantech-basic/rendered/8/56/65.png - - ms - - GET /styles/klokantech-basic/rendered/2/3/1.png - - ms - - GET /styles/klokantech-basic/rendered/2/0/1.png - - ms - - GET /styles/klokantech-basic/rendered/2/3/0.png - - ms - - GET /styles/klokantech-basic/rendered/2/2/0.png - - ms - - GET /styles/klokantech-basic/rendered/2/0/3.png - - ms - - GET /styles/klokantech-basic/rendered/2/3/3.png - - ms - -

none of the above request rendered .

klokan commented 7 years ago

If you updated to the latest version - then remove "/rendered" from the URL.

See the release notes of v2.0: https://github.com/klokantech/tileserver-gl/releases

peldhose commented 7 years ago

hi klokan, no .. code wasnt updated to latest.So let me try with latest version .. thanks for the reply ..

one more Qstn: since all requests are serving from one data file, i got an error which said " Too many open files " error .. so can you suggest any solution for this ???

mmuelder commented 6 years ago

I have a (probably) related question: I noticed that the amount of RAM used by the tileserver-gl (running in docker container) increases by scrolling/zooming in the maps. I'm guessing the generated tiles are being cached in the the memory? I noticed that when the used RAM reaches the maximum available size (e. g. close to 4 GB if the server has 4 GB RAM), the tileserver crashes/hangs and the container needs to be restarted (btw: docker restart doesn't work for me, server is not reachable afterwards, i have to kill+start). The amount of RAM used never decreases over time, even if the server is idle for hours. Is this a known problem? Is there a way to prevent the continuous increase in RAM usage/crash?

MJulaie commented 6 years ago

I have the same issue as @mmuelder . Is there any update or plan to fix this issue?

loicgasser commented 6 years ago

Hi, tileserver-gl is based on expressjs and like any express application, it is not meant to be deployed as is as your application will work on a single process. To scale your tileserver-gl app you could try using something like p2m http://pm2.keymetrics.io for instance.

gauravAtProptiger commented 5 years ago

Any update on this issue? I have faced the same issue several times.