• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 750
  • Last Modified:

Memcached for PHP session handling responding extremely slow

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
radarhill
Asked:
radarhill
  • 2
1 Solution
 
Ray PaseurCommented:
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
 
radarhillAuthor Commented:
The resources pointed out helped clarify.
0
 
Ray PaseurCommented:
Great!  Thanks for the points, ~Ray
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now