``` javascript
db.createCollection("my_collection", {"capped" : true, "size" : 100000});
db.createCollection("my_collection2", {"capped" : true, "size" : 100000, "max" : 100});
db.runCommand({"convertToCapped" : "test", "size" : 10000});
```