AWS Thinkbox Discussion Forums

launcher keeps making new connections to db every 10 sec

edit: -------------- Seems like this slave was still on an old build, before the connection pooling was enabled in the driver. Once updated to the latest, it doesnt do this any longer!

Hi there,

While trying to troubleshoot our terrible mongo db performance, i noticed that the deadline launcher keeps making new connections to the db, about every 10 seconds.

Here is one sequence. No other process running, only the launcher:

First, you see one connection being accepted, which is the launcher’s own, main connection:
2014-09-26T17:48:24.542-0700 [initandlisten] connection accepted from 172.18.2.120:56143 #199225040 (3141 connections now open)

then you will see a new connection open/close pair, every 10 seconds:
2014-09-26T17:48:34.646-0700 [initandlisten] connection accepted from 172.18.2.120:56147 #199225346 (3145 connections now open)
2014-09-26T17:48:34.655-0700 [conn199225346] end connection 172.18.2.120:56147 (3146 connections now open)

at the very end, i shut down the launcher, so you see the main connection closing:
2014-09-26T17:50:34.949-0700 [conn199225040] end connection 172.18.2.120:56143 (3144 connections now open)

2014-09-26T17:48:24.542-0700 [initandlisten] connection accepted from 172.18.2.120:56143 #199225040 (3141 connections now open)
2014-09-26T17:48:34.646-0700 [initandlisten] connection accepted from 172.18.2.120:56147 #199225346 (3145 connections now open)
2014-09-26T17:48:34.655-0700 [conn199225346] end connection 172.18.2.120:56147 (3146 connections now open)
2014-09-26T17:48:44.644-0700 [initandlisten] connection accepted from 172.18.2.120:56150 #199225645 (3146 connections now open)
2014-09-26T17:48:44.646-0700 [conn199225645] end connection 172.18.2.120:56150 (3145 connections now open)
2014-09-26T17:48:54.644-0700 [initandlisten] connection accepted from 172.18.2.120:56153 #199225946 (3144 connections now open)
2014-09-26T17:48:54.645-0700 [conn199225946] end connection 172.18.2.120:56153 (3143 connections now open)
2014-09-26T17:49:04.659-0700 [initandlisten] connection accepted from 172.18.2.120:56156 #199226235 (3139 connections now open)
2014-09-26T17:49:04.660-0700 [conn199226235] end connection 172.18.2.120:56156 (3138 connections now open)
2014-09-26T17:49:14.674-0700 [initandlisten] connection accepted from 172.18.2.120:56159 #199226536 (3137 connections now open)
2014-09-26T17:49:14.676-0700 [conn199226536] end connection 172.18.2.120:56159 (3136 connections now open)
2014-09-26T17:49:24.674-0700 [initandlisten] connection accepted from 172.18.2.120:56163 #199226840 (3140 connections now open)
2014-09-26T17:49:24.675-0700 [conn199226840] end connection 172.18.2.120:56163 (3139 connections now open)
2014-09-26T17:49:34.689-0700 [initandlisten] connection accepted from 172.18.2.120:56166 #199227141 (3142 connections now open)
2014-09-26T17:49:34.691-0700 [conn199227141] end connection 172.18.2.120:56166 (3141 connections now open)
2014-09-26T17:49:44.689-0700 [initandlisten] connection accepted from 172.18.2.120:56169 #199227444 (3143 connections now open)
2014-09-26T17:49:44.690-0700 [conn199227444] end connection 172.18.2.120:56169 (3142 connections now open)
2014-09-26T17:49:54.704-0700 [initandlisten] connection accepted from 172.18.2.120:56173 #199227736 (3141 connections now open)
2014-09-26T17:49:54.706-0700 [conn199227736] end connection 172.18.2.120:56173 (3140 connections now open)
..
2014-09-26T17:50:14.719-0700 [initandlisten] connection accepted from 172.18.2.120:56179 #199228326 (3140 connections now open)
2014-09-26T17:50:14.721-0700 [conn199228326] end connection 172.18.2.120:56179 (3139 connections now open)
2014-09-26T17:50:24.735-0700 [initandlisten] connection accepted from 172.18.2.120:56182 #199228628 (3143 connections now open)
2014-09-26T17:50:24.736-0700 [conn199228628] end connection 172.18.2.120:56182 (3142 connections now open)
2014-09-26T17:50:34.751-0700 [initandlisten] connection accepted from 172.18.2.120:56187 #199228930 (3147 connections now open)
2014-09-26T17:50:34.753-0700 [conn199228930] end connection 172.18.2.120:56187 (3145 connections now open)
2014-09-26T17:50:34.949-0700 [conn199225040] end connection 172.18.2.120:56143 (3144 connections now open)

With ~2000 machines running the launcher, these connections mean ~200 connections per second from the launchers alone.

Privacy | Site terms | Cookie preferences