Increase default memory_limit for php

Bug #196806 reported by Daniel Hahler
8
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: php5

The current default memory_limit for mod_php5 in Apache is 16M (and 32M for cli).

I think this should get increased, because of the following reasons:
 - PHP recommends 128M (it's in ini-dist and ini-recommended)
 - Debian uses 128M (32M for cli)

While it's not really that difficult to change this setting in case it's required, it's an unnecessary obstacle.

I suggest using at least also 32M as the default for mod_php5. Using the Debian setting (128M) would allow us to drop this (small) delta.

Daniel Hahler (blueyed)
Changed in php5:
importance: Undecided → Wishlist
Revision history for this message
Daniel Hahler (blueyed) wrote :

Soren, what do you think?
<\sh> blueyed: imho 128MB on nowdays server is not much

In the sense of LTS, we really should not make all admin bump this setting manually.
Like Stephan, I think we should go with 128M, just like Debian does.

Changed in php5:
milestone: none → ubuntu-8.04
status: New → Triaged
Revision history for this message
Daniel Hahler (blueyed) wrote :

After more discussion in IRC yesterday, we (\sh, soren, me) agreed that 128M is too much.

While I agree that 16M is a sensible default for now, a limit of 32M seems more future proof.

Revision history for this message
Krešo Kunjas (deresh) wrote :

and to emphasise, 128M is the MAX memory that php may use. I'm using several php5 tools that require min 32Mb to work ( symfony, Propel, Doctrine ), and more and more php webapps are using this tools also.
So will this be in hardy ?

Maybe 128 is to much bit and 32 or 64 is a more sensible default, and especialy for this LTS it's expected for php apps to require more memory in the future.

Steve Langasek (vorlon)
Changed in php5:
milestone: ubuntu-8.04 → none
Revision history for this message
ewanm89 (ewanm89-googlemail) wrote :

and any admin that has had his server have digg/slashdot effect also knows that this can manage to fill up 4GB of memory in a few seconds.

Revision history for this message
Soren Hansen (soren) wrote : Re: [Bug 196806] Re: Increase default memory_limit for php

On Mon, Aug 25, 2008 at 06:13:05AM -0000, ewanm89 wrote:
> and any admin that has had his server have digg/slashdot effect also
> knows that this can manage to fill up 4GB of memory in a few seconds.

Err.. No. This is a per-interpreter limit. Not a global limit for all
apache processes put together.

--
Soren Hansen |
Virtualisation specialist | Ubuntu Server Team
Canonical Ltd. | http://www.ubuntu.com/

Revision history for this message
ewanm89 (ewanm89-googlemail) wrote :

Yes, s each apache process can use more. 16*5 < 32*5.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.