How to log APC Cache errors?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
guarriman
Forum Commoner
Posts: 44
Joined: Thu Nov 03, 2005 4:11 am

How to log APC Cache errors?

Post by guarriman »

Hi.

I'm using APC 3.0.17 with PHP 5.2.5 on Linux.

I'm suffering some "white page of death" APC errors, and I'm trying to investigate the reasons. But:

1) I don't find any APC support forum.

2) I don't find any APC error log. I'm browsing Apache error log (with PHP 'E_ALL' activate) and don't see any line about it.

Any suggestion is welcome. Thank you very much.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: How to log APC Cache errors?

Post by Chris Corbyn »

Errors specific to APC or just errors from PHP in general? The latter certainly show in your logs (provided logging is turned on). I'm not aware of anything which logs errors internal to the APC cache itself. We've had the white page errors before (a lot actually) so we just habitually reload apache when we roll out a new package to be on the safe side.
guarriman
Forum Commoner
Posts: 44
Joined: Thu Nov 03, 2005 4:11 am

Re: How to log APC Cache errors?

Post by guarriman »

Chris Corbyn wrote:Errors specific to APC or just errors from PHP in general?
specific to APC
Chris Corbyn wrote: We've had the white page errors before (a lot actually) so we just habitually reload apache when we roll out a new package to be on the safe side.
Sorry, could you please explain it with other words? I'm not sure about which your solution is.

When do you reload Apache? Each time you change the PHP scripts?

Thank you very much for your answer.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: How to log APC Cache errors?

Post by Chris Corbyn »

guarriman wrote:Sorry, could you please explain it with other words? I'm not sure about which your solution is.

When do you reload Apache? Each time you change the PHP scripts?

Thank you very much for your answer.
Yeah I mean everytime code gets changed on our production servers we reload apache. We don't change code on our production servers much except for when a new version of our application gets launched (by "we" I mean my employer). Basically we extract our new package version then immediately restart apache. We do a bit more than that but that's not related to the APC issue.

EDIT | I should stress that this would be really impractical if your setup involves live-editing code on the server. If it does I'd seriously re-think your deployment process. We try to make a release once every few days and that release will include a small number of useful changes. Release early, release often... but don't make production code your development code. That would cause havoc with APC too.
Post Reply