7 Replies - 1222 Views - Last Post: 21 July 2014 - 05:02 AM

#1 newn  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 119
  • Joined: 22-April 09

How does memcached work? (details inside)

Posted 18 July 2014 - 08:38 AM

As I understand memcached should cache stuff to virtual/physical memory. I've a Wordpress installation with W3 Total Cache installed, and my server is capable of using either Disk or Memcached, so I went for Memcached.

When I check the memory usage in cPanel, it's on 0 (physical's on ~100Mb). When I try to load the site, memory usage jumps to 100-300Mb (different values for both types of memory, but they are both at ~300Mb). CPU usage jumps to 100%. It stays like that for a few minutes.

So how does memcached work then? It doesn't make sense to me. Would I be better off using Disk cache instead? The site's utterly slow too, unless I'm reloading it or revisiting pages I've already visited - then it's lightning-fast. Disk cache however, seems slow-ish too in general...

What am I supposed to do? Is there a way of "fixing" this, if there is something to fix in the first place of course?

Any info or insight is appreciated,

Thanks!

This post has been edited by newn: 18 July 2014 - 08:57 AM


Is This A Good Question/Topic? 0
  • +

Replies To: How does memcached work? (details inside)

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9216
  • View blog
  • Posts: 34,612
  • Joined: 12-June 08

Re: How does memcached work? (details inside)

Posted 18 July 2014 - 08:47 AM

First off - have you tried any of the wordpress caching plugins? I've had good use over the years with those.

http://codex.wordpre...ization/Caching
https://wordpress.or...w3-total-cache/
http://premium.wpmud...s-cache-plugin/

Second - what are the log files telling you?
Was This Post Helpful? 0
  • +
  • -

#3 newn  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 119
  • Joined: 22-April 09

Re: How does memcached work? (details inside)

Posted 18 July 2014 - 08:57 AM

View Postmodi123_1, on 18 July 2014 - 05:47 PM, said:

First off - have you tried any of the wordpress caching plugins? I've had good use over the years with those.

http://codex.wordpre...ization/Caching
https://wordpress.or...w3-total-cache/
http://premium.wpmud...s-cache-plugin/

Second - what are the log files telling you?


I'm using W3TC (Edited to the full name now - W3 Total Cache, sorry for the confusion), all caching is set to memcache and the expire times set to at least 10800.

Which log files are you talking about? If you're talking about any log files on the cPanel or error_log, they are all empty.

This post has been edited by newn: 18 July 2014 - 08:58 AM

Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9216
  • View blog
  • Posts: 34,612
  • Joined: 12-June 08

Re: How does memcached work? (details inside)

Posted 18 July 2014 - 09:02 AM

Okay.. I'll take that as a no. I would advocate turning on memcached's logging and see what is being reported.

Example:
https://www.quora.co...logging-to-disk
http://docs.oracle.c...using-logs.html
http://serverfault.c...-on-rhel-centos
Was This Post Helpful? 0
  • +
  • -

#5 newn  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 119
  • Joined: 22-April 09

Re: How does memcached work? (details inside)

Posted 18 July 2014 - 09:09 AM

View Postmodi123_1, on 18 July 2014 - 06:02 PM, said:

Okay.. I'll take that as a no. I would advocate turning on memcached's logging and see what is being reported.

Example:
https://www.quora.co...logging-to-disk
http://docs.oracle.c...using-logs.html
http://serverfault.c...-on-rhel-centos


I don't have the access to the server, I can only access cPanel. Is there anything else I can do?
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9216
  • View blog
  • Posts: 34,612
  • Joined: 12-June 08

Re: How does memcached work? (details inside)

Posted 18 July 2014 - 09:12 AM

Ooooo-kay.. What do you mean you do not have access to the server? Is this some sort of "pay by the month" shared hosting plan? If that's the case then memcached is not a good idea for it.

"memcached shared hosting"


http://codex.wordpre...WP_Object_Cache
http://wordpress.org...-cache-inspect/
http://scotty-t.com/...ress-memcached/
Was This Post Helpful? 0
  • +
  • -

#7 newn  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 119
  • Joined: 22-April 09

Re: How does memcached work? (details inside)

Posted 18 July 2014 - 09:13 AM

View Postmodi123_1, on 18 July 2014 - 06:12 PM, said:

Ooooo-kay.. What do you mean you do not have access to the server? Is this some sort of "pay by the month" shared hosting plan?


That's correct.
Was This Post Helpful? 0
  • +
  • -

#8 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5322
  • View blog
  • Posts: 27,232
  • Joined: 10-May 07

Re: How does memcached work? (details inside)

Posted 21 July 2014 - 05:02 AM

You can use pingdom to test where the slowness on your site is.

However, if you are unable to access the server, then I would place a call to the webhosting customer service. You're asking for advice on something that you are unable to replicate.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1