<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <b class="gmail_sendername" dir="auto">adib saliba</b> <span dir="ltr"><<a href="mailto:adibsaliba75@gmail.com">adibsaliba75@gmail.com</a>></span><br>Date: Thu, May 23, 2019 at 10:08 AM<br>Subject: Re: [QGIS-Developer] Qgis server systemd<br>To: Eric <<a href="mailto:eric.lemoine@oslandia.com">eric.lemoine@oslandia.com</a>><br></div><br><br><div dir="ltr"><div>Dear Eric</div><div>Thank you very much for your response</div><div>I already followed the link you mentioned, i am using ubuntu 19.04 with nginx php-fpm postgresql qgis server stable release and lizmap web client with wmts caching.</div><div>my problem is that the memory is not recycling after the main  process finishes (i get all the image tiles), and it is always increasing till the system is out of memory.</div><div>the only solution i found is to use RuntimeMaxSec variable to restart the service.<br></div><div>please find attached the conf files i'm using</div><div><br></div><div>Thanks and best regards</div><div>Adib<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 23, 2019 at 7:39 AM Eric <<a href="mailto:eric.lemoine@oslandia.com" target="_blank">eric.lemoine@oslandia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Le 22 mai 2019 20:48:06 GMT+02:00, adib saliba <<a href="mailto:adibsaliba75@gmail.com" target="_blank">adibsaliba75@gmail.com</a>> a écrit :<br>
><br>
>Dear sirs, I have a question regarding qgis server setup:<br>
>I deployed qgis server on ubuntu server using nginx+systemd<br>
>| tried 2types of service : simple and forking with<br>
>number of process = number of cores.<br>
>The type=simple is faster but it is not freeing up<br>
>memory even if I'm using Restart=always, the<br>
>type=forking is freeing memory but gives error<br>
>prematurely closed connection to fastcgi upstream.<br>
>Could you please advise me how to correctly configure the service type<br>
>simple to freeup memory?<br>
<br>
<br>
Hi Adib<br>
<br>
We've been using Type=simple without experiencing the memory issue you are seeing. See <a href="https://oslandia.com/en/2018/11/23/deploying-qgis-server-with-systemd/" rel="noreferrer" target="_blank">https://oslandia.com/en/2018/11/23/deploying-qgis-server-with-systemd/</a> for the actual set-up we use. It would be good to know more about your set-up and the memory issue you're having.<br>
<br>
<br>
Cheers,<br>
--<br>
Éric<br>
</blockquote></div>
</div></div>