<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">Hi Angelos and John,</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">Let me explain one more time, our performance issue. We have done fresh Geonode 2.6.2 installation (standard deployment), give VM 24GB
RAM and 12 CPU. After installation, we have done:</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">1) Replace OpenJVM with OracleJVM </span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">2) We've increased the JVM memory by adding into /etc/default/tomcat7 </span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">JAVA_OPTS="-Xmx12288M -Xms12288M -XX:MaxPermSize=1024M -XX:CompileCommand=exclude,net/sf/saxon/event/ReceivingContentHandler.startEvent"</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">3) Enable Native JAI and Native JAI ImageIO</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">4) Enable Tile caching into External PostgreSQL database</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">Additionally, we have tried the following:</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">1) In /etc/tomcat7/server.xml added maxThreads="50":</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> </span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> <Connector port="8080" protocol="HTTP/1.1"</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> connectionTimeout="20000"</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> URIEncoding="UTF-8"</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> redirectPort="8443" maxThreads="50"/></span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">2) In /etc/apache2/mods-enabled/mpm_event.conf</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">try to change conf parameters with no results:</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"><IfModule mpm_event_module></span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> StartServers 2</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> MinSpareThreads 25</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> MaxSpareThreads 75</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> ThreadLimit 64</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> ThreadsPerChild 25</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> MaxRequestWorkers 150</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"> MaxConnectionsPerChild 0</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);"></IfModule></span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">Still, when 4-5 clients try to render maps, performance radically decrease and geonode become unresponsive.</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">Do you have any idea how to increse performance ?</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">Best regards,</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<span style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium; background-color: rgb(255, 255, 255);">Ana Boljevic</span><br style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
<div style="font-family: "Segoe UI", Helvetica, Arial, sans-serif; font-size: medium;">
-- </div>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="">
<div style="">
<div style=""><br>
<div style="font-family:Tahoma; font-size:13px"></div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF630740" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> John Jediny [john.jediny@gmail.com]<br>
<b>Sent:</b> Saturday, September 02, 2017 3:32 AM<br>
<b>To:</b> Angelos Tzotsos<br>
<b>Cc:</b> Ana Boljevic; geonode-users@lists.osgeo.org<br>
<b>Subject:</b> Re: [GeoNode-users] Poor performance GeoNode<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">apache2 mod_wsgi needs tuning. Add workers and up memory limits per worker<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Sep 1, 2017 at 3:56 PM, Angelos Tzotsos <span dir="ltr">
<<a href="mailto:gcpp.kalxas@gmail.com" target="_blank">gcpp.kalxas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div bgcolor="#FFFFFF">
<div class="m_5517246803481471597moz-cite-prefix">You need to add more workers on your WSGI server.<br>
<br>
Best,<br>
Angelos
<div>
<div class="h5"><br>
<br>
On 08/29/2017 11:43 AM, Ana Boljevic wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<pre>Dear Geonode Community,
We have installed fresh Geonode v2.6.2 on Ubuntu Server 16.04. In order to speed up system, we gave Geonode 24GB of RAM and 12 CPU. Unfortulnally, performance are still poor. Apart from basic installation (standard, not developement deployment) we have done:
1) Replace OpenJVM with OracleJVM (see attachment geoserver.png)
2) We've increased the JVM memory by adding into /etc/default/tomcat7
JAVA_OPTS="-Djava.awt.<wbr>headless=true -Xms6144m -Xmx6144m -XX:+UseParallelOldGC -XX:+UseParallelGC -XX:NewRatio=2 -XX:+AggressiveOpts -Xrs -XX:PerfDataSamplingInterval=<wbr>500 -XX:MaxPermSize=512m"
3) Enable Native JAI and Native JAI ImageIO
4) Enable Tile caching into External PostgreSQL database
For some reason, Server is not consuming memory no mater how many clients are requesting maps. There is always more than 16GB free memory (attachment free.jpg).
If you can give as any hint, idea or help, we would be thankful.
Regards,
Ana Boljevic
--
</pre>
<br>
<fieldset class="m_5517246803481471597mimeAttachmentHeader" target="_blank"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
geonode-users mailing list
<a class="m_5517246803481471597moz-txt-link-abbreviated" href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>
<a class="m_5517246803481471597moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/geonode-users" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
<span class="HOEnZb"><font color="#888888"></font></span></blockquote>
<span class="HOEnZb"><font color="#888888">
<p><br>
</p>
<pre class="m_5517246803481471597moz-signature" cols="72">--
Angelos Tzotsos, PhD
Charter Member
Open Source Geospatial Foundation
<a class="m_5517246803481471597moz-txt-link-freetext" href="http://users.ntua.gr/tzotsos" target="_blank">http://users.ntua.gr/tzotsos</a></pre>
</font></span></div>
<br>
______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div class="gmail_signature">Cell: 973-931-0580<br>
<br>
<div style="padding:0px; margin-left:0px; margin-top:0px; overflow:hidden; word-wrap:break-word; color:black; font-size:10px; text-align:left; line-height:130%">
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>