<div dir="ltr"><div>I've recently had an issue where my site becomes intermittently unavailable after years of working fine and I'm uncertain on how to troubleshoot where it's coming from.<br></div><div><br></div><div>My Zope site is accessed through Apache via proxy. I randomly started receiving Apaches Unavailable page as it is unable to pass off the request. After looking through both Apaches logs and Zopes logs I see that Zope is throwing a ton of ZODB warnings and criticals relating to pool_size and open connections. </div><div><br></div><div><div>2018-08-09T06:17:46 WARNING ZODB.DB DB.open() has 9 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:22:01 CRITICAL ZODB.DB DB.open() has 293 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:23:00 CRITICAL ZODB.DB DB.open() has 294 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:23:32 WARNING ZODB.DB DB.open() has 8 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:23:57 CRITICAL ZODB.DB DB.open() has 295 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:29:41 WARNING ZODB.DB DB.open() has 8 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:29:41 WARNING ZODB.DB DB.open() has 9 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:34:10 WARNING ZODB.DB DB.open() has 8 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:37:16 WARNING ZODB.DB DB.open() has 8 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:37:16 WARNING ZODB.DB DB.open() has 9 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:41:04 CRITICAL ZODB.DB DB.open() has 296 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:44:27 WARNING ZODB.DB DB.open() has 8 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:44:41 CRITICAL ZODB.DB DB.open() has 297 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:47:13 WARNING ZODB.DB DB.open() has 8 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:47:13 WARNING ZODB.DB DB.open() has 9 open connections with a pool_size of 7</div><div>------</div><div>2018-08-09T06:47:14 WARNING ZODB.DB DB.open() has 10 open connections with a pool_size of 7</div></div><div><br></div><div>During this, Apache is throwing the following errors: </div><div><div>[Thu Aug 09 08:39:55 2018] [error] (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.  : proxy: HTTP: attempt to connect to <a href="http://127.0.0.1:1337/" target="_blank">127.0.0.1:1337</a> (*) failed</div><div>[Thu Aug 09 08:41:00 2018] [error] (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.  : proxy: HTTP: attempt to connect to <a href="http://127.0.0.1:1337/" target="_blank">127.0.0.1:1337</a> (*) failed</div><div>[Thu Aug 09 08:41:38 2018] [error] (OS 10061)No connection could be made because the target machine actively refused it.  : proxy: HTTP: attempt to connect to <a href="http://127.0.0.1:1337/" target="_blank">127.0.0.1:1337</a> (*) failed</div><div>[Thu Aug 09 08:41:39 2018] [error] (OS 10061)No connection could be made because the target machine actively refused it.  : proxy: HTTP: attempt to connect to <a href="http://127.0.0.1:1337/" target="_blank">127.0.0.1:1337</a> (*) failed</div></div><div><br></div><div>I'm thinking that because of the large amount of open connections Zope is no longer serving requests and Apache is throwing the unavailable upon proxy. <br></div><div><br></div><div>My problem is that I'm not quite sure how to figure out what's using the amount of connections and how to get them to release. Any help would be appreciated.</div><div><br></div><div>Thanks!<div class="gmail-yj6qo gmail-ajU" style="outline:none;padding:10px 0px;width:22px;margin:2px 0px 0px"><br class="gmail-Apple-interchange-newline"></div></div></div>