johnlpage / mongocacheview Goto Github PK
View Code? Open in Web Editor NEWSee what is in your MongoDB WT Cache and how it's being used.
License: Apache License 2.0
See what is in your MongoDB WT Cache and how it's being used.
License: Apache License 2.0
It goes half way and terminates:
Collection Size Cached %tage Delta Read Written Used
addresses 3 0 0 0 0 0 0
osm_nodes 3039 375 12 37 265 0 4691210
osm_nodes_2017 52 0 0 0 0 0 0
osm_relations 8 0 0 0 0 0 0
osm_ways 1392 0 0 0 0 0 0
osm_ways_2017 27 0 0 0 0 0 0
postings 105 0 0 0 0 0 0
seen_db 2 0 0 0 0 0 0
url_cache 56 0 0 0 0 0 0
oplog.rs 175 5 2 0 0 12 5420
2018-03-12T15:57:29.616-0700 E QUERY [thread1] RangeError: invalid array length :
@./mongocacheview.js:49:17
failed to load: ./mongocacheview.js
If a database contains views the script will fail because it attempts to get indexes for the view.
Getting this error:
uncaught exception: Error: listCollections failed: {
"ok" : 0,
"errmsg" : "BSON field 'listCollections.nameOnly' is the wrong type 'object', expected type 'bool'",
"code" : 14,
"codeName" : "TypeMismatch",
"$clusterTime" : {
"clusterTime" : Timestamp(1716407879, 545),
"signature" : {
"hash" : BinData(0,"+/5clE2UWFD3j4EiXBgQW6Xpcdk="),
"keyId" : NumberLong("7311807678248910873")
}
//Main Loop
},
"operationTime" : Timestamp(1716407879, 545)
} :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DB.prototype._getCollectionInfosCommand@src/mongo/shell/db.js:808:15
DB.prototype.getCollectionInfos@src/mongo/shell/db.js:856:16
@mongocacheview.js:19:23
failed to load: mongocacheview.js
exiting with code -3
$ git rev-parse --short HEAD
21f2d9b
$ mongo mongocacheview.js
Collection Size Cached %tage Delta Read Written Used
[some (all?) collections listed]
uncaught exception: TypeError: db[collInfo.coll].stats is not a function :
@mongocacheview.js:50:21
failed to load: mongocacheview.js
exiting with code -3
$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.