|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-09-27 12:13 UTC] schnederle at futureweb dot at
Description: ------------ Hello, since we switched from PHP 5.3 to PHP 7.0.x (tried multiple Versions of PHP 7 - now we are on 7.0.11) we get random segfaults / zend_mm_heap corrupted with our CMS. Unfortunately not predictable when they will occur or on which Script. (unfortunately never the same) Sometimes a few Days no problems - sometimes 5 times a Day ... Not 100% sure - but I believe that opcache could be the cause of the Problem - as a simple "opcache_reset();" is enough to get everything up & running again - no complete restart of Apache needed. Error Log / Backtrace: http://temp.in.futureweb.at/php/error.log Hope someone can help me on this ... Thank you Andreas Schnederle-Wagner PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 18:00:01 2025 UTC |
I can confirm that raising opcache.interned_strings_buffer from 8 to 16 MB did solve that Segfault issues! ~3 Weeks without a single Segfault ... Actual OPCache Stats - interned_strings_usage - more than the initial 8MB are used ... ---------------------------------------------------- Array ( [opcache_enabled] => 1 [file_cache] => /var/www/ortsinfo/opcache [cache_full] => [restart_pending] => [restart_in_progress] => [memory_usage] => Array ( [used_memory] => 86297760 [free_memory] => 47915104 [wasted_memory] => 4864 [current_wasted_percentage] => 0.0036239624023438 ) [interned_strings_usage] => Array ( [buffer_size] => 16777216 [used_memory] => 8840536 [free_memory] => 7936680 [number_of_strings] => 74538 ) [opcache_statistics] => Array ( [num_cached_scripts] => 4397 [num_cached_keys] => 12811 [max_cached_keys] => 16229 [hits] => 15118014 [start_time] => 1482122407 [last_restart_time] => 0 [oom_restarts] => 0 [hash_restarts] => 0 [manual_restarts] => 0 [misses] => 7 [blacklist_misses] => 0 [blacklist_miss_ratio] => 0 [opcache_hit_rate] => 99.999953697643 ) ) ---------------------------------------------------- Andreas Schnederle-Wagner