I am using laravel 5.1 with jenssengers mongodb. I am unusre if the connection to the mongodb & mysql is closed when not in use.if not what is the way i can close the connection.
Asked
Active
Viewed 523 times
3
-
1Why don't you put it in issues of github repo? It might help more. – Aditya Giri Sep 28 '15 at 06:43
-
Oh! I see what you're saying. Try to do fork and then change it accordingly, there you go. – Gaurav Dave Sep 30 '15 at 13:35
1 Answers
0
I believe the connections would be closed when not in use, you can use db.currentOp() to see whats running or hung up at the DB end.
db.currentOp().inprog.forEach(
function(op) {
if(op.secs_running > 5) printjson(op);
}
)
Reference - http://blog.mongolab.com/2014/02/mongodb-currentop-killop/

Brij Raj Singh - MSFT
- 4,903
- 7
- 36
- 55
-
In mongo offcourse, use some tool like robomongo to run this – Brij Raj Singh - MSFT Sep 28 '15 at 06:50