[dokuwiki] Re: "memory size" Error

  • From: Wouter Schoot <wouter@xxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 19 Mar 2008 09:42:08 +0100

Christopher Smith wrote:
I can alleviate the error by upping memory in php.ini to "memory_limit = 48M", but is that the correct solution?

I think so - especially if your server has the memory available. Note, PHP5 default setting for memory_limit is 128M.

Heya Chris,

That's not always true. For instance, on Debian etch, it's set to 16M

tosca:/etc/php5/apache2# dpkg -l libapache2-mod-php5
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description
+++-===============================-===============================-==============================================================================
ii libapache2-mod-php5 5.2.0-8+etch10 server-side, HTML-embedded scripting language (apache 2 module)

tosca:/etc/php5/apache2# grep memory_limit php.ini
memory_limit = 16M ; Maximum amount of memory a script may consume (16MB)
tosca:/etc/php5/apache2#

I don't really see why a single thread should take upto 128MB RAM.

Wouter
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: