Perrin Harkins wrote: >On Fri, 2006-08-18 at 12:24 +0200, Andreas Rieke wrote: > > >>it runs well using about 300 M of 1 G physical RAM. >>However, the remaining RAM decreases day by day, and after 2 or 3 >>weeks, the machine crashes because swapping takes too much time. >>However, all processes together take about 250 MBytes according to ps, >>thus I assume that the kernel takes the rest. free tells me in fact that >>much swap space is used an nearly no physical RAM is left. >> >> > >I think you'd better get some monitoring on that system and find out >what's really happening. Log the size of the apache processes on a >regular basis (or graph them with Cacti or MRTG) and see if they are the >problem or not. > >- Perrin > > > Perrin,
as the memory is even gone after apache with mod_perl has been stopped, I do not think that this really helps. I do know that the kernel should recover all the memory when processes stop even if these did not free the memory, thus it seems that the kernel is responsible for that behaviour. However, I have seen these strange things on several kernels (2.4, 2.6) from different distributions (Redhat, SuSE) so that I can not believe that this is in fact a kernel problem. Any more ideas? Thanks in advance, Andreas