Hi,
I'm running into a problem with 'Fatal Error: Allowed memory size...' error. My php.ini is set for 16meg. My PHP web pages are a mix of PHP and MySQL to generate the HTML. My platform is this: Apache/1.3.22 (Unix) (Red-Hat/Linux) mod_jk/1.2.0 PHP/4.1.1.
I'm pretty sure there is a memory leak somewhere, and I don't know if it's my code or something with PHP, so I need a way of tracking this down. My memory setting started at 8meg, then 12meg, and now 16meg. Each incremental setting, the problem still occurs, it just takes longer to get there. The site is pretty active, but the data used doesn't justify the memory allocation problems, so I would like to be able to do something in the code to log memory usage at different steps so I can narrow down where the problem is.
Also, if someone can answer how that 16meg setting is actually applied. In other words, how does it relate to each user that hits the site. My server has 512meg RAM, so I don't know how high on this setting I can go without causing problems.
Any help would be greatly appreciated. Sorry for the long post.