[SERVER-27602] High CPU usage and Error running mongotop after upgrade to Mongo 2.6.12 Created: 07/Jan/17  Updated: 30/Jan/17  Resolved: 30/Jan/17

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.6.12
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Adam Parkin Assignee: Kelsey Schubert
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-21167 Top keeps state about operations agai... Closed
Related
related to SERVER-6627 top command should return cursor Backlog
Operating System: ALL
Participants:

 Description   

Previously we were running Mongo 2.4.10 in our production environment. Last night I upgraded it to Mongo 2.6.12 as our plan is to eventually upgrade to 3.4 so we can migrate to Atlas from being self-hosted. Since upgrading to 2.6 we've been seeing very high CPU usage (200% pretty consistently) on the server (replicaset of 1 primary + an aribter). mongostat isn't reporting anything out of the ordinary, so I tried running mongotop to try and diagnose the problem, but I'm getting:

assertion: 13106 nextSafe(): { $err: "BSONObj size: 67108859 (0x3FFFFFB) is invalid. Size must be between 0 and 16793600(16MB)", code: 10334 }

If I go into the mongo shell and try:

rs0:PRIMARY> db.adminCommand("top");

I get:

2017-01-07T18:36:34.039+0000 error: {
    "$err" : "BSONObj size: 67108859 (0x3FFFFFB) is invalid. Size must be between 0 and 16793600(16MB)",
    "code" : 10334
} at src/mongo/shell/query.js:131

How can I fix this issue? More importantly, how can I address the high cpu usage.



 Comments   
Comment by Kelsey Schubert [ 30/Jan/17 ]

Hi aparkin,

Thanks for your report. I've linked this his ticket to two related open SERVER tickets regarding mongotop. Please feel free to watch and vote for SERVER-21167 and SERVER-6627. Unfortunately, we cannot further investigate the CPU usage that you describe, as MongoDB 2.6.12 is no longer supported.

For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group. See also our Technical Support page for additional support resources.

Kind regards,
Thomas

Comment by Adam Parkin [ 07/Jan/17 ]

This seems similar to https://jira.mongodb.org/browse/SERVER-14540

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