Results 1 to 14 of 14

Thread: Memcached

  1. #1
    Join Date
    Oct 2006
    Posts
    210

    Memcached

    Hi,

    Our website is based on Wordpress, well today I noticed a strange thing I want playing with memcached and noticed interesting thing, I mean when I stopped Memcached the server load goes around to even 100% and sever got halted. And when I started memcached services server load got stable and was always under 1%.

    Can anybody please help me understand why its happening? I mean it should work without memcached running, we know memcached will add some speed and stability but in my case its extremely hard to survive without memcached running...

    Thanks.

  2. #2
    Are you having I/O trouble on the disk?

  3. #3
    Join Date
    Oct 2006
    Posts
    210
    Quote Originally Posted by datarealm View Post
    Are you having I/O trouble on the disk?
    Not really we have one drive for files and for databases we have 80GB SSD. So it shouldn't be any issue with I/O.

  4. #4
    Join Date
    Dec 2011
    Location
    Germany
    Posts
    1,180
    Quote Originally Posted by khanbaba View Post
    Not really we have one drive for files and for databases we have 80GB SSD. So it shouldn't be any issue with I/O.
    Watch "top" while you disable Memcached and see what exactly causes the high load. %wa would be the IO wait time, so if that goes over 20% or something and doesn't recover, it's your disk. Also keep an eye on the processes and see which ones consume most CPU cycles and post the results here or even better the whole "top" output with Memcached disabled.
    Inbound Marketing & real SEO for web hosting providers
    ✎ Get in touch with me: co<at>infinitnet.de

  5. #5
    Join Date
    Oct 2006
    Posts
    210
    There are lots of lots of php processes, we are using fcgi. usually to index.php of Wordpress install directory.

  6. #6
    Join Date
    Oct 2006
    Posts
    210
    Anybody else?

  7. #7
    Join Date
    Aug 2013
    Posts
    495
    Depending on your site code and the number of visitors it receives you could simply be experiencing one of the major benefits of caching. Your server may not be able to handle the load without it.

    Did you stop using memcached but leave it running with all the memory allocated? Are you restarting apache? With fcgi the processes before the apache restart may not be killed and it will simply spawn more. This combination could result in a depletion of memory.

  8. #8
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    im interested to follow this discussion
    is memcahched improve server performance on high load ?

  9. #9
    Join Date
    Oct 2006
    Posts
    210
    Quote Originally Posted by mixmox View Post
    im interested to follow this discussion
    is memcahched improve server performance on high load ?
    Yeah it will improve the performance for sure, I am using it for quite some time so far so good.

    You must give it a try, I am using it with combination of mod_fcgi, nginxcp.

    Thanks.

  10. #10
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    which part of data will be cached by memcached ?

  11. #11
    Join Date
    Oct 2006
    Posts
    210
    Quote Originally Posted by mixmox View Post
    which part of data will be cached by memcached ?
    Better read: http://en.wikipedia.org/wiki/Memcached

  12. #12
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    2,681
    You likely have two different issues which combine to create the problem. The first is by disabling memcached you are removing the caching of your database queries and your database is likely not fully optimized so it takes longer to generate your pages.

    The other is even though you are stopping the memcached daemon your application is still configured to use it so you are adding a several second delay to each page while it timesout memcached , this vastly reduces your capacity and causes the effects you are seeing. Try disabling memcached in wordpress before stopping it and note the difference.
    Server Management - AdminGeekZ.com
    Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
    WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
    Check our wordpress varnish plugin. Contact us for quote: sales@admingeekz.com

  13. #13
    Join Date
    Sep 2008
    Location
    NL,IR
    Posts
    1,491
    Quote Originally Posted by Scott.Mc View Post
    You likely have two different issues which combine to create the problem. The first is by disabling memcached you are removing the caching of your database queries and your database is likely not fully optimized so it takes longer to generate your pages.

    The other is even though you are stopping the memcached daemon your application is still configured to use it so you are adding a several second delay to each page while it timesout memcached , this vastly reduces your capacity and causes the effects you are seeing. Try disabling memcached in wordpress before stopping it and note the difference.
    so you mean memchached will make problem for wordpress ?

  14. #14
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    2,681
    Quote Originally Posted by mixmox View Post
    so you mean memchached will make problem for wordpress ?
    Only when you stop memcached while still having it configured in wordpress.
    Server Management - AdminGeekZ.com
    Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
    WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
    Check our wordpress varnish plugin. Contact us for quote: sales@admingeekz.com

Similar Threads

  1. Which one Memcache or Memcached ?
    By boosters in forum Hosting Security and Technology
    Replies: 4
    Last Post: 12-20-2012, 12:41 AM
  2. Uninstall memcached
    By hostyourdream in forum Hosting Software and Control Panels
    Replies: 0
    Last Post: 11-12-2010, 01:15 PM
  3. memcached
    By kndsb1972 in forum Hosting Security and Technology
    Replies: 5
    Last Post: 07-19-2008, 03:04 PM
  4. memcached
    By linktome in forum Hosting Security and Technology
    Replies: 5
    Last Post: 08-17-2007, 10:38 AM
  5. Anyone have installed memcached before ?
    By justbenice in forum Hosting Security and Technology
    Replies: 3
    Last Post: 02-11-2006, 05:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •