Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 368211100A for ; Tue, 8 Apr 2014 15:12:26 +0000 (UTC) Received: (qmail 68314 invoked by uid 500); 8 Apr 2014 15:12:20 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 67953 invoked by uid 500); 8 Apr 2014 15:12:20 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 67623 invoked by uid 99); 8 Apr 2014 15:12:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2014 15:12:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of semberal@gmail.com designates 209.85.216.174 as permitted sender) Received: from [209.85.216.174] (HELO mail-qc0-f174.google.com) (209.85.216.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2014 15:12:10 +0000 Received: by mail-qc0-f174.google.com with SMTP id c9so1135024qcz.33 for ; Tue, 08 Apr 2014 08:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=5cRz0v1tQJpKn0ixCTSlYSmPe4DqduTMFATVSTYKvok=; b=mRi4delR8qHjf6RpDp/eHRneDyrOBbHwdMrBJu71Hv+ABj7eeSyXJq+Bj2DzNEu7FF RTBRkGawTvHCGXVRZxJRrALa8OieO0UlIVbsmusq1QTEJG2e0KkRu1iVjLmorfs+hppR 5mFD/LaTKnBMur8PxNwI3z4YsDu6cD5933cDX52aXfvcO0JCu2MWdMMu6p3i8vy0iUuK QoQrL9KMzalL6eoO4+VYn3F4wWva3xOUO5tQAzPw5hrrzBC1fLbtPmeuRWaVhDBJCsDN iZMq2HRnRAQgfGPeo9WRdQu9A8DTE0U35VdFzBpuoRpAVs6WfAgJRIobL6YA/wLhoL8T Ovrw== MIME-Version: 1.0 X-Received: by 10.224.115.68 with SMTP id h4mr5082604qaq.35.1396969907857; Tue, 08 Apr 2014 08:11:47 -0700 (PDT) Received: by 10.229.139.1 with HTTP; Tue, 8 Apr 2014 08:11:47 -0700 (PDT) Date: Tue, 8 Apr 2014 17:11:47 +0200 Message-ID: Subject: JDBC sampler with multiple users From: =?ISO-8859-2?Q?Luk=E1=B9_=A9embera?= To: user@jmeter.apache.org Content-Type: multipart/alternative; boundary=047d7bdc7fc61eaf8204f68967a7 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc7fc61eaf8204f68967a7 Content-Type: text/plain; charset=ISO-8859-1 Hi, I would like to test the database using JDBC with a certain amount of distinct concurrent users (e.g. test_user_{1-100}). I created a thread group with JDBC connection configuration where username was defined as: "test_user_{$__threadNum}". Unfortunately this doesn't work because __threadNum is not accessible in configuration elements (in other words there is a single JDBC connection pool with N max connections for the whole thread pool, whereas I probably need N JDBC connection pools with 1 max connections). I was thiking about the Only Once Controller to define my resource pool before actual queries are sent to the database, but I'm stuck again because it is not possible to create JDBC connection configuration with username such as test_user_{$someThreadScopedVariable}. Any suggestions and hints are welcome. Thank you. --047d7bdc7fc61eaf8204f68967a7--