Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Memcached Server 1.0.3

Memcached.exe cpu consumption

18 replies [Last post]
  • Login or register to post comments
Thu, 06/17/2010 - 02:03
Tom
Offline
Joined: 06/07/2010
Groups: None

I've have installed the Membase MCDS on 3 windows servers and joined them into a cluster. All three machines have windows server 2008 datacenter and 8 processors (Intel Xeon E5345, 2.33Ghz). On one of the servers the memcached.exe takes 13% of the cpu, constantly.

I'm hosting a classic ASP web site which uses a C# dll (exposed as a COM object) which uses the enyim C# client (the one recommended on the Membase site for C#). In the enyim client I'm using the NortScaleClient class, which as it says "handles the dynamic configuration", so I've comfortably configured the following url as the pool url on all servers:
[url]http://localhost:8080/pools/default/[/url]

I'm only using the bucked named "default" and have configured it to be 300MB in size (100MB on each server), and the cache in use is only 0.4% out of the 300MB. In the web console I see that I have ~250 Gets/sec and 0.6 Sets/sec.

I already encountered a similar behavior, with cpu consumption of 25%. I restarted the MembaseServer service and the cpu consumtion went down to less than 1%. It remained so for several days, until now.

The last time this happened I used the dump_logs.bat and saw a high frequency of "mc_pool_init". I am logging the connections opened by my code and the frequency of these is zero (it only happens when the web application starts). Could it be a bug in the enyim.dll? I saw a similar thread relating a possible problem with the dll.

I'm attaching a zipped log from the web console, and an image of the service cpu usage.

Thanks in advance,
Tom.

Top
Thu, 06/17/2010 - 09:35
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

Thanks Tom. We're digging into this now.

A few questions...

Is the "high cpu" server always the same server? Out of the three, is it the first one you setup, the second, the third?

Can you upload a zip of the output of dump_logs.bat from the sever that is experiencing the high cpu?

Thanks!

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
Fri, 06/18/2010 - 02:16
Tom
Offline
Joined: 06/07/2010
Groups: None

Yes, the "high cpu" server is always (twice) the same.

I'm not sure which one I setup first. I thought I'd look on the creation date of any file under the NorthScale folder, but all the creation dates are the same between the servers. How can I find that out?

I've had some problem uploading the logs to the forum, so I put them here:
[url]http://rapidshare.com/files/400312287/nslogs.zip.html[/url]

Note about the logs: I've restarted the NorthScale service on that machine approximately 24 hours ago, and the cpu consumption returned to normal.

Thank you!

Top
Tue, 06/22/2010 - 01:42
ingenthr
Offline
Joined: 03/16/2010
Groups:

Sorry for the delay Tom. I did grab your logs, but nothing immediately popped out at me. I'll try to review this in the next day or so.

It's odd that it's on only one system. Is there a windows service pack/hotfix difference between the two?

Top
Tue, 06/22/2010 - 02:00
Tom
Offline
Joined: 06/07/2010
Groups: None

All three servers have Windows 2008 Datacenter SP 2 and have the same fixes installed.

Thank you!

Top
Fri, 06/25/2010 - 14:26
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

Tom, are you still seeing high cpu on that one server?

If so, can you telnet into each of the servers and run: 'stats'? Wait 10 seconds and then run it again to give us an idea of the rate of change.

Thanks!

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
Sat, 06/26/2010 - 06:49
Tom
Offline
Joined: 06/07/2010
Groups: None

I've restarted the NorthScale service and the cpu utilization returned to normal. I fear that this will probably happen again, because it has already happened twice. If/when this happens again I'll get the stats before restarting the service.

I went ahead and got the stats anyway.

I suddenly realize that I've restarted the service, and then got the logs (which I posted on rapidshare). It means that things might seem normal at the end of the log (06-18-2010) and the problem would only appear earlier in the log (06-07-2010). Sorry about this, I know the log is extremely long.

Thanks!

Tom.

The stats:
First Sample:

STAT pid 46544
STAT uptime 793469
STAT time 1277559099
STAT version 1.4.4_203_g7bf58ee
STAT pointer_size 64
STAT daemon_connections 10
STAT curr_connections 886
STAT total_connections 1123660
STAT connection_structures 1158
STAT cmd_get 186864875
STAT cmd_set 609764
STAT cmd_flush 0
STAT auth_cmds 0
STAT get_hits 186259101
STAT get_misses 605774
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT bytes_read 11273554534
STAT bytes_written 121797510702
STAT limit_maxbytes 67108864
STAT rejected_conns 0
STAT threads 4
STAT conn_yields 0
STAT evictions 0
STAT curr_items 540
STAT total_items 609764
STAT bytes 812098
STAT engine_maxbytes 104857600
STAT bucket_conns 1399
END

Second Sample:

STAT pid 46544
STAT uptime 793517
STAT time 1277559147
STAT version 1.4.4_203_g7bf58ee
STAT pointer_size 64
STAT daemon_connections 10
STAT curr_connections 865
STAT total_connections 1123722
STAT connection_structures 1158
STAT cmd_get 186886963
STAT cmd_set 609862
STAT cmd_flush 0
STAT auth_cmds 0
STAT get_hits 186281091
STAT get_misses 605872
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT bytes_read 11274880296
STAT bytes_written 121811717992
STAT limit_maxbytes 67108864
STAT rejected_conns 0
STAT threads 4
STAT conn_yields 0
STAT evictions 0
STAT curr_items 551
STAT total_items 609862
STAT bytes 809148
STAT engine_maxbytes 104857600
STAT bucket_conns 1378
END

Top
Mon, 06/28/2010 - 12:25
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

Tom, can you package up the stats from the other servers as well? I'm looking for any differences that may explain why this particular server has experienced such a high cpu load. It will be helpful to get that as soon as possible, and even more helpful if we can get it while the server is experiencing a high cpu load.

Thanks!

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
Mon, 06/28/2010 - 23:45
Tom
Offline
Joined: 06/07/2010
Groups: None

The cpu is currently high, so I was able to bring you the relevant data.

I've pulled the logs with dump_logs.bat:
[url]http://rapidshare.com/files/403744203/nslogs.zip.html[/url]

And attached the results of the "stats" command to this message.

I'll wait a while before restarting the service, please let me know soon if there's anymore data you'd like me to collect, since I'd like to restart the service as soon as possible.

Thank you very much!

Tom.

Top
Mon, 06/28/2010 - 23:53
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

Thanks Tom!

Go ahead and restart the service when you need to. We'll analyze this information and let you know.

Thanks again.

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
Mon, 06/28/2010 - 23:53
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

Thanks Tom!

Go ahead and restart the service when you need to. We'll analyze this information and let you know.

Thanks again.

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
Mon, 06/28/2010 - 23:58
Tom
Offline
Joined: 06/07/2010
Groups: None

Great! Thanks Perry!

Top
Fri, 07/02/2010 - 13:12
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

Tom, I haven't forgotten you, we're just swamped with a bunch of other things right now and this one is particularly hard to diagnose and reproduce.

Let me know if you're experiencing any problems...

Thanks

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
Sun, 07/04/2010 - 02:10
Tom
Offline
Joined: 06/07/2010
Groups: None

Thank you Perry.

The only problem I'm experiencing it the recurrence of the high cpu consumption (about once a week). :\

Tom.

Top
Thu, 07/08/2010 - 14:28
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

Tom, I'm still trying to reproduce this and have as yet been unsuccessful. The next time that you need to restart the service, would it be possible to substitute a different machine and see if the problem recurs there? That will help determine whether there is anything specific to one system causing this.

Thanks

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
Fri, 07/09/2010 - 03:30
Tom
Offline
Joined: 06/07/2010
Groups: None

Perry, I'm not sure I understand the meaning of "substitute a different machine". I'm using amazon servers, so it is possible for me to tear down this server and replace it with a new one, while leaving the other the other two servers just as they are. I don't have to wait for the next occurrence of the problem, so I just might do that.

Thank you!

Tom.

Top
Fri, 07/09/2010 - 11:03
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

Thanks Tom, it wasn't totally clear for me whether you were running on Amazon or not. That obviously makes things even easier...

If at all possible, when the "bad" server comes under high CPU load, you could leave it running but essentially disable it from your app and replace it with a new one. This would allow us to attach a debugger and/or profiler to it without affecting your site's performance.

I must apologize that this is taking so long, but being unable to reproduce this issue essentially means we're working blind. I really do appreciate your patience and I'm committed to getting this resolved.

Thanks!

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
Fri, 07/23/2010 - 03:53
Tom
Offline
Joined: 06/07/2010
Groups: None

I've recently replaced the problematic server with a new one. It seems to work just fine, so as far as I'm concerned the problem is solved. Thank you Perry!

Top
Fri, 07/23/2010 - 09:01
Perry Krug
Offline
Joined: 06/02/2010
Groups: None

Glad to hear Tom, let me know if there's anything else we can do for you.

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Membase: http://www.membase.com/products-and-services/overview
Call or email "sales -at- membase -dot- com" today!

Top
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker