Created
July 7, 2012 10:41
-
-
Save nevergone/3065812 to your computer and use it in GitHub Desktop.
PHP APC konfiguráció
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension = apc.so | |
apc.shm_segments = 1 | |
apc.shm_size = 256 | |
apc.optimization = 0 | |
apc.num_files_hint = 2048 | |
apc.ttl = 3600 | |
apc.user_ttl = 3600 | |
apc.enable_cli = 1 | |
apc.max_file_size = 1M | |
apc.rfc1867 = 1 | |
apc.shm_size = 64 | |
apc.stat = 0 | |
apc.shm_size = 64M |
Szerintem 2, de az a biztos, ha kiteszteled. Pl. ha mmap támogatással van fordítva az APC, akkor nem használ egynél több szegmenst, akármit is állítasz be.
Jelenleg ezzel megy és ugyanúgy „warning: require_once(): Unable to allocate memory for pool.”
extension = apc.so
apc.mmap_file_mask = /tmp/apc.XXXXXX
apc.num_files_hint = 2048
apc.ttl = 3600
apc.user_ttl = 3600
apc.rfc1867 = 1
apc.stat = 1
apc.shm_size = 96M
Ez egy jó tanács, egyelőre adtam 256 megát az APC-nek, addig sem parse-ol az interpreter. :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tgr: ha az shm_size = 64M, akkor mi az ajánlott értéke az shm_segments-nek?