From 83c8b5850f53b2ca3b50d2afdc7abdce59b11bd2 Mon Sep 17 00:00:00 2001 From: Brett Wooldridge Date: Fri, 27 Jan 2017 00:22:13 +0900 Subject: [PATCH] Update Welcome-To-The-Jungle.md --- documents/Welcome-To-The-Jungle.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documents/Welcome-To-The-Jungle.md b/documents/Welcome-To-The-Jungle.md index 82075c30..34a74767 100644 --- a/documents/Welcome-To-The-Jungle.md +++ b/documents/Welcome-To-The-Jungle.md @@ -75,14 +75,14 @@ HikariCP's profile in this case, and the reason for the difference observed betw 💡 **User threads should only ever block on the** ***pool itself***.1
1 to the greatest extent possible. -What does this mean? Consider this hypothetical scenario: +What does this mean? We'll tell you what it *doesn't* mean. Consider this hypothetical scenario: > There is a pool with five (5) connections in use, and zero (0) idle connections. A new thread comes in requesting a connection. If the thread is directed to create a new connection, and that connection takes 150ms to establish, what happens if one of the five in-use connections is returned to the pool? That available connection cannot be utilized, because the thread that could utilize it is blocked on another resource (not the pool). --------------------- -Both Apache and Vibur ended the run with 45 connections, while HikariCP ended the run with 5. This has major and measurable effects for real world deployments. That is 40 additional connections that are not available to other applications, and 40 additional threads and associated memory structures in the database. +Both Apache and Vibur ended the run with 45 connections, while HikariCP ended the run with 5 (technically six, see below). This has major and measurable effects for real world deployments. That is 40 additional connections that are not available to other applications, and 40 additional threads and associated memory structures in the database. We know what you are thinking, *"What if the load had been sustained?"*  The answer is: HikariCP also would have ramped up.