Memcachedb 1.2.0 taking 100% CPU and driving load avg to 4!!

17 views
Skip to first unread message

WadeB

unread,
Dec 30, 2009, 10:12:37 PM12/30/09
to memcachedb
I have compiled and ran memcachdb 1.2.0 with the --enable-threads
options on two different Linux distros (Fedora Core8 and CentOS 5.4),
both with the same result, neither one good.

What happens is that upon starting, the process climbs to 99% CPU and
sits there. It is also unresponsive to telnet commands. When I strace
the pid, what I get is this:

epoll_wait(3, {{EPOLLIN, {u32=167476800, u64=167476800}}}, 1024, 5000)
= 1
gettimeofday({1262229065, 343426}, NULL) = 0
gettimeofday({1262229065, 343623}, NULL) = 0
epoll_wait(3, {{EPOLLIN, {u32=167476800, u64=167476800}}}, 1024, 5000)
= 1
gettimeofday({1262229065, 343999}, NULL) = 0
gettimeofday({1262229065, 344191}, NULL) = 0
epoll_wait(3, {{EPOLLIN, {u32=167476800, u64=167476800}}}, 1024, 5000)
= 1
gettimeofday({1262229065, 344569}, NULL) = 0
gettimeofday({1262229065, 344760}, NULL) = 0
epoll_wait(3, {{EPOLLIN, {u32=167476800, u64=167476800}}}, 1024, 5000)
= 1
gettimeofday({1262229065, 345139}, NULL) = 0
gettimeofday({1262229065, 345336}, NULL) = 0
epoll_wait(3, {{EPOLLIN, {u32=167476800, u64=167476800}}}, 1024, 5000)
= 1
gettimeofday({1262229065, 345717}, NULL) = 0
gettimeofday({1262229065, 345907}, NULL) = 0
epoll_wait(3, {{EPOLLIN, {u32=167476800, u64=167476800}}}, 1024, 5000)
= 1
gettimeofday({1262229065, 346284}, NULL) = 0
gettimeofday({1262229065, 346476}, NULL) = 0

And it just keeps repeating....

Here are the options that I start up with:

-p21201 -d -r -u root -f session_data.db -H /sessions -N -P $PIDFILE

What am I doing wrong?

Thanks,

Q. Wade Billings

Steve Chu

unread,
Jan 4, 2010, 9:26:38 AM1/4/10
to memca...@googlegroups.com
Hi,

How about your libevent version?
Use 'ldd <your memcachedb bin>' to see which version of libevent you
linked with.

> --
>
> You received this message because you are subscribed to the Google Groups "memcachedb" group.
> To post to this group, send email to memca...@googlegroups.com.
> To unsubscribe from this group, send email to memcachedb+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/memcachedb?hl=en.
>
>
>

--
Best Regards,

Steve Chu
http://stvchu.org

Reply all
Reply to author
Forward
0 new messages