Giter VIP home page Giter VIP logo

Comments (8)

lucasnetau avatar lucasnetau commented on July 3, 2024

@remicollet What is a good default opcache memory size for PHP7?

from s2i-php-container.

remicollet avatar remicollet commented on July 3, 2024

@remicollet What is a good default opcache memory size for PHP7?

There is no good default.
Upstream default is 128M
But this is directly related to number and size of cached files.

from s2i-php-container.

remicollet avatar remicollet commented on July 3, 2024

This have already been discussed, a too "low" value will imply a big loose of performance, as the cache will be continuously restarted on OOM error.

from s2i-php-container.

lucasnetau avatar lucasnetau commented on July 3, 2024

Agreed.The default currently set it 16MB. The patch to fix the template file installation has led to this default being set.

If you agree, I'll raise a PR to set it to 128MB by default

from s2i-php-container.

remicollet avatar remicollet commented on July 3, 2024

If you agree, I'll raise a PR to set it to 128MB by default

seems fine, as it was the previous default when the configuration was badly installed (so, as you said, for BC)

from s2i-php-container.

lucasnetau avatar lucasnetau commented on July 3, 2024

Thanks @remicollet, I've raised #153 to set the default to 128MB.

from s2i-php-container.

omron93 avatar omron93 commented on July 3, 2024

@lucasnetau For BC - also for 5.6 is default 128MB?

from s2i-php-container.

lucasnetau avatar lucasnetau commented on July 3, 2024

Yes, the packages rh-php56-php-opcache-5.6.25-1.el7.x86_64 and rh-php70-php-opcache-7.0.10-2.el7.x86_64 have 128MB as the default set in /etc/opt/rh/rh-php*/php.d/10-opcache.ini

from s2i-php-container.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.