Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am looking for some wisdom on configuring APC on a LAMP system.

Links to good reference material would be helpful as well.

share|improve this question
    
what is "APC" in this context? –  warren Aug 31 '11 at 0:35
    
Probably refers to Alternative PHP Cache php.net/manual/en/book.apc.php although my first thought was a UPS.. –  Dana the Sane Aug 31 '11 at 0:55
    
Just nitpicking, but do you have a 64-bit OS or a 32-bit one with PAE kernel just to use that amount of RAM at all? –  karatedog Aug 31 '11 at 1:05
    
I am using Ubuntu 10.04.3 64bit –  Corey Aug 31 '11 at 2:40
add comment

3 Answers 3

I found two helpful articles.

http://chrisgilligan.com/tag/apc/

share|improve this answer
add comment

Probably just about all of them.

It's impossible to give a more precise answer without a detailled understanding of the workload and the structure of the sites.

But even then tuning is as much an empirical art as a science - you need to have good systems in place for gather and analysing metrics then comparing models.

share|improve this answer
add comment

I don't think that there are many hard and fast rules, will depend case by case. To start off, I would enable APC with the default settings, and see if there is enough shared memory allocated to store your compiled pages, and any other values you want to store. If you start running out, tweak and repeat.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.