问题描述
我正在使用apc.php检查PHP APC的统计信息(http://svn.php.net/viewvc/pecl/apc/trunk/apc.php)
I am using apc.php to check the PHP APC's stats (http://svn.php.net/viewvc/pecl/apc/trunk/apc.php)
我在繁忙的服务器上有以下统计信息
I have the following stats on a fairly busy server
Cached Files 317 ( 26.3 MBytes)
Hits 51483
Misses 6814
问题是丢失总是在增加(鉴于文件数量有限),有什么方法可以检查丢失的文件吗?
The problem is the Misses is always increasing (given a limited number of files), are there any way to check which files are missed?
另一个问题是:缓存文件总共消耗26.3MBytes,这是否意味着每个Apache子进程都在使用26.3MBytes?
Another question is: The Cached Files is total consuming 26.3MBytes, does it mean every Apache child process is using 26.3MBytes?
推荐答案
您确实知道apc的作用,不是吗?
You do know what apc does, don't you?
您是否希望高速缓存中的未命中率上升?如果您拥有过时的缓存,或者只是冷缓存,那么您会错过命中,缓存将被填满,并且下次(直到过期)您将被命中.
You would expect the misses to go up in a caching situation? If you have stale cache, or just cold cache, you get a miss, the cache gets filled, and the next time (until it expires) you get a hit.
总缓存量(26.3 mb)是缓存中的文件量.这与apache孩子无关,这是为快速访问而保存的信息量.
The total cached amount (the 26.3 mb) is the amount of files in your cache. This has nothing to do with apache children, this is the amount of info that is saved for quick access..
这篇关于为什么PHP APC缓存会一直丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!