APC - "503 Service Unavailable"

MikeDVB

Well-Known Member
#1
Upon rebuilding PHP 5.2.14 via LSWS's control panel and building in APC support, when enabling apc.so we get 503 errors:
2011-01-13 19:55:27.181
INFO
[114.43.135.244:2678-0#APVH_redacted.com] connection to [/tmp/lshttpd/APVH_redacted.com_Suphp.sock.923] on request #1, confirmed, 1, associated process: 21537, running: 0, error: Connection reset by peer!
2011-01-13 19:55:27.181
NOTICE
[114.43.135.244:2678-0#APVH_redacted.com] Request in process stage, fail with 503
2011-01-13 19:55:27.181
INFO
Remove pid: 21537
2011-01-13 19:55:27.181
NOTICE
[114.43.135.244:2678-0#APVH_redacted.com] oops! 503 Service Unavailable
Suggestions?
 
#4
@webizen:

In reading through the forums here I tested updating the php.ini with:
Code:
apc.enabled = 1
apc.shm_size = 48
apc.include_once_override = 1
apc.mmap_file_mask = /tmp/apc.XXXXXX
This made things a little better in that it is not consistently throwing 503 , but still seeing them >30% of the time so I ended up having to disable the APC extension.

Aside from the server states Michael provided above, the website itself is a Wordpress 3.0.4 installation running WP Super Cache.

PHPINFO() suggests the APC bundled with LITESPEED is the beta version (3.1.4). Other threads in this forum suggest that was the root of their 503 errors and reverted to 3.0.9 stable.

That being said, looks like 3.1.6 is the the latest STABLE of APC.

Regarding stderr.log the consistent errors being thrown are:

PHP Startup: Unable to load dynamic library '/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20060613/mailparse.so'
PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files
 
#5
After a bit of research (and much effort by Mike) we may have this sorted out.

Even after using 3.019 of APC we were still seeing issues, turns out a conflict with ZEND was the culprit in this case. Once the ZEND extension was disabled everything has been running pretty smooth.

I'll monitor over over the next couple of days to ensure it is stable.. After which we can revisit if we should a) Move to LITESPEED bundled 3.14 beta b) Move to 3.16 STABLE c) Be thankful and leave well enough alone :)

Thanks,
Frank
 
#6
Thanks for posting your info. Please post back if you have any updates. We need Zend & APC, so disabling APC may be the only route we can take :(
 
Top