APC配置有关问题

WBOY
Release: 2016-06-13 13:46:10
Original
947 people have browsed it

APC配置问题
我的php.ini对apc的配置有如下一段:
[apc]
apc.cache_by_default =On  
apc.enable_cli =Off  
apc.enabled =On  
apc.file_update_protection =2  
apc.filters =""
apc.gc_ttl =3600 
apc.max_file_size =1M  
apc.num_files_hint =1000 
apc.optimization =On  
apc.shm_segments =1  
apc.shm_size =800  
apc.slam_defense =Off  
apc.stat =On  
apc.ttl =0  
apc.user_entries_hint =100  
apc.user_ttl =0

对apc.shm_size的解释是:
每个共享内存块的大小(以MB为单位,建议值为128~256)。有些系统(包括大多数BSD变种)默认的共享内存块大小非常少。 

这个值在设置为800时,加载数据会造成内存溢出,但是改小了(如300)就正常了。请问我从哪里可以知道我的系统允许的apc.shm_size的最大值?

------解决方案--------------------
apc.shm_size (以MB为单位,建议值为128~256)。

你的内存多大?搞800那么大。真牛人

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template