<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Saturazione RAM e SWAP]]></title><description><![CDATA[<p dir="auto">Buoniorno a tutti!</p>
<p dir="auto">Sono 5gg che il mio server va regolarmente giù dopo tre anni di onorato servizio...</p>
<p dir="auto">Il problema che si presenta è che la ram e lo swap vengono totalmente saturati: il server si pianta e richiede il riavvio manuale.</p>
<p dir="auto">Non sono riuscito a trovarne la causa: lasciando aperto un <em>top cd1</em> l'unica cosa che sono riuscito a capire è che c'era un numero molto alto (circa 100) di demoni httpd in esecuzione. Probabilmente uno spider o il download di un intero sito.</p>
<p dir="auto">Sotto il log di <em>messages</em> che mostra il problema.</p>
<p dir="auto">Qualcuno sa come aiutarmi sia a fre il debug che ad eliminare il problema?<br />
Credo che non sia la prima volta che la macchina venga invasa di richieste httpd e credo che dovrebbe essere in grado di gestirle senza andare giù.</p>
<p dir="auto">C'è un paramentro di httpd.conf per limitare il numero di esecuzioni contemporanee del demone?</p>
<p dir="auto">Grazie a tutti!<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
<p dir="auto">Jul 20 03:51:48 hotels kernel: Normal free:3576kB min:3728kB low:7456kB high:11184kB active:794700kB inactive:32140kB presen<br />
t:901120kB pages_scanned:1825053 all_unreclaimable? yes<br />
Jul 20 03:54:54 hotels kernel: protections[]: 0 0 0<br />
Jul 20 03:54:56 hotels kernel: HighMem free:512kB min:512kB low:1024kB high:1536kB active:483088kB inactive:674016kB present<br />
:1178160kB pages_scanned:161601 all_unreclaimable? no<br />
Jul 20 03:54:56 hotels kernel: protections[]: 0 0 0<br />
Jul 20 03:55:13 hotels kernel: DMA: 4<em>4kB 3</em>8kB 2<em>16kB 3</em>32kB 4<em>64kB 2</em>128kB 2<em>256kB 0</em>512kB 1<em>1024kB 1</em>2048kB 2<em>4096kB = 12<br />
456kB<br />
Jul 20 03:55:14 hotels kernel: Normal: 70</em>4kB 0<em>8kB 0</em>16kB 1<em>32kB 1</em>64kB 1<em>128kB 0</em>256kB 0<em>512kB 1</em>1024kB 1<em>2048kB 0</em>4096kB<br />
= 3576kB<br />
Jul 20 03:55:14 hotels kernel: HighMem: 0<em>4kB 0</em>8kB 0<em>16kB 0</em>32kB 0<em>64kB 0</em>128kB 2<em>256kB 0</em>512kB 0<em>1024kB 0</em>2048kB 0*4096kB<br />
= 512kB<br />
Jul 20 03:55:14 hotels kernel: 845 pagecache pages<br />
Jul 20 03:55:14 hotels kernel: Swap cache: add 723095, delete 723089, find 31728/55442, race 0+11<br />
Jul 20 03:55:14 hotels kernel: 0 bounce buffer pages<br />
Jul 20 03:55:23 hotels kernel: Free swap:            0kB<br />
Jul 20 03:55:50 hotels kernel: 523916 pages of RAM<br />
Jul 20 03:56:02 hotels kernel: 294540 pages of HIGHMEM<br />
Jul 20 03:56:10 hotels kernel: 5564 reserved pages<br />
Jul 20 03:56:16 hotels kernel: 203234 pages shared<br />
Jul 20 03:56:30 hotels kernel: 6 pages swap cached<br />
Jul 20 03:56:33 hotels kernel: Out of Memory: Killed process 4353 (mysqld).<br />
Jul 20 03:56:39 hotels kernel: oom-killer: gfp_mask=0xd0<br />
Jul 20 03:56:42 hotels kernel: Mem-info:<br />
Jul 20 03:56:50 hotels kernel: DMA per-cpu:</p>
]]></description><link>https://dev.connect.gt/topic/106666/saturazione-ram-e-swap</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 07:18:40 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/106666.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Jul 2009 06:50:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Saturazione RAM e SWAP on Sat, 17 Oct 2009 16:43:40 GMT]]></title><description><![CDATA[<p dir="auto">Aggiornamento:<br />
tutto deriva da un'installazione di wordpress che fa query pesanti e lascia in sleep diversi connessioni...</p>
<p dir="auto">Perché ciò accasa resta tuttavia ancora un mistero...</p>
<p dir="auto"><a href="http://www.giorgiotave.it/forum/wordpress/125088-query-sleep-e-risorse-down.html#post694009" rel="nofollow ugc">http://www.giorgiotave.it/forum/wordpress/125088-query-sleep-e-risorse-down.html#post694009</a></p>
]]></description><link>https://dev.connect.gt/post/846313</link><guid isPermaLink="true">https://dev.connect.gt/post/846313</guid><dc:creator><![CDATA[ceccus]]></dc:creator><pubDate>Sat, 17 Oct 2009 16:43:40 GMT</pubDate></item><item><title><![CDATA[Reply to Saturazione RAM e SWAP on Wed, 22 Jul 2009 21:21:24 GMT]]></title><description><![CDATA[<p dir="auto">Thanks!<br />
Vediamo se risolvo <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://dev.connect.gt/post/846312</link><guid isPermaLink="true">https://dev.connect.gt/post/846312</guid><dc:creator><![CDATA[ceccus]]></dc:creator><pubDate>Wed, 22 Jul 2009 21:21:24 GMT</pubDate></item><item><title><![CDATA[Reply to Saturazione RAM e SWAP on Wed, 22 Jul 2009 20:57:03 GMT]]></title><description><![CDATA[<p dir="auto">ops volevo dire MaxClients <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
<p dir="auto">pure MaxRequestsPerChild andrebbe un tantino diminuito</p>
]]></description><link>https://dev.connect.gt/post/846309</link><guid isPermaLink="true">https://dev.connect.gt/post/846309</guid><dc:creator><![CDATA[paolino]]></dc:creator><pubDate>Wed, 22 Jul 2009 20:57:03 GMT</pubDate></item><item><title><![CDATA[Reply to Saturazione RAM e SWAP on Wed, 22 Jul 2009 20:09:29 GMT]]></title><description><![CDATA[<p dir="auto">Ciao <em><strong>paolino</strong></em>,<br />
grazie della risposta.</p>
<p dir="auto">Nel mio httpd.conf non trovo il parametro MaxChilds mentre invece ho questi:</p>
<p dir="auto"><em><strong>&lt;IfModule prefork.c&gt;</strong></em><br />
<em><strong>StartServers 8</strong></em><br />
<em><strong>MinSpareServers 5</strong></em><br />
<em><strong>MaxSpareServers 20</strong></em><br />
<em><strong>ServerLimit 256</strong></em><br />
<em><strong>MaxClients 256</strong></em><br />
<em><strong>MaxRequestsPerChild 4000</strong></em><br />
<em><strong>&lt;/IfModule&gt;</strong></em></p>
<p dir="auto"><em><strong>&lt;IfModule worker.c&gt;</strong></em><br />
<em><strong>StartServers 2</strong></em><br />
<em><strong>MaxClients 150</strong></em><br />
<em><strong>MinSpareThreads 25</strong></em><br />
<em><strong>MaxSpareThreads 75</strong></em><br />
<em><strong>ThreadsPerChild 25</strong></em><br />
<em><strong>MaxRequestsPerChild 0</strong></em><br />
<em><strong>&lt;/IfModule&gt;</strong></em></p>
<p dir="auto">che dovrebbero essere quelli di default. La cosa curiosa è che per tre anni non ho mai avuto problemi e tutti insieme, per tre notti consecutive... un'invasione di httpd che saturano lo swap e mandano in blocco la macchina...</p>
]]></description><link>https://dev.connect.gt/post/846310</link><guid isPermaLink="true">https://dev.connect.gt/post/846310</guid><dc:creator><![CDATA[ceccus]]></dc:creator><pubDate>Wed, 22 Jul 2009 20:09:29 GMT</pubDate></item><item><title><![CDATA[Reply to Saturazione RAM e SWAP on Wed, 22 Jul 2009 08:26:23 GMT]]></title><description><![CDATA[<p dir="auto">MaxChilds è quello che ti interessa.</p>
<p dir="auto">Guarda qui <a href="http://tldp.org/LDP/LGNET/123/vishnu.html" rel="nofollow ugc">http://tldp.org/LDP/LGNET/123/vishnu.html</a> per una descrizione dettagliata.</p>
]]></description><link>https://dev.connect.gt/post/846308</link><guid isPermaLink="true">https://dev.connect.gt/post/846308</guid><dc:creator><![CDATA[paolino]]></dc:creator><pubDate>Wed, 22 Jul 2009 08:26:23 GMT</pubDate></item></channel></rss>