问题描述
问题: 瓷砖的渲染时间非常长(1 天或从不) 问题: 怎么做才能让瓷砖快速加载和加载?如何解决这个问题?
说明: 在尝试提高图块渲染速度时,我进行了本网站 https://www.paulnorman.ca/blog/2016/06/improving-speed-with-reclustering/ 中描述的重新聚类。 执行此操作后,我地图上的图块开始生成更长的时间(图块渲染甚至在此之前也很慢)。 有趣的是 http://my_localhost/osm/0/0/0.png 正在快速加载,并且一些 6-8 缩放的图块也在加载。所有其他图块均未加载。
渲染显示 DEBUG:连接 0,fd 34 关闭,现在剩下 29 个。
renderd.conf:
[renderd]
stats_file=/var/run/renderd/renderd.stats
socketname=/var/run/renderd/renderd.sock
num_threads=10
tile_dir=/var/lib/mod_tile
[mapnik]
plugins_dir=/usr/lib/mapnik/2.0/input
font_dir=/usr/share/fonts/truetype/ttf-dejavu
font_dir_recurse=false
[default]
URI=/osm/
TILEDIR=/var/lib/mod_tile
XML=/etc/mapnik-osm-data/osm.xml
DESCRIPTION=This is the standard osm mapnik style
sites-available/tileserver.conf 的一部分
LoadTileConfigFile /etc/renderd.conf
ModTileRequestTimeout 300
ModTileMissingRequestTimeout 1800
ModTileMaxLoadOld 2
ModTileMaxLoadMissing 5
ModTileRenderdSocketName /var/run/renderd/renderd.sock
renderd[30436]: Rendering daemon started
renderd[30436]: Initiating request_queue
renderd[30436]: Parsing section renderd
renderd[30436]: Parsing render section 0
renderd[30436]: Parsing section mapnik
renderd[30436]: Parsing section default
renderd[30436]: config renderd: unix socketname=/var/run/renderd/renderd.sock
renderd[30436]: config renderd: num_threads=10
renderd[30436]: config renderd: num_slaves=0
renderd[30436]: config renderd: tile_dir=/var/www/maps/tiles/cache
renderd[30436]: config renderd: stats_file=/var/run/renderd/renderd.stats
renderd[30436]: config mapnik: plugins_dir=/usr/lib/mapnik/3.0/input
renderd[30436]: config mapnik: font_dir=/usr/share/fonts/truetype/dejavu
renderd[30436]: config mapnik: font_dir_recurse=0
renderd[30436]: config renderd(0): Active
renderd[30436]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock
renderd[30436]: config renderd(0): num_threads=10
renderd[30436]: config renderd(0): tile_dir=/var/www/maps/tiles/cache
renderd[30436]: config renderd(0): stats_file=/var/run/renderd/renderd.stats
renderd[30436]: config map 0: name(default) file(/var/www/maps/tiles/styles/osm_bright/map_bright.xml) uri(/osm/) htcp() host()
renderd[30436]: Initialising unix server socket on /var/run/renderd/renderd.sock
renderd[30436]: Created server socket 3
renderd[30436]: Renderd is using mapnik version 3.0.22
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerif-BoldItalic.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-Bold.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Oblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-Italic.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Boldoblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-BoldItalic.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSans-ExtraLight.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerif-Italic.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Oblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSans-Boldoblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Bold.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuMathTeXGyre.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Boldoblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSans-Oblique.ttf
renderd[30436]: DEBUG: Loading font: /usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf
Running in foreground mode...
renderd[30436]: Starting stats thread
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
renderd[30436]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/www/maps/tiles/cache
renderd[30436]: Loading parameterization function for
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
Mapnik LOG> 2021-04-05 14:26:00: warning: unable to find face-name 'Unifont Medium' in FontSet 'fontset-3'
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
renderd[30436]: Using web mercator projection settings
...
renderd[30436]: DEBUG: Connection 48,fd 61 closed,Now 48 left
renderd[30436]: DEBUG: Got incoming connection,fd 61,number 49
renderd[30436]: DEBUG: Got incoming request with protocol version 2
renderd[30436]: DEBUG: Got command Dirty fd(61) xml(default),z(10),x(621),y(352),mime(image/png),options()
renderd[30436]: DEBUG: Connection 48,y(353),x(620),x(625),y(354),x(626),x(623),x(624),Now 48 left
你能帮我吗?祝你有美好的一天。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)