【发布时间】:2012-05-10 15:49:33
【问题描述】:
这是我的服务器信息:
- APC 版本:3.1.9
- PHP 版本:5.2.17
- 服务器:LiteSpeed
- PHP : DSO。
- cPanel:是的。
- WHM:是的。
我很少打开我的apc.php,我通常在流量高峰时打开它,每天大约 3-6 次。
大多数时候我打开它,正常运行时间很短,从 20 分钟到 5 小时不等。但是我从来没有收到任何错误邮件,比如我的 Litespeed 自行重启时。
- APC 内存使用率低,为 10-25%。
- 碎片化也很低,
这是我的 APC 设置。
apc.cache_by_default 1
apc.canonicalize 1
apc.coredump_unmap 0
apc.enable_cli 1
apc.enabled 1
apc.file_md5 0
apc.file_update_protection 2
apc.filters
apc.gc_ttl 3600
apc.include_once_override 0
apc.lazy_classes 0
apc.lazy_functions 0
apc.max_file_size 20M
apc.mmap_file_mask
apc.num_files_hint 1000
apc.preload_path
apc.report_autofilter 0
apc.rfc1867 0
apc.rfc1867_freq 0
apc.rfc1867_name APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_
apc.rfc1867_ttl 3600
apc.serializer default
apc.shm_segments 1
apc.shm_size 512M
apc.slam_defense 1
apc.stat 0
apc.stat_ctime 0
apc.ttl 0
apc.use_request_time 1
apc.user_entries_hint 4096
apc.user_ttl 7200
apc.write_lock 1
我可以做些什么来延长正常运行时间? 而我的另一个小问题是,当 APC 自行重启时,它的缓存是否被刷新?
【问题讨论】:
-
这适用于您吗? CPanel causes apache restart - APC 永远不会自行重启,它从它的服务器软件开始并以它结束。
-
我不确定。我怎么知道它是否是由litespeed重启引起的?