APC cache fragmentation problem

依然范特西╮ 提交于 2019-12-05 16:00:47

You really should set apc.stat=0 on your production server and it will prevent APC from actually going to the IO to check if the file has been changed.

also set apc.slam_defense=0 as it's deprecated

Check out documentation for other options: http://php.net/manual/en/apc.configuration.php

I think you should set apc.mmap_file_mask = /tmp/apc-yourusernamehere.XXXXXX for file-backed mmap; make file mask unique by adding your unique string; XXXXXX (exactly 6 X’s) must remain to allow APC to add random string OR set to /dev/zero for anonymous mmap if you can spare the memory.

I can see that you are using /dev/zero which takes memory unnecessarily.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!