[SERVER-28704] 100% cpu usage for mongod Created: 09/Apr/17  Updated: 21/Jun/17  Resolved: 24/May/17

Status: Closed
Project: Core Server
Component/s: Performance
Affects Version/s: 3.2.12
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Tudor Aursulesei Assignee: Mark Agarunov
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2017-04-09 at 13.06.47.png    
Operating System: ALL
Participants:

 Description   

strace -f gives me:

[pid 1548028] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1548011] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1548001] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1547988] <... futex resumed> )     = 0
[pid 1547986] <... futex resumed> )     = 1
[pid 1548022] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1548020] <... futex resumed> )     = 1
[pid 1548022] <... futex resumed> )     = 1
[pid 1548021] <... futex resumed> )     = 0
[pid 1548002] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1548021] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1548002] <... futex resumed> )     = 1
[pid 1547993] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1548002] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1547991] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1547985] <... futex resumed> )     = 0
[pid 1547984] <... futex resumed> )     = 1
[pid 1547980] <... futex resumed> )     = 1
[pid 1548009] <... futex resumed> )     = 0
[pid 1547991] <... futex resumed> )     = 1
[pid 1548024] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1547989] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1548024] <... futex resumed> )     = 1
[pid 1548018] <... futex resumed> )     = 0
[pid 1548024] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1548018] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1547986] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1547984] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1547957] <... futex resumed> )     = 0
[pid 1548022] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1547934] <... futex resumed> )     = -1 EAGAIN (Resource temporarily unavailable)
[pid 1548022] <... futex resumed> )     = 1
[pid 1548020] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1547994] <... futex resumed> )     = 0
[pid 1548020] <... futex resumed> )     = 1
[pid 1548008] <... futex resumed> )     = 0
[pid 1548020] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1547991] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1547986] <... futex resumed> )     = 1
[pid 1547995] <... futex resumed> )     = 0
[pid 1547991] <... futex resumed> )     = 1
[pid 1547995] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1548028] <... futex resumed> )     = 0
[pid 1548021] <... futex resumed> )     = 0
[pid 1548028] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1548021] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1548011] <... futex resumed> )     = 0
[pid 1548006] <... futex resumed> )     = 0
[pid 1548011] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1548006] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1548005] <... futex resumed> )     = 0
[pid 1548001] <... futex resumed> )     = 1
[pid 1548022] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1548005] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1548022] <... futex resumed> )     = 1
[pid 1548013] <... futex resumed> )     = 0
[pid 1548002] <... futex resumed> )     = 0
[pid 1548000] <... futex resumed> )     = 0
[pid 1548002] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1547995] <... futex resumed> )     = -1 EAGAIN (Resource temporarily unavailable)
[pid 1547994] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1547995] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>
[pid 1548024] <... futex resumed> )     = 0
[pid 1548009] futex(0x229dae0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 1547994] <... futex resumed> )     = 1
[pid 1548018] <... futex resumed> )     = 0
[pid 1548009] <... futex resumed> )     = 1
[pid 1548018] futex(0x229dae0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff <unfinished ...>



 Comments   
Comment by Kelsey Schubert [ 24/May/17 ]

Hi thestick613,

We haven’t heard back from you for some time, so I’m going to mark this ticket as resolved. If this is still an issue for you, please provide additional information and we will reopen the ticket.

Regards,
Thomas

Comment by Ramon Fernandez Marina [ 09/Apr/17 ]

Can you please upload the contents of the diagnostic.data directory from your dbpath and the logs for this mongod? Would be good to understand if this condition was caused by normal operation or a bug.

Thanks,
Ramón.

Comment by Tudor Aursulesei [ 09/Apr/17 ]

The issue disappeared after restarting the mongod instance.

Generated at Thu Feb 08 04:18:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.