Heim  >  Artikel  >  Backend-Entwicklung  >  APC配置有关问题

APC配置有关问题

WBOY
WBOYOriginal
2016-06-13 10:11:03959Durchsuche

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那么大。真牛人

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn