Answer the question
In order to leave comments, you need to log in
How to close connection in mongodb??
How can a connection be closed in mongodb?
Then too many connections are obtained, I want to close them right away!
2016-11-06T02:39:09.021+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62842 #1517 (115 connections now open)
2016-11-06T02:39:09.023+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62843 #1518 (116 connections now open)
2016-11-06T02:39:16.332+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62845 #1519 (117 connections now open)
2016-11-06T02:39:16.334+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62846 #1520 (118 connections now open)
2016-11-06T02:39:16.339+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62847 #1521 (119 connections now open)
2016-11-06T02:39:16.341+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62848 #1522 (120 connections now open)
2016-11-06T02:39:17.919+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62850 #1523 (121 connections now open)
2016-11-06T02:39:17.922+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62851 #1524 (122 connections now open)
2016-11-06T02:39:17.927+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62852 #1525 (123 connections now open)
2016-11-06T02:39:17.930+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62853 #1526 (124 connections now open)
2016-11-06T02:39:19.470+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62855 #1527 (125 connections now open)
2016-11-06T02:39:19.472+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62856 #1528 (126 connections now open)
2016-11-06T02:39:19.478+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62857 #1529 (127 connections now open)
2016-11-06T02:39:19.480+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62858 #1530 (128 connections now open)
2016-11-06T02:39:20.708+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62860 #1531 (129 connections now open)
2016-11-06T02:39:20.710+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62861 #1532 (130 connections now open)
2016-11-06T02:39:20.716+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62862 #1533 (131 connections now open)
2016-11-06T02:39:20.718+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62863 #1534 (132 connections now open)
2016-11-06T02:39:21.926+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62866 #1535 (133 connections now open)
2016-11-06T02:39:21.928+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62867 #1536 (134 connections now open)
2016-11-06T02:39:21.933+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62868 #1537 (135 connections now open)
2016-11-06T02:39:21.935+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62869 #1538 (136 connections now open)
2016-11-06T02:39:23.238+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62871 #1539 (137 connections now open)
2016-11-06T02:39:23.241+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62872 #1540 (138 connections now open)
2016-11-06T02:39:23.246+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62873 #1541 (139 connections now open)
2016-11-06T02:39:23.248+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62874 #1542 (140 connections now open)
2016-11-06T02:39:25.137+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62876 #1543 (141 connections now open)
2016-11-06T02:39:25.139+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62877 #1544 (142 connections now open)
2016-11-06T02:39:25.144+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62878 #1545 (143 connections now open)
2016-11-06T02:39:25.146+0500 I NETWORK [thread1] connection accepted from 127.0.0.1:62879 #1546 (144 connections now open)
Answer the question
In order to leave comments, you need to log in
As an option - use Spring Data MongoDB to work . This library provides connection pooling and controls open connections.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question