<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 <<a href="mailto:aseques@gmail.com">
aseques@gmail.com</a>>:<br>> 2007/11/9, Marcin Owsiany <<a href="mailto:marcin@owsiany.pl">marcin@owsiany.pl</a>>:<br>> > On Fri, Nov 09, 2007 at 01:06:31PM +0100, Joan wrote:<br>> > > Well, 3.5Gb
should be a fair amount of memory for that amount of<br>> > > domains as I experienced with physical machines.<br>> > > I would like to know what approaches have taken the people experiecing<br>> > > similar issues...
<br>> ><br>> > Limit MaxClients, MinSpareServers, MaxSpareServers and most importantly<br>> > MaxRequestsPerChild. This way PHP will not have much time to leak too<br>> > much memory, which should keep the usage down a bit.
<br>> ><br>> I tunned the following Timeout, MaxKeepAliveRequests, KeepAliveTimeout.<br>> And also the ones that you've told, specially MaxClients and<br>> MaxRequestsPerChild wich seem to be the most important ones.
<br>><br>> 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's not normal...
<br>Tomorrow I'l compare the parameters (ps, lsof, netsat) in the critical<br>moments with the ones in normal time 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 -> Has a value of 8560<br>
In the moment where it has almost no memory:<br>
wc -l lsof_with_problems -> 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? </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>><br>> Cheers<br>><br>> > --<br>> > Marcin Owsiany <<a href="mailto:marcin@owsiany.pl">marcin@owsiany.pl</a>> <a href="http://marcin.owsiany.pl/">http://marcin.owsiany.pl/
</a><br>> > GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216<br>> ><br>> > "Every program in development at MIT expands until it can read mail."<br>> > -- Unknown
<br>> > _______________________________________________<br>> > Users mailing list<br>> > <a href="mailto:Users@openvz.org">Users@openvz.org</a><br>> > <a href="https://openvz.org/mailman/listinfo/users">
https://openvz.org/mailman/listinfo/users</a><br>> ><br>><br></blockquote></div><br>