APC configuration problems my php. ini has the following configuration for apc: [apc] apc. cache_by_default = On & nbsp; apc. enable_cli = Off & nbsp; apc. enabled = On & nb APC configuration problems
My php. ini has the following configuration for apc:
[Apc]
Apc. cache_by_default = On
Apc. enable_cli = Off
Apc. enabled = On
Apc. file_update_protection = 2
Apc. filters = ""
Apc. gc_ttl = 3600
Apc. max_file_size = 1 M
Apc. num_files_hint = 1000
Apc. optimization = On
Apc. shm_segments = 1
Apc. shm_size = 800
Apc. slam_defense = Off
Apc. stat = On
Apc. ttl = 0
Apc. user_entries_hint = 100
Apc. user_ttl = 0
The explanation of apc. shm_size is:
Size of each shared memory block (in MB, recommended value: 128 ~ 256 ). Some systems (including most BSD variants) have very few default shared memory blocks.
When this value is set to 800, loading data will cause memory overflow, but it will be normal if it is changed to a smaller value (such as 300. Where can I find the maximum value of apc. shm_size allowed by my system?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.