FPM enhancements: 5.3.4RC2 is out

12 views
Skip to first unread message

Jérôme Loyet

unread,
Dec 2, 2010, 8:00:40 PM12/2/10
to highloa...@googlegroups.com
Hi everybody,

the PHP team has just released the RC2 of the next 5.3 version
(5.3.4RC2). It comes with several FPM enhancements and bug fixes.


Bug Fixes
************
- Bug 52476. The php-fpm man page has been move from section 1 to
section 8 to reflect the binary location (sbin). (revision 301705)
- all value comparisons were not case insensitive in the conf file
parsing (revision 301807)
- timer* macros where missing for solaris. (revision 305272)
- Bug 52501. libevent made FPM crashed when forking -- libevent has
been removed. (revision 305775)
- Bug 52693. Some configuration errors were not written to
/dev/stderr. (revision 305282)
- Bug 52609. The ini parser was not used correctly (revision 302531)
- Bug 52674. FPM Status page returns inconsistent Content-Type
headers. (revision 302721)
- Listen backlog default value has been changed from -1 to 128 (as
php-cgi) except for FreeBSD and OpenBSD. On those OSes, -1 means 'max'
whereas on others oses it's not clear. (revision 302725 and 302912)
- only one process (for all pools) could be killed at once by the
'dynamic' process manager. Now it's one process per pool which can be
killed by the 'dynamic' process manager. (revision 302886)
- the libevent version was missing in the debug log when fpm starts. (302913)
- The signal used to kill children process by the dynamic process
management have been changed from SIGTERM to SIGQUIT. (revision
305173)
- correct time comparison for determining the last idle child. (revision 305182)
- Bug 53412. Segfault when using -y. (revision 305859)


Enhancements
*****************

- There is no more specific version of FPM. FPM is now following the
PHP versioning. (revision 303148)

- The number of times the 'max_children' limit has been reached has
been added to the status page. (revision 302925)

- The process title have been customized. (revision 305287)
# ps a | grep php-fpm
16816 pts/3 S+ 0:00 php-fpm: master process
(/usr/local/php-trunk/etc/php-fpm.conf)
16817 pts/3 S+ 0:00 php-fpm: pool www_chroot
16818 pts/3 S+ 0:00 php-fpm: pool www_direct

- Statistics about the listen queue length have been added to the
status page. It allows (if you kernel is compatible) to monitor the
length of the listen socket queue. It's one of the main thing to
monitor heavy loaded architectures. (revision 305267)

- get rid of ZLOG_STUFF code redundancy (revision 305281)

- Allow multiple instance of FPM with a custom prefix. The new '-p
prefix' argument added to php-fpm allows set a default prefix for all
path set in the configuration file. It's like the '-p' argument of
nginx or the -d of apache. (revision 305341)
For example, set error_log to "logs/php-fpm.log", run php-fpm -d
/home/webs/business/insurance and FPM will log to
/home/webs/business/insurance/logs/php-fpm.log.

- Allow to test and dump the configuration without launching FPM. The
new '-t' argument added to php-fpm allows to validate a configuration
file before starting or reloading FPM. If the '-t' is doubled '-t -t'
or '-tt', the configuration file is dumped. (revisions 305284 and
305342)

- get rid of libevent for several reasons:
* libevent was not necessary to FPM.
* It was an external dependancy I wanted to be removed
* it was generating some bugs (especially when fork() was involved somehow)


Next to come
****************
- Fix for good bugs related to libevent. (see bug 52501)
- The "on demand" process manager for shared hostings. (see bug 52569)
- syslog support. (see bug 52052)
- fix once and for all the cgi.fix_pathinfo. (see bug 51983)
- A finest management of pools (restart or reload only one pool, ....)
- ...


Credits
********
I'd like to thanks all of you who have reported bugs and help FPM
being a better product. Special thanks to tony and andrei !


You can download the first release candidate here:
http://downloads.php.net/johannes/php-5.3.4RC2.tar.bz2
(md5sum:36f7854304f9ecaa28d444456f0eb163)

It's not just a "bug fix" version for FPM. As FPM is still concidered
as experimental in PHP, we can continue to enhance it in 5.3.x. You
can report bugs by the official way (http://bugs.php.net) or if you
have questions, just ask the mailing list.

++ Jerome

Michael Shadle

unread,
Dec 2, 2010, 8:55:41 PM12/2/10
to highloa...@googlegroups.com, highloa...@googlegroups.com
Thank to all of you guys, especially you Jérôme! This is awesome.

陈智宏

unread,
Dec 2, 2010, 9:37:47 PM12/2/10
to highloa...@googlegroups.com
I am eager to deploy php 5.3.4.

5.3.3 is almost perfect, but 5.3.4 will be even better.

Troll

unread,
Dec 3, 2010, 2:26:07 AM12/3/10
to highloa...@googlegroups.com
Same for me :)

Great work folks, continue ! :)

sonu khizar

unread,
Dec 3, 2010, 2:47:41 AM12/3/10
to highloa...@googlegroups.com
awesome work !
keep it up.. :-)

On 12/2/10, Troll <trollof...@gmail.com> wrote:
> Same for me :)
>
> Great work folks, continue ! :)
>
>
> On 12/03/2010 03:37 AM, 陈智宏 wrote:
>> I am eager to deploy php 5.3.4.
>>
>> 5.3.3 is almost perfect, but 5.3.4 will be even better.
>>
>> On Fri, Dec 3, 2010 at 9:55 AM, Michael Shadle <mik...@gmail.com
>> <mailto:mik...@gmail.com>> wrote:
>>
>> Thank to all of you guys, especially you Jérôme! This is awesome.
>>
>> On Dec 2, 2010, at 5:00 PM, Jérôme Loyet <m...@fatbsd.com


--
Regards,

-- khizar
and myuniverso.com team :-)

Juan Fco. Giordana

unread,
Dec 3, 2010, 7:41:43 AM12/3/10
to highloa...@googlegroups.com
On 12/02/2010 10:00 PM, J�r�me Loyet wrote:
> Hi everybody,
>
> the PHP team has just released the RC2 of the next 5.3 version
> (5.3.4RC2). It comes with several FPM enhancements and bug fixes.

Thanks a lot for this new release J�r�me.

How about this for the slow log path?:

slowlog = log/php-fpm-$pool_slow.log

instead of

slowlog = log/$pool.log.slow


Regards.

Jérôme Loyet

unread,
Dec 3, 2010, 4:10:12 PM12/3/10
to highloa...@googlegroups.com
2010/12/3 Juan Fco. Giordana <juangi...@gmail.com>:

> On 12/02/2010 10:00 PM, Jérôme Loyet wrote:
>>
>> Hi everybody,
>>
>> the PHP team has just released the RC2 of the next 5.3 version
>> (5.3.4RC2). It comes with several FPM enhancements and bug fixes.
>
> Thanks a lot for this new release Jérôme.

>
> How about this for the slow log path?:
>
> slowlog = log/php-fpm-$pool_slow.log
>
> instead of
>
> slowlog = log/$pool.log.slow

slowlog is not active by default. You can change it yourself when
activating it. There is no real "universal" name for this kind of log
files.

So it's not such a big deal.

>
>
> Regards.
>

Thomas Fritz

unread,
Dec 6, 2010, 4:41:26 AM12/6/10
to highloa...@googlegroups.com
Thank you for your great work!


Kind regards



---


2010/12/3 Jérôme Loyet <m...@fatbsd.com>

陈智宏

unread,
Dec 11, 2010, 9:17:26 AM12/11/10
to highloa...@googlegroups.com
Dear ALL,

The php 5.3.4 released! try out!
Reply all
Reply to author
Forward
0 new messages