[PHP] Memory usage question

2001-07-12 Thread Philip Mak

My machine is running out of memory (256 MB; upgrading is not an option at
this point).

Each httpd process is taking up 8 MB of memory (4 MB shared). PHP4 is
responsible for about 3.5 MB of that.

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?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Memory usage question

2001-07-12 Thread jeremy brand

 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 :: [EMAIL PROTECTED]
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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]