[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Memcached for PHP session handling responding extremely slow

Posted on 2010-11-13
3
Medium Priority
?
748 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 1500 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 111

Expert Comment

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

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
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).

650 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