When server is started, mongotop works. After a few hours/days, mongotop fails. The error shown is of the form:
2022-07-01T01:38:14.747+0000 Failed: BSONObj size: 59797193 (0x3906EC9) is invalid. Size must be between 0 and 16793600(16MB) First element: note: “all times in microseconds”
If the mongod service is restarted, mongotop works again. But, again after a few hours/days, mongotop fails again with the same error above.
Another case is, when a script is run to check document object size across all documents in all collections in all databases, script fails after a while. It is Never always the same database/collection/document.
Please help in understanding why mongotop is failing randomly and make it work reliably without any failure.