<span id="result_box" class="long_text"><span style="background-color: rgb(255, 255, 255);" title="Gracias por el link y por contestar." onmouseover="this.style.backgroundColor=&#39;#ebeff9&#39;" onmouseout="this.style.backgroundColor=&#39;#fff&#39;">Thanks for the link and answer.
<br>
<br></span><span style="background-color: rgb(255, 255, 255);" title="Por el momento hice tunning ¬¬!" onmouseover="this.style.backgroundColor=&#39;#ebeff9&#39;" onmouseout="this.style.backgroundColor=&#39;#fff&#39;">At the moment did tunning ¬ ¬! </span><span style="background-color: rgb(255, 255, 255);" title=", bueno mejor dicho a prueba y error." onmouseover="this.style.backgroundColor=&#39;#ebeff9&#39;" onmouseout="this.style.backgroundColor=&#39;#fff&#39;">, Well better said a trial and error. </span><span style="background-color: rgb(255, 255, 255);" title="Tengo esta configuración que al parecer funciona por lo menos lleva un dia sin fallar." onmouseover="this.style.backgroundColor=&#39;#ebeff9&#39;" onmouseout="this.style.backgroundColor=&#39;#fff&#39;">I have this configuration seems to work at least take a day without fail.
</span></span><br><br><br><span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title="Les dejo mis configuraciones por si a alguien le funciona por mas dias.">I leave my settings if anyone would work for more days.</span></span><br>
<br>Postgres with 4gigas<br>#####Set this to 140% of the average number of expected connections. 100 clients average means 140 max connections.<br>max_connections = 2000<br>tcp_keepalives_idle = 60                        # TCP_KEEPIDLE, in seconds;<br>
                                        # 0 selects the system default<br>tcp_keepalives_interval = 30            # TCP_KEEPINTVL, in seconds;<br>                                        # 0 selects the system default<br>tcp_keepalives_count = 10               # TCP_KEEPCNT;<br>
                                        # 0 selects the system default<br><br>shared_buffers = 262144                 # min 16 or max_connections*2, 8KB each<br>#2 Gigas<br>#echo $((1024 * 1024 * 3072)) &gt; /proc/sys/kernel/shmmax<br>
#262144=1024*1024*3072/8192<br>work_mem = 16384<br>max_fsm_pages = 153600                  # min max_fsm_relations*16, 6 bytes each<br>#GuyThornley&#39;s favourite settings for these parameters are:<br>commit_delay = 20000<br>
commit_siblings = 3<br>effective_cache_size = 393216<br>random_page_cost = 4                    # units are one sequential page fetch<br><br><br>To Plone 4 gigas<br>      zserver-threads 6<br>%import relstorage<br>    &lt;relstorage&gt;<br>
        name BDplone<br>        blob-dir var/blobs<br>        cache-local-mb 512<br>        cache-delta-size-limit 10000<br>        commit-lock-timeout 30<br>        poll-interval 0<br>        pack-dry-run true<br>        pack-batch-timeout 5.0<br>
        pack-duty-cycle 1.0<br>        pack-max-delay 20<br>        &lt;postgresql&gt;<br>           dsn dbname=&#39;BDplone&#39; user=&#39;admin&#39; host=&#39;10.9.10.33&#39; password=&#39;123&#39;<br>        &lt;/postgresql&gt;<br>
    &lt;/relstorage&gt;<br>    mount-point /<br>&lt;/zodb_db&gt;<br><br><br><br><br><div class="gmail_quote">2010/4/19 Laurence Rowe <span dir="ltr">&lt;<a href="mailto:l@lrowe.co.uk">l@lrowe.co.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">I&#39;ve had this issue reported to me in the context of zope.sqlalchemy,<br>
but have been unable to reproduce it. Others have also seen it, but as<br>
far as I am aware have not been able to reproduce it:<br>
<a href="http://www.mail-archive.com/pgsql-hackers@postgresql.org/msg146522.html" target="_blank">http://www.mail-archive.com/pgsql-hackers@postgresql.org/msg146522.html</a><br>
<br>
As there have now been three sightings, in the context of SQLAlchemy,<br>
Django, and plain dbapi2 usage (RelStorage). I suspect it is a real<br>
issue with Psycopg2, however until it can be reproduced I&#39;m not<br>
hopeful it can be fixed.<br>
<br>
Laurence<br>
<br>
On 19 April 2010 19:34, lista administracion &lt;<a href="mailto:reference.list@gmail.com">reference.list@gmail.com</a>&gt; wrote:<br>
</div><div><div></div><div class="h5">&gt; Hi<br>
&gt;<br>
&gt; We have two servers with Plone that point to the same database [Postgres 8]<br>
&gt; so that if one fails the other working.<br>
&gt;<br>
&gt; The problem is that at least once a day left to answer my Plone few minutes<br>
&gt; (it is in white or takes a long to respond)<br>
&gt; and cause apache send Proxy Error, this is solved but it is only annoying<br>
&gt; for we users to wait 5 to 10 minutes not counting the lack of availability<br>
&gt; of the page.<br>
&gt;<br>
&gt; We find that when it fails, PostgreSQL maintains a connection and keeps a<br>
&gt; long time as &quot;in transaction&quot; and after about 10 minutes this connection<br>
&gt; automatically terminates. this causes plone fail,at least 10 minutes<br>
&gt;<br>
&gt; The solution restart plone or kill the process as follows<br>
&gt;<br>
&gt; postgres 23267  0.0  0.1 2172016 7768 ?        S    10:17   0:00 postgres:<br>
&gt; ploneadmin plonetesting 10.9.33.116(45189) idle in transaction<br>
&gt; kill -15 23267<br>
&gt;<br>
&gt;<br>
&gt; We have<br>
&gt; 2 Servers  with Apache/Plone<br>
&gt; Ram           4 Gigas<br>
&gt; RedHat        5.4<br>
&gt; Apache        2.2.3<br>
&gt; Plone         3.3.4<br>
&gt; RelStorage-1.4.0b3<br>
&gt;<br>
&gt; 1 Server with Postgres<br>
&gt; Ram           4 Gigas<br>
&gt; RedHat        5.4<br>
&gt; Postgres      8.1.18<br>
&gt;<br>
&gt; Configuration.<br>
&gt;<br>
&gt; -- Conexion DB<br>
&gt;    &lt;relstorage&gt;<br>
&gt;         blob-dir var/blobs<br>
&gt;         &lt;postgresql&gt;<br>
&gt;             dsn dbname=&#39;plone&#39; user=&#39;admin&#39; host=&#39;10.9.33.128&#39;<br>
&gt; password=&#39;password123&#39;<br>
&gt;         &lt;/postgresql&gt;<br>
&gt;     &lt;/relstorage&gt;<br>
&gt;<br>
&gt; Recently modify these parameters in both servers and now it takes about 3<br>
&gt; days to fail.<br>
&gt;<br>
&gt;         blob-dir var/blobs<br>
&gt;         cache-local-mb 512<br>
&gt;         cache-prefix prod<br>
&gt;         cache-delta-size-limit 5000<br>
&gt;         commit-lock-timeout 10<br>
&gt;         poll-interval 60<br>
&gt;         pack-dry-run true<br>
&gt;         pack-batch-timeout 8<br>
&gt;         pack-duty-cycle 0.3<br>
&gt;         pack-max-delay 30<br>
&gt;<br>
&gt; We do not know if the problem is plone, postgres or network<br>
&gt; I hope someone can advise something.<br>
&gt;<br>
&gt; thanks in advance.<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; For more information about ZODB, see the ZODB Wiki:<br>
&gt; <a href="http://www.zope.org/Wikis/ZODB/" target="_blank">http://www.zope.org/Wikis/ZODB/</a><br>
&gt;<br>
&gt; ZODB-Dev mailing list  -  <a href="mailto:ZODB-Dev@zope.org">ZODB-Dev@zope.org</a><br>
&gt; <a href="https://mail.zope.org/mailman/listinfo/zodb-dev" target="_blank">https://mail.zope.org/mailman/listinfo/zodb-dev</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>