KerwinMa / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Memcached 1.4.19 takes 100% CPU #366

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Restart httpd.
2. Restart php-fpm.
3. Use memcached in your php scripts.

What is the expected output? What do you see instead?

No high CPU load.

What version of the product are you using? On what operating system?

1.4.19 on CentOS 6.5 64-bit + PHP 5.4.28 + php-fpm + Apache 2.2.27

Please provide any additional information below.

After updating from 1.4.18 to 1.4.19 we notice memcached is taking 100% CPU. 
Restarting memcached helps for a while then it happens again. Downgrade to 
1.4.18 fixes the problem.

My setting are as follows:

PORT="11211"
USER="root"
MAXCONN="1000"
CACHESIZE="3172"

Original issue reported on code.google.com by ad...@galeriaportali.pl on 10 May 2014 at 8:55

GoogleCodeExporter commented 9 years ago
Could you attack gdb to a stuck process and get a backtrace?

gdb -p $(pidof memcached)
thread apply all bt

Are you getting timeouts or or it just spinning cpu?

Can you provide:
- Exact kernel version (uname -a)
- How memcached was built (source? yum repo? which repo?)
- Output of: "stats", "stats settings", "stats conns"
- Output of: lsof -p $(pidof memcached)
- The above gdb backtrace

We had one other report of this but the user was also seeing it under .18. Are 
you sure it never happens there?

How long does it take between starting it and when it craps out?

Thank you

Original comment by dorma...@rydia.net on 10 May 2014 at 9:02

GoogleCodeExporter commented 9 years ago
Nevermind. This should be fixed in 1.4.20, which was just released. Please try 
it and re-file if you have trouble.

Original comment by dorma...@rydia.net on 11 May 2014 at 7:59