Apcu降低服务器速度(Apache2+;PHP)

Apcu降低服务器速度(Apache2+;PHP),php,apache,apcu,Php,Apache,Apcu,我们做了一项软件更改,提高了生产服务器上Apcu的使用率,该服务器在数月内运行良好 在以每秒约400次点击的速度以15毫秒的响应时间运行约20小时后,服务器响应时间增加到约500毫秒。(如果我们重新启动apache或重置apcu,这会在大约20小时后重复) 使用apc_clear_缓存(“用户”)重置apcu;使响应时间恢复正常,因此问题是APCu过载 如何解决这个问题?日志中没有解释瓶颈是什么 详情: At the time the issue happens the data on apc

我们做了一项软件更改,提高了生产服务器上Apcu的使用率,该服务器在数月内运行良好

在以每秒约400次点击的速度以15毫秒的响应时间运行约20小时后,服务器响应时间增加到约500毫秒。(如果我们重新启动apache或重置apcu,这会在大约20小时后重复)

使用apc_clear_缓存(“用户”)重置apcu;使响应时间恢复正常,因此问题是APCu过载

如何解决这个问题?日志中没有解释瓶颈是什么

详情:


At the time the issue happens the data on apcu usage is:
APCu memory consumption: 256,851,984 bytes
APCu items number: 519,311

Server:
PHP Version 7.3.18-1+ubuntu18.04.1+deb.sury.org+1
Apache/2.4.29 (Ubuntu)
APCu Support    Enabled
Version 5.1.17
APCu Debugging  Disabled
MMAP Support    Enabled
MMAP File Mask  no value
Serialization Support   php
Build Date  Aug 27 2019 08:46:38
Directive   Local Value Master Value
apc.coredump_unmap  Off Off
apc.enable_cli  Off Off
apc.enabled On  On
apc.entries_hint    4096    4096
apc.gc_ttl  3600    3600
apc.mmap_file_mask  no value    no value
apc.preload_path    no value    no value
apc.serializer  php php
apc.shm_segments    1   1
apc.shm_size    1024M   1024M
apc.slam_defense    Off Off
apc.smart   0   0
apc.ttl 0   0
apc.use_request_time    On  On


我们做了一个软件更改,增加了Apcu的使用率,这表明该更改非常重要。因此,了解这一变化可能会有所帮助。你确定代码运行正常,而不仅仅是卸载了更多的内容吗?我们写入和读取了更多的小值,有效期为20分钟。我们进行了软件更改,增加了Apcu的使用率,这表明更改非常重要。因此,了解这一变化可能会有所帮助。您确定代码运行正常,而不仅仅是卸载了更多的内容吗?我们写入和读取了大量的小值,过期时间为20分钟