Re: PHP & Apache - Consuming Too much memory
| From: | Chris | Date: | Thu, 05 Mar 2009 22:17:02 +0000 |
| Subject: | Re: PHP & Apache - Consuming Too much memory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289408@lists.php.net to get a copy of this message | ||
Shota Gedenidze wrote:
Php and apache memory problem. I have apache and php, recently added APC module to php, and after that each apache process consumes 30-100 mb of resident memory. Operating System is Linux. Does anybody have Idea how to optimize php to consume less memory?ini_set('memory_limit', '32M'); fix what it complains about when you view your site/application/whatever and says you're using too much memory. There's no hard & fast rule here - it's all down to time, patience and lots of effort. You could also use xdebug to profile your app and see where to start. -- Postgresql & php tutorials http://www.designmagick.com/