<span class="gmail_quote"></span><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2007/11/10, Joan &lt;<a href="mailto:aseques@gmail.com">
aseques@gmail.com</a>&gt;:<br>&gt; 2007/11/9, Marcin Owsiany &lt;<a href="mailto:marcin@owsiany.pl">marcin@owsiany.pl</a>&gt;:<br>&gt; &gt; On Fri, Nov 09, 2007 at 01:06:31PM +0100, Joan wrote:<br>&gt; &gt; &gt; Well, 3.5Gb
 should be a fair amount of memory for that amount of<br>&gt; &gt; &gt; domains as I experienced with physical machines.<br>&gt; &gt; &gt; I would like to know what approaches have taken the people experiecing<br>&gt; &gt; &gt; similar issues...
<br>&gt; &gt;<br>&gt; &gt; Limit MaxClients, MinSpareServers, MaxSpareServers and most importantly<br>&gt; &gt; MaxRequestsPerChild. This way PHP will not have much time to leak too<br>&gt; &gt; much memory, which should keep the usage down a bit.
<br>&gt; &gt;<br>&gt; I tunned the following Timeout, MaxKeepAliveRequests, KeepAliveTimeout.<br>&gt; And also the ones that you&#39;ve told, specially&nbsp;&nbsp;MaxClients and<br>&gt; MaxRequestsPerChild wich seem to be the most important ones.
<br>&gt;<br>&gt; Will see how it goes for the next days!<br>Too bad, nothing changes, memory keeps increasing everytime until<br>everything crashes silently, thanks to the alarms everytime it happens<br>I can reboot the services, but it&#39;s not normal...
<br>Tomorrow I&#39;l compare the parameters (ps, lsof, netsat) in the critical<br>moments with the ones in normal time&nbsp;&nbsp;and see.</blockquote><div><br>Ok, finally got time to check<br><br>After some time of restarting the whole VeID lsof brings me some information:
<br>
lsof | wc -l&nbsp;&nbsp; -&gt; Has a value of 8560<br>
In the moment where it has almost no memory:<br>
wc -l lsof_with_problems&nbsp; -&gt; The value is 30006<br>
<br>
Analyzing the file a bit further I can see that out of 30006 open files, the owner of 28266 is apache2<br>
<br>
I would guess that somehow apache is not closing the files, either for
memory problems with openvz, or maybe because the non-threading
configuration that can slowdown the apache process.<br>
Any clue?<br>
<br>
Shall I go to ask to apache mailing list? Or could it somehow be related to openVZ?&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Cheers<br>&gt;<br>&gt; Cheers<br>&gt;<br>&gt; &gt; --<br>&gt; &gt; Marcin Owsiany &lt;<a href="mailto:marcin@owsiany.pl">marcin@owsiany.pl</a>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://marcin.owsiany.pl/">http://marcin.owsiany.pl/
</a><br>&gt; &gt; GnuPG: 1024D/60F41216&nbsp;&nbsp;FE67 DA2D 0ACA FC5E 3F75&nbsp;&nbsp;D6F6 3A0D 8AA0 60F4 1216<br>&gt; &gt;<br>&gt; &gt; &quot;Every program in development at MIT expands until it can read mail.&quot;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Unknown
<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Users mailing list<br>&gt; &gt; <a href="mailto:Users@openvz.org">Users@openvz.org</a><br>&gt; &gt; <a href="https://openvz.org/mailman/listinfo/users">
https://openvz.org/mailman/listinfo/users</a><br>&gt; &gt;<br>&gt;<br></blockquote></div><br>