Re: Memory usage question
| From: | jeremy brand | Date: | Fri, 13 Jul 2001 02:47:43 +0000 |
| Subject: | Re: Memory usage question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57676@lists.php.net to get a copy of this message | ||
> Is there a way that I can reduce the memory usage of PHP4? Also, is it a
> good idea to configure a separate Apache that has PHP4 enabled and use it
> on only the PHP4 sites on the server, while the normal Apache has PHP4
> disabled and serves the non-PHP4 sites?
Hi Philip,
It's probably your SQL queries that are eating up your memory.
1) You can configure php.ini to use less memory per thread.
2) You can run my mbfree program in a crontab to free memory on a
schedule. I currently do this.
http://www.nirvani.net/software/mbfree/
Jeremy Brand
--
Jeremy Brand :: Sr. Software Engineer :: +393485323988 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Get your own Free, Private email at http://www.smackdown.com/