Skip to content

fix(mongodb): server overview shows memory in MB and real counters - #1818

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
fix/mongo-stats-units
Oct 25, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
fix/mongo-stats-units

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Found by opening the local MongoDB 7 test server in a debug build.

  • Memory. serverStatus.mem.resident / virtual / mapped are MiB; the overview formatted them as bytes ("Resident 167 B", "Virtual 586 B"). They are converted to bytes first now (167.0 MB, 587.0 MB).
  • Counters read as 0. opcounters.*, network.bytesIn / bytesOut / numRequests and the Queries tile come as bson Int64, which is not a Dart num; the parser returned null and the cards showed 0 with a live connection. mongoStatInt reads Int64 through its text, as MongoDatabasesView._toInt already did. After the fix: Queries 3, Updates 228, Bytes in 564 KB, Requests 1896.

Checked in the running app against the compose stack's querya-mongo. Test for the number reader. Not run locally (analyzer clean), CI will.

@ZhuchkaTriplesix ZhuchkaTriplesix added the bug Something isn't working label Oct 25, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 5500d4c into dev Oct 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant