Return-Path: X-Original-To: apmail-jmeter-dev-archive@minotaur.apache.org Delivered-To: apmail-jmeter-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B4BE918B16 for ; Sat, 2 Jan 2016 15:38:23 +0000 (UTC) Received: (qmail 65239 invoked by uid 500); 2 Jan 2016 15:38:23 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 65202 invoked by uid 500); 2 Jan 2016 15:38:23 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 65191 invoked by uid 99); 2 Jan 2016 15:38:23 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jan 2016 15:38:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A7E6F1A0AAF for ; Sat, 2 Jan 2016 15:38:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.446 X-Spam-Level: X-Spam-Status: No, score=0.446 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id gGWHJEcnbftQ for ; Sat, 2 Jan 2016 15:38:18 +0000 (UTC) Received: from internetallee.de (internetallee.de [81.169.162.220]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 15DD5201F6 for ; Sat, 2 Jan 2016 15:38:17 +0000 (UTC) Received: from [192.168.178.20] (dslb-088-077-204-110.088.077.pools.vodafone-ip.de [88.77.204.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by internetallee.de (Postfix) with ESMTPSA id 99FBE494800B for ; Sat, 2 Jan 2016 16:38:13 +0100 (CET) To: dev@jmeter.apache.org From: Felix Schumacher Subject: doc for jdbc pool configuration Message-ID: <5687EEE3.3070603@internetallee.de> Date: Sat, 2 Jan 2016 16:38:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi all, in our documentation there is one section about the sizing of the pool, which I like to discuss: "If you really want to use shared pooling (why?), then set the max count to the same as the number of threads to ensure threads don't wait on each other." First: I think pooling is a valid option even for user-centric scenarios. Think about simulating the sql requests of an application server. In such a case a pool would have been used, so why not when simulating it? So for this part, I question the part "...(why?)..." and the "really" in front of it. Second: When a pool is used (at least the dbcp2 pool) the connections seem to be stored in a stack like construct. So in a uncontended load situation the pool will use only a fraction of the configured size and in a contended situation with really many threads it will probably overload the db. So all in all I would rather change the sentence to something like "If you want to use shared pooling, then set the max count to something sensible". Regards, Felix