[SERVER-6776] Mongos take 100 % cpu intermittently Created: 16/Aug/12 Updated: 08/Mar/13 Resolved: 21/Sep/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 2.0.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | jitendra | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | mongos | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
linux OEL |
||
| Attachments: |
|
| Operating System: | Linux |
| Participants: |
| Description |
|
hi, Mongos take 100% cpu intermittently. Setup : mongos -1 , mongod (shard) - 10 , config server - 3 I have attached mongos logs. Please tell me why does mongos take 100% cpu. Thanks, |
| Comments |
| Comment by Spencer Brody (Inactive) [ 27/Aug/12 ] |
|
HI Jitendra, It would be very helpful for our ability to debug this to get "mongostat --discover" run against the mongos and "iostat -x 2" run on any machines experiencing the high cpu usage the next time this happens. You may also want to try upgrading to 2.0.7 to see if that helps. |
| Comment by jitendra [ 22/Aug/12 ] |
|
hi , Now one of the mongod instances took 100% CPU. Below mongod serverStatus: > db.serverStatus() , }, , , , }, , , , , , , Please tell me, why mongod cpu go 100% ? Thanks, |
| Comment by Spencer Brody (Inactive) [ 17/Aug/12 ] |
|
Unfortunately there isn't a lot to go on in the mongos logs you attached. Without more information there's not much we can do to diagnose this. Is this still happening? Can you not run mongostat --discover against the problematic mongos (and take note of the cpu breakdown between user and system time) the next time this occurs? |
| Comment by jitendra [ 17/Aug/12 ] |
|
Hi, Please tell me what should do when mongos go at 100 % cpu Thanks, |
| Comment by Scott Hernandez (Inactive) [ 16/Aug/12 ] |
|
Can you please attach mongostat output from before and during the high cpu? There are many things which might cause the process to use high cpu during normal workloads. Also, what is the cpu breakdown? Is it all user time? |