First, which is the fastest accelerator: XCache or APC?
And should I have nginx, lighttpd, Apache or Apache with nginx as a reverse proxy for static contents. What's better?
Thank you.
PHP performance: accelerators and HTTP servers
485 Views Asked by seriousdev At
2
There are 2 best solutions below
0
Chris_O
On
APC is more user friendly and gives you better hit miss stats. XCache is about the same in performance but not as stable. It really depends on your server and what your running on it. You need to benchmark different scenarios and find your sweet spot. For my WordPress installation on a VPS with 768M Ram I got the best results using an Nginx reverse proxy static cache along with Memcached. Here is the bench to get an idea of what I achieved with this set up:
$ ab -n 1000 -c 100
yielded 1712.33 requests per second

Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in PERFORMANCE
- Slow performance on ipad erasing image
- Can Apache Ant be told to cache its XML files?
- What are the pros and cons of the picture element?
- DB candidate as CouchDB/Schema replacement
- python member str performance too slow
- Split a large query (2 days) into pieces to increase the speed in Postgres
- Use GUI displayed results of SQL query vs new queries?
- fastest way to map a large number of longs
- Bash regular expression execution hangs on long expressions
- Why is calling a function so slow in Javascript?
- Performance of element-compare in java collections
- "Capture GPU Frame" in XCode -- iOS only?
- Efficiency penalty of initializing a struct/class within a loop
- Change the rotating speed of the circle when the mouse moves using javascript
- Replace foreach to make loop into queryable
Related Questions in CACHING
- ClassCastException: datastructures.instances.JClass cannot be cast to java.util.ArrayList
- Robospice. How to save data and how to get data from DB?
- Make @lru_cache ignore some of the function arguments
- Xib taking long time (>1s) to load. UIFont cache seems to blame
- Android picasso cache images
- Rails 4 low-level caching not working
- How to cache Exchange web service API autodiscoverurl?
- The process cannot access the file because it is being used by another process asp.net
- Alamofire loading from cache even when cache policy set to ReloadIgnoringLocalAndRemoteCacheData
- Java Heap vs Cache
- In what use cases is locking on ASP.NET cache required/desirable
- Chrome cache overriding angularjs disabling of cache
- AFNetworking 2.0 Cache Issue
- Symfony ESI Cache / Surrogate Listener Issue
- Using getOrElseUpdate of TrieMap in Scala
Related Questions in APC
- Symfony2 APCu or XCache
- Symfony2 bootstrap.php.cache tries to include a non-existent file
- Nginx + PHP-FPM Randomly Gives 502
- ApcCache symfony2 create cache from cli
- MAMP, APC - apc_exists
- Warning: PHP Startup: Unable to load dynamic library apc.so
- apc_fetch() and apc_store() usage in php
- Clear single result cache in symfony2 with APCu
- Symfony 2 apc caching error
- VB6 - Making a new MSAPC.Apc crashes with 'Class does not support Automation or does not support expected interface'
- "Call to undefined method" after apache reload using apc opcode cache
- symfony 2 doctrine query builder Apc cache not saving collection objects
- Doctrine 2: If using APC for the Doctrine Meta and/or Query Cache, does APC need to be flushed after each application deploy?
- APC - clearing cache with cron jobs
- Should I make an include-file with APC?
Related Questions in XCACHE
- Symfony2 APCu or XCache
- Need help applying specific PHP Values in Nginx for location within Magento
- Xcache install, repo giving old verison
- Joomla xcache authentication error
- Symfony2: Flush XCache class cache on multiple instances on deployment
- How to enable opcode caching in xcache?
- CakePHP Shell: Fatal error: Call to undefined function xcache_isset()
- What is the best cacher for drupal (Boost, xcache or varnish)?
- Existing Class not found using XCache and PHP 5.3.2
- XCache module installation error
- Unable to see X-cache in Respomse Header
- Xcache can't reload php opcode when source code changed
- Cakephp View caching based on custom key
- can't find xcache.var_size in php.ini
- xcache Admin Page is Showing Cache ONLY For Current User (CPanel)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is no general answer on this. It depends on what you need. I always choose APC for new projects. I used XCache but I think APC is better for the following reasons.
So pure performance is not everything :)