From:             
Operating system: Linux
PHP version:      trunk-SVN-2011-02-25 (SVN)
Package:          FPM related
Bug Type:         Bug
Bug description:Overly high defaults in config

Description:
------------
The default setting in the pool sets pm.max_children to 50, which with
php's 

upped default memory_limit of 128Mb makes many moderately equipped machines
to 

crash from out-of-memory.  The settings combined makes it possible to
consume 

6GB of memory in a bad scenario. Since I suspect many a server nowadays are
1Gb 

(or even 512Mb) VPS's running on the different clouds out there, the
settings 

are grossly excessive. I reported a bug against Ubuntu at first, but I
think 

this is really the right place for it. 



https://bugs.launchpad.net/ubuntu/+source/php5/+bug/723480



pm.max_children should be more like 6 initially, with an explanation to
increase 

the number if memory permits. Ether that or the default memory_limit should
be 

lowered.



I have read posts about running VPS where operators have to reboot every so


often, and I think it *might* have to do with this problem, since I'm sure


nginx+php+php-fpm is getting very popular as a stack. 



Expected result:
----------------
Snappy happy server.

Actual result:
--------------
Server get sad, wrinkles, get dementia, finally get a stroke and dies.
Takes as 

long time as it took my mother but in computer-years. 

-- 
Edit bug report at http://bugs.php.net/bug.php?id=54098&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54098&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54098&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54098&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54098&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54098&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54098&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54098&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54098&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54098&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54098&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54098&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54098&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54098&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54098&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54098&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54098&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54098&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54098&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54098&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54098&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54098&r=mysqlcfg

Reply via email to