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
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in PERFORMANCE
- Upsert huge amount of data by EFCore.BulkExtensions
- How can I resolve this error and work smoothly in deep learning?
- Efficiently processing many small elements of a collection concurrently in Java
- Theme Preloader for speed optimization in WordPress
- I need help to understand the time wich my simple ''hello world'' is taking to execute
- Non-blocking state update
- Do conditional checks cause bottlenecks in Javascript?
- Performance of sketch drastically decreases outside of the P5 Web Editor
- sample query for review for improvement on big query
- Is there an indexing strategy in Postgres which will operate effectively for JOINs with ORs
- Performance difference between two JavaScript code snippets for comparing arrays of strings
- C++ : Is there an objective universal way to compare the speed of iterative algorithms?
- How to configure api http request with load testing
- the difference in terms of performance two types of update in opensearch
- Sveltekit : really long to send the first page and intense CPU computation
Related Questions in CACHING
- Using Puppeteer to scrape a public API only when the data changes
- Caching private wordpress rest endpoints
- Cloudflare not respecting Cache-Control
- Unexpected Recursive Call
- Cannot serialize (Spring Boot)
- Nginx only caches file endpoints
- The Selenium application properties folder holds two environment options. After running a test the environment setting changes to a previous setting
- Launch jobs in cache in a loop in bash script
- Multiple async request do not store anything to cache
- Dev tool for Next.js cache on the client?
- Creating a letter in the terminal by entering
- Laravel: check if cache has key with thag
- The retrieval time for the Apache Ignite cache is too long
- How to run gradle with caches files
- Docker Run cache mount does not cache apt-get dependencies
Related Questions in APC
- Error sending snmptrap from zabbix to an APC
- why does zabbix output UPS APC and UPS HUAWEI options differently?
- APCU not appearing in an Azure Linux Docker Container
- Missing php_apcu.dll for PHP 8.2 / APCu 5.1.22?
- APCu: Cannot call key() on invalid iterator
- Windows SleepEx() doesn't resume when queueing an APC
- Nextcloud Problem with memcache after Updates
- Keeping mysql query results and variables set from the queries for use across pages and sessions
- Call to undefined function apcu_add()
- How to avoid Multi-user PHP Cache add up?
- Function Call in DLL not working as expected (QueueUserAPC)
- Cannot use apc_fetch to fetch a stored variable from the cache
- Yii2 Invalid Configuration: ApcCache requires PHP apc extension to be loaded
- User notification in SAPUI5 using AMC channels
- Effect of parameter $unused in method apcu_store
Related Questions in XCACHE
- Why can I see a website via browser, but with "wget/curl/..." I get "403 Forbidden"?
- Multiple instances of the same PHP project using classes from the wrong directory
- How to check if xcache is installed properly?
- XCache lost value after some time
- xcache doesn't speed up my php application
- Is there any compatible memory cache for PHP 7?
- How do I install XCache in WAMP in windows?
- PHPUnit testing xcache
- What does X-Cache: Hit from Backend mean?
- Change XCache settings via Puphpet
- XCache: cannot init in Laravel 5.1 application
- AWS EC2 Xcache or APC
- xampp apache apc not working in symfony2
- Need help applying specific PHP Values in Nginx for location within Magento
- Symfony2 APCu or XCache
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 # Hahtags
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 :)