APC or XCache or eAccelerator

APC or XCache or eAccelerator

HJWUCGA INC.發表於
Number of replies: 6
Hello everyone,

Which is your preference and why?

I'm redesigning our Moodle servers and I think we should use one of these. We're expecting about 500 concurrent users.

servers and SAN drives are ordered =)

thanks

Chris
評比平均分數: -
In reply to HJWUCGA INC.

Re: APC or XCache or eAccelerator

Tadeu do Carmo Alves發表於
With the little experience that i have it deppends in what SO are you using....

when i was using moodle in a Windows based system the best for me was XCache (With windows server 2003 x64)
but now i'm under linux (with Rhel5 and Ubuntu Server both of them x64)

and an appointment i'll make to you is to use memcached too improve performance by alleviating database load.

For me using APC was making my moodle server instable when i changed to eAccelerator the server became very stable and more fast

did you read the documentation about each of these tools?

cause sometimes the best for me isn't for you.
In reply to Tadeu do Carmo Alves

Re: APC or XCache or eAccelerator

Jörg S.發表於
Hi,

you wrote "For me using APC was making my moodle server instable". Please explain what kind of instability? And where have you configured it in moodle? I'm testing APC on UbuntuServer with wordpress and want to put it on my moodle-server, too. (Just installed it with aptitude install php-apc, and a little config on apc.ini / performance +80% in ab-tests).

Why I would choose APC? Because it's a package under ubuntu. I get security-updates 眨眼 And it's easy to install...

It would be nice to hear, how other moodle-admins manage their caches 眨眼

Best regards
Jörg
In reply to HJWUCGA INC.

Re: APC or XCache or eAccelerator

Anthony Borrow發表於
Core developers的相片 Plugin developers的相片 Testers的相片
I think it does depend on your OS. With the servers I have setup (Ubuntu and RedHat) I have opted for APC. The reason for my choice was that it was easy to install and seemed to work well. Since then, I have heard that APC is to be included in PHP6. I was fortunate not to experience any system instability as a result. Of course there is no substitute for testing on your system or a test server and trying to simulate some load. Feel free to post back your experience. I also know of others that have used eAccelerator with good results. Hopefully this is somewhat helpful to you. Peace - Anthony
In reply to Anthony Borrow

Re: APC or XCache or eAccelerator

Luis de Vasconcelos發表於
Particularly helpful Moodlers的相片

Yes, eAccelerator has been good to me under Windows Server 2003 and IIS. I am happy with it for now. APC gave me grey hairs on Windows.

Strangely, Microsoft has released their own PHP Accelerator, the Windows Cache Extension for PHP. I haven't tested it yet and it's still in beta, but it is a move in the right direction - even for Microsoft! smile It will be interesting to see how PHP will run on a Windows Server box with both FastCGI and the above MS Cache Extension.

And it will be interesting to see which one performs best on Windows and PHP 6 - APC or the above MS Cache Extension.

In reply to HJWUCGA INC.

Re: APC or XCache or eAccelerator

Chad Outten發表於
i agree with Anthony: its a no-brainer seeming apc will be part of php6. moodle 'sings' nicely using apc on my servers. my instances are relatively moderate in terms of concurrency. however, i do recall reading xcache has slight performance & stability gains on larger installations - so its definitely worth your while to investigate, load test & compare. we'd be grateful if you post any results comparing apc vs xcache.

here's a few pointers, but the data is perhaps outdated...

http://moodle.org/mod/forum/discuss.php?d=99609
http://itst.net/wp-content/uploads/2006/10/PHP%20Bytecode%20Cacher%20Review.html

Cheers, Chad