<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I'm using mapcache v1.6.1 (tested as well with a master build) in docker and I can see huge memory increases in the apache process memory usage when mapcache is used (it's the only thing this apache instance is serving). The thing is configured like that:</div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><mapcache>
</span><br> <cache name="default" type="memcache">
<br> <server>
<br> <host>prod-2-4-c2cgeoportal-memcached</host>
<br> <port>11211</port>
<br> </server>
<br> </cache></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"> ...</span></div><div><span style="font-family:monospace"><br>
</span><span style="font-family:monospace"><span style="color:rgb(0,0,0)"> <tileset name="map">
</span><br> <source>map</source>
<br> <cache>default</cache>
<br> <grid>swissgrid_005</grid>
<br> <metatile>5 5</metatile>
<br> <metabuffer>128</metabuffer>
<br> <format>image/png</format>
<br> <expires>3600</expires> <!-- 1 hour -->
<br> <auto_expire>13800</auto_expire> <!-- 4 hours -->
<br> </tileset><br></span></div></blockquote></div><div><br></div><div>I can see that memcached is used in it's stats and only mapcache uses it.</div><div><br></div><div>But the the memory usage of the whole mapcache container looks like that:<br><div><img src="cid:ii_judr9byn0" alt="image.png" width="562" height="257"><br></div></div><div><br></div><div>Each dip in usage is when the OOM kills one of the apache workers (out of a maximum of 3 workers). I have configured a memory limit in docker at 512MB.</div><div>Nothing shows up in the apache logs.</div><div><br></div><div>Are there any known memory leaks? Do I have a bad configuration? I could have the apache workers restarted every 10 queries, but that would be utterly ugly and inefficient...</div><div><br></div><div>Thanks for your help.</div></div></div>