I have a server (P4, 512 mb DDR2 RAM), and LAMP (Debian Lenny) installed on it. The free memory reduces very fast, and I have to restart apache & mysql to fix it. In top I see a lot of IDLE apache processes, which eats a lot of memory. How I can configure the server to fix it? (already added restart script to cron, but it's not a solution, I think) Thank you, sorry for my bad English.
ax-host:~# free total used free shared buffers cached Mem: 516048 115356 400692 0 20732 54752 -/+ buffers/cache: 39872 476176 Swap: 1515512 17568 1497944