samshel Posted June 19, 2013 Share Posted June 19, 2013 Hi All, I am using PHP 5.4.14 along with APC on Linux for my production environment. Every once a while users browsing the website get a blank page on a POST action like searching for orders. Refreshing the page loads the page correctly. any idea? Following are setting for APC: cat apc.ini extension=apc.so apc.shm_size=150M apc.stat=0 Runtime settings: Runtime Settings 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 1M apc.mmap_file_mask 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 150M apc.shm_strings_buffer 4M 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 0 apc.write_lock 1 Any help is much appreciated. Thanks Sameer Quote Link to comment https://forums.phpfreaks.com/topic/279362-php-apc-linux-blank-page-no-errors/ Share on other sites More sharing options...
requinix Posted June 19, 2013 Share Posted June 19, 2013 And you think this is to do with APC? Classic reason for a blank page is a fatal error or a exit/die in the code. Either of those happening? Quote Link to comment https://forums.phpfreaks.com/topic/279362-php-apc-linux-blank-page-no-errors/#findComment-1436907 Share on other sites More sharing options...
samshel Posted June 19, 2013 Author Share Posted June 19, 2013 Thank you for the response. I am sure there are no errors or exit/die since when the page is refreshed it loads correctly without any changes. There is nothing in the error logs. It has something to do with APC caching since this problem was not there before i started using APC. It might be related to the TTL or update file lock, Not sure. Just wanted to check if someone else has had similar issue. I cannot try different things since this is a production environment and this issue is hard to reproduce on dev. Thanks Sameer Quote Link to comment https://forums.phpfreaks.com/topic/279362-php-apc-linux-blank-page-no-errors/#findComment-1436931 Share on other sites More sharing options...
kicken Posted June 19, 2013 Share Posted June 19, 2013 I've tried using APC a few times on a site I help maintain but ultimately had to disable it each time. After a few days certain pages would start being nothing but 500 errors because PHP would crash when trying to load them. Never figured out why exactly it happended but disabling APC resolved the issue. I'm not sure what would be the cause of a blank page. In my experience either it worked fine, or I got a 500 error due to the crash. Never just a blank page. Quote Link to comment https://forums.phpfreaks.com/topic/279362-php-apc-linux-blank-page-no-errors/#findComment-1436944 Share on other sites More sharing options...
samshel Posted June 19, 2013 Author Share Posted June 19, 2013 Thanks Kicken. My last option would be to disable APC. However it increases the performance tremendously and i want to keep that Thanks. i will keep looking. Thanks Sameer Quote Link to comment https://forums.phpfreaks.com/topic/279362-php-apc-linux-blank-page-no-errors/#findComment-1436947 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.