简体   繁体   English

PHP-APCu是否使用与为opcache定义的相同的内存池?

[英]PHP - Does APCu use the same memory pool as defined for opcache?

According to the docs, APCu is still using the same configuration as for APC which includes defining the amount of memory to be used 根据文档,APCu仍使用与APC相同的配置 ,其中包括定义要使用的内存量

apc.shm_size = 32M

But Opcache has it's own configuration for memory: 但是Opcache有自己的内存配置

opcache.memory_consumption = "64"

Does the amount allocated to APCu come out of the total memory_consumption setting for Opcache? 分配给APCu的数量是否来自Opcache的total memory_consumption设置? Or are they separate? 还是分开?

They are separate, because they are separate modules and so would not want to share memory space. 它们是独立的,因为它们是独立的模块,因此不希望共享内存空间。

Since APCu now is only a data-cache (something opCache cannot do), you might not need as much space for APCu either - depending on how much data is being stored. 由于APCu现在仅是数据缓存(opCache无法做到),因此您可能也不需要APCu的太多空间-取决于存储的数据量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM