<div dir="ltr"><div dir="ltr">> If anyone is interested by our docker image, you can find it here: <a href="https://github.com/camptocamp/docker-mapserver">https://github.com/camptocamp/docker-mapserver</a></div><div dir="ltr"><br>Thanks for sharing this, Yves!<br><br>Regarding /vsicurl/ performance you mentioned:</div><div dir="ltr"><br>> We saw some drawback when displaying maps on low scale as too much files should be read. Visicurl seems copy the files in the container. We need to check this to confirm, but probably someone have a better understanding of how visicurl and visis3 work.<br><br>There might be two things at play:  First, using cloud-optimized geotiffs greatly reduces the number of curl requests required.  Secondly, a few GDAL config options dramatically improved performance for me.  Here's what I've had the best luck with (although your specific use case probably requires different settings)<br><br>CONFIG "CPL_VSIL_CURL_ALLOWED_EXTENSIONS"      "vrt tif geojson zip gpkg"<br>CONFIG "GDAL_DISABLE_READDIR_ON_OPEN"       "YES"<br>CONFIG "GDAL_INGESTED_BYTES_AT_OPEN"         "262144"      # Bytes. This is the value required to have 1 CURL request when opening one of our COGs that has many levels deep of overviews<br>CONFIG "VSI_CACHE"         "FALSE"<br>CONFIG "GDAL_CACHEMAX"          "80"       # MB<br>CONFIG "OGR_SQLITE_CACHE"                      "10"       # MB<br><br><br>I'm curious about this comment in your config: "mapserver has memory leaks, this limit should improve long term memory usage" <a href="https://github.com/camptocamp/docker-mapserver/blob/ba86f87b0ec1357ad5a8ae6159a005e24db64e3f/server/runtime/etc/apache2/conf-enabled/mapserver.conf#L1-L2">https://github.com/camptocamp/docker-mapserver/blob/ba86f87b0ec1357ad5a8ae6159a005e24db64e3f/server/runtime/etc/apache2/conf-enabled/mapserver.conf#L1-L2</a><br><br>I've got a MapServer instance configured with > 100 million requests/year.  I also see some behavior suggesting a memory leak somewhere, but I have not tracked it down. Here's my Dockerized MapServer, which uses NGINX to proxy to MapServer via FCGI: <a href="https://github.com/pedros007/debian-mapserver">https://github.com/pedros007/debian-mapserver</a><br><br>Here's my memory use for a Docker container running 8 mapserv processes. 300% in the scale corresponds to 3 GB of memory usage.<br><a href="https://i.imgur.com/CXBDsuw.png">https://i.imgur.com/CXBDsuw.png</a></div><div dir="ltr"><br></div><div>Cheers,</div><div>Pete<br><br></div></div>