View Single Post
  #68  
Old 08-31-2012, 05:40 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Quote:
Originally Posted by semprot View Post
It is disabled and i use dedicated server.
Litespeed uptime is very good (1 day+ -- since previous restart).
But APC uptime is 36 mins or so.

Any idea?

Code:
Runtime Settings
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	/tmp/apc.nyEjzk
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	1024M
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
Thanks.

Addition : i got this tips on stackoverflow :
"How many Litespeed processes do you have? I'm afraid that if you have more than 1 process, you'll have the same problem as with fastcgi/suphp, so you should try to recompile APC with --disable-apc-mmap".

How to know how many litespeed process that i have? i use 2 cpu license.
Code:
root@mybox [~]# pstree -p | grep litespeed
        |-litespeed(19722)-+-httpd(19723)
        |                  |-litespeed(19724)-+-lsphp5(19730)-+-lsphp5(19734)
        |                  |                  |-{litespeed}(19726)
        |                  |                  `-{litespeed}(19728)
        |                  `-litespeed(19725)-+-lsphp5(19772)-+-lsphp5(19809)
        |                                     |-{litespeed}(19727)
        |                                     `-{litespeed}(19729)
Our lab test shows '--disable-apc-mmap' makes no difference.
Reply With Quote