Hi all I have set up my own local OSM server according to http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages on my Kubuntu 12.04 system. It works great, how ever I am a bit disappointed about the rendering speed. Even when I use it on the same PC, the tiles are rendered and loaded in the browser quite slow. I would like to figure out where the boddle neck is. None of the CPU cores (4 cores, Intel Core i5 2500K) is at 100%. Also the RAM (4 GB) is not at its limit. I use a SSD as hard drive for the system and tile store. Once the tiles are rendered and served from the cache, it is as fast as I would expect it to be normally. How can I see the work load of the apache2, renderd or postgresql service? I could not find any usful log file in /var/log/. asked 16 Oct '12, 18:30 CaCO3 |
Most likely the bottleneck is the database. There's a PostgreSQL config option called Yo do have the database on the SSD, right? It is absolutely normal for tiles on the lower zoom levels, up to z13 or z14, to take longer than the user is prepared to wait; that's why these are usually rendered in advance (a.k.a. "seeding" of the tile cache). answered 16 Oct '12, 19:58 Frederik Ramm ♦ 1
Thank you for your quick reply. My database is on the SSD (my whole system is on it). My main usage will be on zoom level 18, so prerendering is not an option. I will have a look on the postgreSQL config. Since I am not planing to update the database frequently, I dropped the --slim parameter on the osm2postgreSQL import. Also I increased the memory. How ever I understand this is only the memory limit during the import. My command was: osm2pgsql -C 2500 Switzerland.osm.pbf Over all, I would expect that my server is rendering and serving faster than the public osm server, since my server has enough resources for one country and I am the only user on it.
(17 Oct '12, 08:26)
CaCO3
I'd check the postgresql performance too. But before that, one all-round tool you can use is
(17 Oct '12, 10:17)
Vincent de P... ♦
1
Probably not the issue here, but make sure that you have set the planet-import-complete file. Otherwise mod_tile will try and re-render everything every 3 days, which is unnecessary if you don't update your database. Otherwise, can you say how slow slow is? Seconds? 10s of seconds or minutes? At which zoom level? Rendering Z18 tiles of a Switzerland only db should probably take < 3 seconds in most cases.
(18 Oct '12, 16:37)
apmon
|