Solved

Memcached for PHP session handling responding extremely slow

Posted on 2010-11-13
3
743 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 109

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 109

Expert Comment

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

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

831 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