Solved

Memcached for PHP session handling responding extremely slow

Posted on 2010-11-13
3
741 Views
Last Modified: 2012-06-27
I recently decided to try out memcached (not memcache, memcacheD) for my PHP session handling on two separate VPS servers, one with 768MB of RAM and one with 2GB. On both servers, when I enabled memcached for session handling, the website response time became very slow; way slower than when using PHP's default file handler. Both servers are non-production and see virtually no traffic, so I'm boggled. Why would memcached cause so much slowdown? From what I've read, it should speed up session handling.
0
Comment
Question by:radarhill
  • 2
3 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 34131297
Interesting!  Are you using the latest version?
http://memcached.org/

Have you considered posting this in the wiki?
http://code.google.com/p/memcached/wiki/NewStart

I am only speculating here, but it seems like data integrity issues might be in play.  Perhaps memcacheD is checkpointing the data in a way that is redundant?  I have never heard of anyone using it for the session array - just data base stuff or similar data objects.
http://code.google.com/p/memcached/wiki/NewOverview
0
 
LVL 1

Author Closing Comment

by:radarhill
ID: 34232479
The resources pointed out helped clarify.
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 34233216
Great!  Thanks for the points, ~Ray
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Read about why website design really matters in today's demanding market.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now