开发者

apc under php-fpm not caching files

开发者 https://www.devze.com 2023-03-21 04:38 出处:网络
I currently have apc installed and running under php-fpm. The apc info page reflects user cache entries but the file cache reflects 0 files cached. Other similar threads state that if runnning under F

I currently have apc installed and running under php-fpm. The apc info page reflects user cache entries but the file cache reflects 0 files cached. Other similar threads state that if runnning under FCGI, apc will not share the cache between the worker processes, and recommend using php-fpm. I share the symtoms with these people, however I am already using php-fpm and it is running fine. If anyone has any idea here, would be greatly appriciated. Been stuck on it at work for a couple hours now. I have another box set up where it is working and I believe I followed the same procedure,开发者_JAVA百科 and both boxes are identical. Not sure where I could have gone wrong. I would be happy to provide more information. Thanks.

Update : When compiling APC with debug, I get file too big errors with every file. This is not the case on the working box. Looking through the source, I found the relevant snippet -

 if(APCG(max_file_size) < fileinfo->st_buf.sb.st_size) {
    apc_debug("File is too big %s (%d - %ld) - bailing\n" TSRMLS_CC, filename,t,fileinfo->st_buf.sb.st_size);
    goto cleanup;
 }

It has the correct filesize in the fileinfo strut, so I'm imagining that max_file_size is messed up. I'm going to try and track this down. Anyone have any idea? This is working fine on 64 bit Ubuntu outside of EC2, with identical configuration and files.

All the build tests from source are failing and hardcoding that value in doesn't help, it still doesn't cache.

0

精彩评论

暂无评论...
验证码 换一张
取 消