Re: PHP on 64bit Ubuntu
| From: | alexander lind | Date: | Wed, 03 Sep 2008 18:55:18 +0000 |
| Subject: | Re: PHP on 64bit Ubuntu | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279440@lists.php.net to get a copy of this message | ||
For anyone that might be following this thread because they also have a memory problem (on a 64 bit platform or not), here is some advice on how to alleviate it:
- Use a bytecode cacher like xcache. Brought my 12MB pages down to about 5MB.
- If using php from a pre-compiled binary (like from Ubunutus repository), consider re-configuring it manually to drop extensions you don't need.
- If using Doctrine, always use its free() method to free up memory after you are done with each object.
Alec
On Sep 3, 2008, at 6:28 AM, alexander lind wrote:
Hi All I just tested my PHP app on Ubuntu 64bit, and found that all my php scripts would consume about 5x more RAM memory there, compared to how much they use on my macbook pro (which to make things a bit more confusing also runs a 64bit OS). A page that would take up around 2.5 MB on the macbook, takes around 12 MB on the linux server. Does anyone know what might be causing this? Thanks Alec --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php