Details
-
Question
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
Description
I install a community mongodb cluster for test. one of the mongod member eat a lot cpu and memory without any workload, my computer is 2U4G,
from top command, cpu is 153%:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4637 Ruby 20 0 4060396 3.085g 6216 S 153.7 83.0 287288:54 mongod
from top -H:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4644 Ruby 20 0 4060396 3.086g 6216 S 41.7 83.0 69836:17 mongod
4645 Ruby 20 0 4060396 3.086g 6216 R 38.3 83.0 69850:52 mongod
4643 Ruby 20 0 4060396 3.086g 6216 R 35.7 83.0 69847:28 mongod
4642 Ruby 20 0 4060396 3.086g 6216 S 34.3 83.0 69895:33 mongod
and I grap those 4 threads stack:
Thread 76 (Thread 0x7f552fdb6700 (LWP 4642)):
#0 0x00007f55339e0a82 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x0000000001c6b50c in __wt_cond_wait_signal ()
#2 0x0000000001c442d2 in __wt_evict_thread_run ()
#3 0x0000000001caa986 in __wt_thread_run ()
#4 0x00007f55339dcdc5 in start_thread () from /lib64/libpthread.so.0
#5 0x00007f553370a81d in lseek64 () from /lib64/libc.so.6
#6 0x0000000000000000 in ?? ()
Thread 75 (Thread 0x7f552f5b5700 (LWP 4643)):
#0 0x0000000001be0a1e in ?? ()
#1 0x0000000001be0a96 in ?? ()
#2 0x0000000001be0f7c in ?? ()
#3 0x0000000001bf8c58 in __wt_split_rewrite ()
#4 0x0000000001c4744a in __wt_evict ()
#5 0x0000000001c42003 in ?? ()
#6 0x0000000001c42387 in ?? ()
#7 0x0000000001c43ca0 in __wt_evict_thread_run ()
#8 0x0000000001caa986 in __wt_thread_run ()
#9 0x00007f55339dcdc5 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f553370a81d in lseek64 () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()
Thread 74 (Thread 0x7f552edb4700 (LWP 4644)):
#0 0x00007f55339e0a82 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x0000000001c6b50c in __wt_cond_wait_signal ()
#2 0x0000000001c423e8 in ?? ()
#3 0x0000000001c43ca0 in __wt_evict_thread_run ()
#4 0x0000000001caa986 in __wt_thread_run ()
#5 0x00007f55339dcdc5 in start_thread () from /lib64/libpthread.so.0
#6 0x00007f553370a81d in lseek64 () from /lib64/libc.so.6
#7 0x0000000000000000 in ?? ()
Thread 73 (Thread 0x7f552e5b3700 (LWP 4645)):
#0 0x00007f55339e0a82 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x0000000001c6b50c in __wt_cond_wait_signal ()
#2 0x0000000001c423e8 in ?? ()
#3 0x0000000001c43ca0 in __wt_evict_thread_run ()
#4 0x0000000001caa986 in __wt_thread_run ()
#5 0x00007f55339dcdc5 in start_thread () from /lib64/libpthread.so.0
#6 0x00007f553370a81d in lseek64 () from /lib64/libc.so.6
#7 0x0000000000000000 in ?? ()
Is it exepected?
mongodb version is 3.4.14