New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Help me to find the Best Opcache Configuration
Hello,
Please help me, to find the best opcache configuration for performance. Got too many memory in the server...
Here is my current configuration:
opcache.memory_consumption=512
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
Comments
I don't think there is a best configuration for opcache it's depend of what kind of site's your hosting.
Is this for your shared hosting offering or just personal sites.
shared
This is my current settings in a shared environment. I didn't thoroughly test it though it's running and looks like it's more than enough for my current needs as I am not hosting hundreds of domains, let alone thousands...
If it's shared hosting is setting opcache.validate_timestamps to 60 sec could cause a issue as that control how offen Opcache will check the file timestamps for updates.
Let's say a user edit's a php file, it could take up-to 60 sec for the change to be effective if the file is already cached, that would probably confuse the user.
Thank you very much, i will try!
Yes you are right..
Thank you very much!