[Tile-serving] [openstreetmap/mod_tile] memory consumption (#181)

Julien Fastré notifications at github.com
Fri Feb 7 14:43:35 UTC 2020


We also encounter this problem.

It seems we could mitigate this by adding memory limits in systemd's service definition:

```
[Unit]
Description=Renderd
After=network.target auditd.service

[Service]
User=gis
Group=gis
Type=simple
RuntimeDirectory=./renderd
RuntimeDirectoryMode=0755
Restart=always
ExecStart=/usr/local/bin/renderd --foreground -c /etc/renderd.conf 
# here is the trick. It must be adapted to the available RAM
MemoryHigh=50G
MemoryMax=60G
```

While the level of memory approaches, systemd seems to get memory back from render daemon.

renderd does not crash, and we do not have oom killer issues. But when rendering expired tiles, it may still happens that the rendering is stopped early because systemd has destroyed some memory.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/181#issuecomment-583418952
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200207/5d44baec/attachment.htm>


More information about the Tile-serving mailing list