I bought a site from someone, and if I don't have a cron job to restart apache every hour the site slows to a crawl, and eventually no one can get in until traffic dies down. Is this normal for a site written in PHP? I believe I have some kind of memory problem. Is there a way to force the release of memory by PHP faster? Ideally I would want all the memory returned once the page has been served, but while I know programming, I am clueless as to how the php-apache interface works. Is it possible to have a memory leak in PHP?
Does the script fork and create threads to do other tasks without cleaning them up? Grep the script's files for pcntl_fork.