I've been doing load testing on my Symfony2 application and one of the bottlenecks I've identified appears to be Memcached.
I'm using memcached on the webserver to cache doctrine metadata and queries, and I'm using amazon's elasticache memcached as doctrine's result cache.
On a request without any load my end-to-end time is 300-350ms, and memcached accounts for about 10 of these ms
However, when under a load of 25 concurrent requests, my total response is slowed down to about 2500ms, and a large chunk of this appears to be memcached
34 of the 39 memcached queries are fetching classmetadata, and of these some are at .1ms and others are at 40 or 50ms, it seems to be pretty random.
I've tried increasing the max connections and cache size in the local memcache configuration file, is there anything else I can do to try and remove this bottleneck from my application?
Thanks a bunch-
Network I/O : Check if there is any issue with Network I/O. It can be due to multiple reasons:
Please verify the same.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With