Jump to content

PHP-APC Linux - Blank Page - No Errors


samshel

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/279362-php-apc-linux-blank-page-no-errors/
Share on other sites

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.