Originally Posted by ps1x0
I have a problem with apache and there's a memory leak which I can't locate. (..) How could I locate which process is causing the leak?
Start by collecting system statistics using any SAR like Atop, Collect, Dstat, Atsar or just plain sysstat. Having that data will show you resource usage over time wrt bottlenecks and will serve as a baseline against you can measure the effect of any changes you make. Then start listing / exploring your HW specs, what web server, interpreter, database software your LAMP comprises of, what runs on top of your web server interpreter-wise (Perl, PHP, Python, Java, Ruby, etc), software (web forum, shopping cart, web log, photo gallery, statistics, homebrewn software) including any plugins, then check each software packages version against what the vendor marks as outdated / supported + current, check your web server, interpreter, database configuration for unwanted or unnecessary items, their log files for clues and tell us when you first noticed what you think is a memory leak and what measures you already took.