Solved

Memcached for PHP session handling responding extremely slow

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

707 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

20 Experts available now in Live!

Get 1:1 Help Now