Tuesday 15 March 2011

caching - High PHP APC fragments and hollow usage pie chart -



caching - High PHP APC fragments and hollow usage pie chart -

i utilize litespeed webserver , php apc. notice there unusual stats "apc.php".

first unusual thing although fragmentation percentage low (under 1%), number of fragments high (6935 fragments). have tried increment "user_entries_hint" several times, yet number of fragments still high though percentage low.

second unusual thing "host status diagrams" has hollow part. when see other apc.php stats else, see hollow part. wonder if related fragments number.

i have plenty free ram (more 50 gb), , clear whole apc every 2 hours.

here php.ini config

apc.enabled = 1 apc.ttl = 0 apc.slam_defense = 0 apc.gc_ttl=3600; apc.user_ttl = 0 apc.shm_segments = 1 apc.shm_size = 6g apc.max_file_size = 20m apc.stat=0 apc.enable_cli = 0 apc.mmap_file_mask="/home/apc_temp/apc.xxxxxx" apc.user_entries_hint = 360000 apc.num_files_hint = 30000 extension="apc.so"

and here apc runtime setting.

apc.cache_by_default = 1 apc.canonicalize = 1 apc.coredump_unmap = 0 apc.enable_cli = 0 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 = /home/apc_temp/apc.k8ktdm apc.num_files_hint = 30000 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 = 6g apc.slam_defense = 0 apc.stat = 0 apc.stat_ctime = 0 apc.ttl = 0 apc.use_request_time = 1 apc.user_entries_hint = 360000 apc.user_ttl = 0 apc.write_lock = 1

thank you.

php caching apc litespeed

No comments:

Post a Comment