2012-05-08 47 views
0

這裏是我的服務器信息:APC正常運行時間是非常低的

  • APC版本:3.1.9
  • PHP版本:5.2.17
  • 服務器:Apache
  • PHP:DSO。
  • cPanel:是的。
  • WHM:是的。

我很少打開我的apc.php,我通常打開它在我的峯值流量上,每天約3-6次。 大部分時間我打開它,正常運行時間很短,從20分鐘到5小時不等。但是,我從來沒有收到任何錯誤的電子郵件,例如當我的Litespeed自行重新啓動時。

  • APC內存使用率很低,10-25%。
  • 碎片也很低,< 1%。

這是我的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重新啓動時,它的緩存是否被刷新?

+0

難道這適用於你嗎? [CPanel導致apache重新啓動](http://serverfault.com/questions/102648/php-apc-uptime-problem) - APC從不重新啓動,它從服務器軟件開始並以它結束。 – SebiF

+0

我不確定。我怎麼知道它是否是由litespeed重啓引起的? – Sempa

回答

1

在我問litespeed論壇後,這是因爲我的Litespeed似乎每1-2小時重新啓動一次。我的主機表示,LiteSpeed每1-2小時重新啓動的原因是爲了在處理統計信息時輪換訪問日誌。我的服務器上的管道日誌已啓用以解決此問題。