note 115740 modified in function.opcache-get-configuration by salathe
| From: | salathe@php.net | Date: | Tue, 16 Sep 2014 11:00:57 +0000 |
| Subject: | note 115740 modified in function.opcache-get-configuration by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-200456@lists.php.net to get a copy of this message | ||
Example output from this function:
array(3) {
["directives"]=>
array(25) {
["opcache.enable"]=>
bool(true)
["opcache.enable_cli"]=>
bool(true)
["opcache.use_cwd"]=>
bool(true)
["opcache.validate_timestamps"]=>
bool(true)
["opcache.inherited_hack"]=>
bool(true)
["opcache.dups_fix"]=>
bool(false)
["opcache.revalidate_path"]=>
bool(false)
["opcache.log_verbosity_level"]=>
int(1)
["opcache.memory_consumption"]=>
int(134217728)
["opcache.interned_strings_buffer"]=>
int(8)
["opcache.max_accelerated_files"]=>
int(4000)
["opcache.max_wasted_percentage"]=>
float(0.05)
["opcache.consistency_checks"]=>
int(0)
["opcache.force_restart_timeout"]=>
int(180)
["opcache.revalidate_freq"]=>
int(60)
["opcache.preferred_memory_model"]=>
string(0) ""
["opcache.blacklist_filename"]=>
string(0) ""
["opcache.max_file_size"]=>
int(0)
["opcache.error_log"]=>
string(0) ""
["opcache.protect_memory"]=>
bool(false)
["opcache.save_comments"]=>
bool(true)
["opcache.load_comments"]=>
bool(true)
["opcache.fast_shutdown"]=>
bool(true)
["opcache.enable_file_override"]=>
bool(false)
["opcache.optimization_level"]=>
int(4294967295)
}
["version"]=>
array(2) {
["version"]=>
string(9) "7.0.4-dev"
["opcache_product_name"]=>
string(12) "Zend OPcache"
}
["blacklist"]=>
array(0) {
}
}
--was--
Example output from this function:
array(8) {
[77/890]
["opcache_enabled"]=>
bool(true)
["cache_full"]=>
bool(false)
["restart_pending"]=>
bool(false)
["restart_in_progress"]=>
bool(false)
["memory_usage"]=>
array(4) {
["used_memory"]=>
int(10936144)
["free_memory"]=>
int(123281584)
["wasted_memory"]=>
int(0)
["current_wasted_percentage"]=>
float(0)
}
["interned_strings_usage"]=>
array(4) {
["buffer_size"]=>
int(8388608)
["used_memory"]=>
int(458480)
["free_memory"]=>
int(7930128)
["number_of_strings"]=>
int(5056)
}
["opcache_statistics"]=>
array(13) {
["num_cached_scripts"]=>
int(1)
["num_cached_keys"]=>
int(2)
["max_cached_keys"]=>
int(7963)
["hits"]=>
int(0)
["start_time"]=>
int(1410858101)
["last_restart_time"]=>
int(0)
["oom_restarts"]=>
int(0)
["hash_restarts"]=>
int(0)
["manual_restarts"]=>
int(0)
["misses"]=>
int(1)
["blacklist_misses"]=>
int(0)
["blacklist_miss_ratio"]=>
float(0)
["opcache_hit_rate"]=>
float(0)
}
["scripts"]=>
array(1) {
["/var/www/opcache.php"]=>
array(6) {
["full_path"]=>
string(17) "/var/www/opcache.php"
["hits"]=>
int(0)
["memory_consumption"]=>
int(1064)
["last_used"]=>
string(24) "Tue Sep 16 09:01:41 2014"
["last_used_timestamp"]=>
int(1410858101)
["timestamp"]=>
int(1410858099)
}
}
}
http://php.net/manual/en/function.opcache-get-configuration.php