Jump to content

opcache hits = 0 always


ala888

Recommended Posts

I have no clue whats going on. help me plz

[opcache]; Determines if Zend OPCache is enabledopcache.enable=1;zend_extension=/usr/lib/php5/20121212/opcache.so; Determines if Zend OPCache is enabled for the CLI version of PHPopcache.enable_cli=0; The OPcache shared memory storage size.opcache.memory_consumption=64; The amount of memory for interned strings in Mbytes.opcache.interned_strings_buffer=4; The maximum number of keys (scripts) in the OPcache hash table.; Only numbers between 200 and 100000 are allowed.opcache.max_accelerated_files=2000; The maximum percentage of "wasted" memory until a restart is scheduled.;opcache.max_wasted_percentage=5; When this directive is enabled, the OPcache appends the current working; directory to the script key, thus eliminating possible collisions between; files with the same name (basename). Disabling the directive improves; performance, but may break existing applications.opcache.use_cwd=0; When disabled, you must reset the OPcache manually or restart the; webserver for changes to the filesystem to take effect.opcache.validate_timestamps=1; How often (in seconds) to check file timestamps for changes to the shared; memory storage allocation. ("1" means validate once per second, but only; once per request. "0" means always validate)opcache.revalidate_freq=6; Enables or disables file search in include_path optimizationopcache.revalidate_path=0; If disabled, all PHPDoc comments are dropped from the code to reduce the; size of the optimized code.opcache.save_comments=0; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"; may be always stored (save_comments=1), but not loaded by applications; that don't need them anyway.opcache.load_comments=0; If enabled, a fast shutdown sequence is used for the accelerated codeopcache.fast_shutdown=0; Allow file existence override (file_exists, etc.) performance feature.opcache.enable_file_override=0; A bitmask, where each bit enables or disables the appropriate OPcache; passesopcache.optimization_level=0xffffffffopcache.inherited_hack=1opcache.dups_fix=0
opcache.blacklist_filename=
; Allows exclusion of large files from being cached. By default all files
; are cached.
opcache.max_file_size=0
; Check the cache checksum each N requests.
; The default value of "0" means that the checks are disabled.
opcache.consistency_checks=0
; How long to wait (in seconds) for a scheduled restart to begin if the cache
; is not being accessed.
opcache.force_restart_timeout=5
; OPcache error_log file name. Empty string assumes "stderr".
opcache.error_log=
; All OPcache errors go to the Web server log.
; By default, only fatal errors (level 0) or errors (level 1) are logged.
; You can also enable warnings (level 2), info messages (level 3) or
; debug messages (level 4).
opcache.log_verbosity_level=0
; Preferred Shared Memory back-end. Leave empty and let the system decide.
opcache.preferred_memory_model=
; Protect the shared memory from unexpected writing during script execution.
; Useful for internal debugging only.
opcache.protect_memory=0
Array(    [opcache_enabled] => 1    [cache_full] =>     [restart_pending] =>     [restart_in_progress] =>     [memory_usage] => Array        (            [used_memory] => 5945648            [free_memory] => 61163216            [wasted_memory] => 0            [current_wasted_percentage] => 0        )    [opcache_statistics] => Array        (            [num_cached_scripts] => 8            [num_cached_keys] => 9            [max_cached_keys] => 3907            [hits] => 0            [start_time] => 1411324675            [last_restart_time] => 0            [oom_restarts] => 0            [hash_restarts] => 0            [manual_restarts] => 0            [misses] => 8            [blacklist_misses] => 0            [blacklist_miss_ratio] => 0            [opcache_hit_rate] => 0        )

also, assume that anything you dont see in these boxes are not configured.

sample script from output, there are more. but all the stats are the same except for memory

    [scripts] => Array        (            [/usr/share/nginx/vendor/composer/autoload_real.php] => Array                (                    [full_path] => /usr/share/nginx/vendor/composer/autoload_real.php                    [hits] => 0                    [memory_consumption] => 8184                    [last_used] => Sun Sep 21 18:37:58 2014                    [last_used_timestamp] => 1411324678                    [timestamp] => 1410031940                )
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...