Skip to content

Instantly share code, notes, and snippets.

@yuichietsu
Last active October 2, 2017 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuichietsu/732f37e5c160cf6d12b62244def319d2 to your computer and use it in GitHub Desktop.
Save yuichietsu/732f37e5c160cf6d12b62244def319d2 to your computer and use it in GitHub Desktop.
PHP: 「zend_mm_heap corrupted」が出たなら、「output_buffering」を上げるといいらしい

PHP7でAPCuを使った状態で、たくさんリクエストを投げると、Apacheのログに「zend_mm_heap corrupted」が出たり、「Segmentation fault」が出たりして、終いには応答が返ってこなくなる。 APCuではなくて、OPCacheかもしれないが、わからない。

php.iniのoutput_bufferingの値を上げると改善されるらしいし、実際改善されるようだが、あくまで改善するだけで、問題は解決していない気がする。 そして、なぜ改善されるかわかっていない。

2017/10/01 APCIteraotrが壊れている雰囲気。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment