https://github.com/francescorivola/mongodb-dirtycache-top
MongoDB tool to list collections with dirtiest WiredTiger cache.
https://github.com/francescorivola/mongodb-dirtycache-top
dirtycache mongodb top wiredtiger
Last synced: 3 months ago
JSON representation
MongoDB tool to list collections with dirtiest WiredTiger cache.
- Host: GitHub
- URL: https://github.com/francescorivola/mongodb-dirtycache-top
- Owner: francescorivola
- License: mit
- Created: 2018-11-01T15:37:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T10:56:40.000Z (over 2 years ago)
- Last Synced: 2023-08-09T12:31:02.491Z (about 2 years ago)
- Topics: dirtycache, mongodb, top, wiredtiger
- Language: JavaScript
- Homepage:
- Size: 387 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mongodb-dirtycache-top
[ ](https://www.npmjs.com/package/mongodb-dirtycache-top)
[](https://github.com/francescorivola/mongodb-dirtycache-top/actions)
[](https://www.codefactor.io/repository/github/francescorivola/mongodb-dirtycache-top)
[](https://dependabot.com/)MongoDB tool to list collections with dirtiest WiredTiger cache.
Similar to [mongotop](https://docs.mongodb.com/manual/reference/program/mongotop), this tool shows which database collections have the highest value in bytes of the WiredTiger dirty cache.
## Installation
Install NodeJs than install it using npm:
$ npm install mongodb-dirtycache-top -g
## Usage
The usage documentation can be found running the tool with the help flag:
$ mongodb-dirtycache-top --help
Output:
```
Usage: mongodb-dirtycache-top [options]MongoDB tool to list collections with dirtiest WiredTiger cache.
Options:
-V, --version output the version number
-h, --host [value] Set host (required)
-p, --port [value] Set port (default: 27017)
-u, --username [value] Set username (required)
-p, --password [value] Set password (required)
-d, --database [value] Set database (required)
-c, --collections [value] Set collections name separated by comma. If not specified will inspect all database collections
-i, --interval Set refresh interval in milliseconds (default: 1000)
--help display help for command
```## License
MIT