Giter Site home page Giter Site logo

Comments (6)

tzerber avatar tzerber commented on June 6, 2024

Jumping on this bandwagon. On a relatively busy instance I need to use these values to get rid of the warning. Not a PHP expert at all, but I was increasing them until the error went away, using whatever PHP was complaining about until i get it green. NC version 29, 10 active users, NC used mostly via browser for office work/emails/deck/ and additionally around 100GB traffic between users / day.

opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=64
opcache.max_accelerated_files=12000
opcache.memory_consumption=512
opcache.save_comments=1
opcache.revalidate_freq=60
opcache.jit = 1255
opcache.jit_buffer_size = 256M

from docker.

tarbib avatar tarbib commented on June 6, 2024

Hello @adripo @tzerber
I have the same issue. I actually struggle to locate the file php.ini within the Nextcloud container.
Any pointers?
Thanks !

from docker.

tzerber avatar tzerber commented on June 6, 2024

Hello @adripo @tzerber
I have the same issue. I actually struggle to locate the file php.ini within the Nextcloud container.
Any pointers?
Thanks !

Depends if you're using docker or not. Usually phpinfo() can give you hints on ini location

from docker.

tarbib avatar tarbib commented on June 6, 2024

Depends if you're using docker or not. Usually phpinfo() can give you hints on ini location

I use Docker indeed
the image linked to this repo https://hub.docker.com/_/nextcloud/

from docker.

tzerber avatar tzerber commented on June 6, 2024

Depends if you're using docker or not. Usually phpinfo() can give you hints on ini location

I use Docker indeed the image linked to this repo https://hub.docker.com/_/nextcloud/

For opcache I use the following mounted local ini in all containers :

volumes:
      - nextcloud:/var/www/html
      - ./opcache-recommed.ini:/usr/local/etc/php/conf.d/opcache-recommended.ini

The actual conf used by the container is this one /usr/local/etc/php-fpm.conf and it loads everything from /usr/local/etc/php/conf.d/*conf too. Both those paths are !! Inside !! the container, not on your host!

from docker.

MichaIng avatar MichaIng commented on June 6, 2024

@tzerber

opcache.jit_buffer_size = 256M

Try to use opcache.jit_buffer_size = 2M. I never saw a Nextcloud instance which uses more than 1 MiB of this particular sub-buffer. And since it occupies from opcache.memory_consumption, it is likely the only reason why you needed to raise the latter, while otherwise the default 128M would have been sufficient, in combination with opcache.interned_strings_buffer=32 max, often 8 or 16, depending on used apps.

from docker.

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.