Req #73726 [Asn]: default zend opcache settings do not reflect recommended settings

From: Date: Wed, 11 Jan 2017 10:48:43 +0000
Subject: Req #73726 [Asn]: default zend opcache settings do not reflect recommended settings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206512@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73726&edit=1

 ID:                 73726
 User updated by:    maggus dot staab at googlemail dot com
 Reported by:        maggus dot staab at googlemail dot com
 Summary:            default zend opcache settings do not reflect
                     recommended settings
 Status:             Assigned
 Type:               Feature/Change Request
 Package:            opcache
 PHP Version:        7.1.0
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

fixed by https://github.com/php/php-src/pull/2291


Previous Comments:
------------------------------------------------------------------------
[2017-01-11 06:01:19] krakjoe@php.net

Dmitry assigned to you, we updated settings in php-src, can you have other sources reflect them
please.

------------------------------------------------------------------------
[2016-12-12 16:23:24] maggus dot staab at googlemail dot com

I am also wondering why 
>opcache.fast_shutdown=1 
defaults to 0.

per readme in https://github.com/zendtech/ZendOptimizerPlus
and information provided in php.ini there is no obvious reason why one should disable a
"fast-shutdown" in the first place.

------------------------------------------------------------------------
[2016-12-12 16:19:50] maggus dot staab at googlemail dot com

Description:
------------
in the https://github.com/zendtech/ZendOptimizerPlus
repos README there is a recommendation which settings should be used in a production environment

> opcache.memory_consumption=128
> opcache.interned_strings_buffer=8
> opcache.max_accelerated_files=4000
> opcache.revalidate_freq=60
> opcache.fast_shutdown=1
> opcache.enable_cli=1

shouldn't those recommendations been reflected int he php.ini-production which is shipped with
php itself?

at the moment php-src shipps with
;opcache.enable=0
;opcache.memory_consumption=64
;opcache.interned_strings_buffer=4
;opcache.max_accelerated_files=2000
;opcache.revalidate_freq=2
;opcache.fast_shutdown=0
;opcache.enable_cli=0
in https://github.com/php/php-src/blob/master/php.ini-production

the only thing which might cause problems for people is ;opcache.revalidate_freq=60
which might lead to people wondering why changes in files dont take affect.
all other settings should be at least increased to the recommended defaults IMO.

Maybe the default can be configured with even bigger values as server provide way more memory in
comparison to when the recommendations were written down.

opionions?



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=73726&edit=1


Thread (5 messages)

« previous php.bugs (#206512) next »