2

I've setup a Mapnik tileserver with this steps: https://switch2osm.org/manually-building-a-tile-server-18-04-lts/

This are the specs of my server:

  • OS: Ubuntu 18.04 LTS
  • 8 vcpu's
  • 28 GB RAM

I've imported an extract of Europe (Belgium-Netherlands-France-Germany). Tile server is running, but tile generation is very slow. When showing tiles in a leaflet map, it can take 30-40 seconds to render one mapview. I've followed the steps from https://switch2osm.org/manually-building-a-tile-server-18-04-lts/ literally.

Is this normal behaviour?

  • do you have a tile cache in place on the server (e.g. MapProxy)? I don't know much about Mapnik but without a tile cache, it sounds like it might be (re-)rendering all tiles on demand. MapProxy will cache rendered tiles and send those back to clients, which should be much faster. You can also 'seed the cache' (e.g. pre-render all tiles up to zoom level 10, or higher zoom levels in particular areas) – Steven Kay Jun 25 '18 at 18:55
  • I can't comment from experience about how fast that spec of server should render a tile based on most of western Europe, but I doubt that 30-40s is excessive for low zoom tiles. Normally people pre-render low zoom tiles so that there's always a tile available, even if it's not bang up to date. Try giving timings for a /dirty on tiles at different zoom levels, e.g. a.tile.openstreetmap.org/7/65/43.png and a.tile.openstreetmap.org/17/67021/44876.png (but obviously on your system, not osm.org). – SomeoneElse Jul 2 '18 at 14:05
  • 1
    @Steven Kay Renderd/Mod_tile (which those instructions use) can render on demand but will return an existing tile out to the requester if one exists. On a public site I prerender up to z12 using render_list, and that replaces tiles that are 4 days old. – SomeoneElse Jul 2 '18 at 14:08
  • One more thing - if you look at /var/log/syslog you'll see "START TILE" and "DONE TILE" and more besides as it's actually rendering tiles. – SomeoneElse Jul 2 '18 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.