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 B1106D879 for ; Tue, 14 Aug 2012 22:33:36 +0000 (UTC) Received: (qmail 60021 invoked by uid 500); 14 Aug 2012 22:33:36 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 59960 invoked by uid 500); 14 Aug 2012 22:33:35 -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 59949 invoked by uid 99); 14 Aug 2012 22:33:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 22:33:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.220.171 as permitted sender) Received: from [209.85.220.171] (HELO mail-vc0-f171.google.com) (209.85.220.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 22:33:28 +0000 Received: by vcdd16 with SMTP id d16so969456vcd.2 for ; Tue, 14 Aug 2012 15:33:07 -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=oLSyqx19xZ0HRw0Gk49T21UcJ1IGR010sA3bzBiqZK0=; b=ptWonVnYFeaqFAAIKgvdKlvavcTTW+TmsWy8qWq6ZqSS+Ji9+Qys/EFXnFGkW2kJJg Lk8K3TiTzInY2V58r9Q9W2+hw5dSMPNpyhScg9VeBzeOmjDEmuazvL4tjKYLo5sJ/0u6 XCxJZliQRwWxpCKH0GZYm5QQJmjv2srGaujZOgyzexdtquFWxYCiwg4bQzoQoTwQnI+c K2dvKqS6TUCl39/K/JPsHXD1FMK1bHu3J4aVWEb+bf+cp8PXVo+VcaV1BZ3iqqf9n7dG ptdSw7YYLKqJWsLEqIJBBlcHVWMXWX9E7MgZ4SoxSFx7BLgCJ+ZGtdA+lmwaiz+ZAsrG 8bTg== MIME-Version: 1.0 Received: by 10.59.1.193 with SMTP id bi1mr12821261ved.57.1344983587109; Tue, 14 Aug 2012 15:33:07 -0700 (PDT) Received: by 10.58.29.111 with HTTP; Tue, 14 Aug 2012 15:33:06 -0700 (PDT) Date: Tue, 14 Aug 2012 23:33:06 +0100 Message-ID: Subject: Delayed thread creation (was OnDemand ThreadGroup) From: sebb To: JMeter User Content-Type: text/plain; charset=ISO-8859-1 In version 2.7 and earlier, JMeter created all the threads and associated data at the start of the test. Startup delay and ramp-up were implemented by each thread pausing as necessary. This works well for tests where almost all threads are active for most of the run. But it's not good for tests with a large number of threads and where the ramp-up time is much longer than the time it takes to run a single thread. In such tests, the number of concurrently active threads is much lower than the total number of threads. So we've been experimenting with creating the per-thread resources at the time they are needed. After several iterations, we now have a development version of JMeter (*) that offers a "Delayed thread creation" option on the Thread Group GUI. When this is selected, the threads in a thread group are only created and started when they are due to run. The startup delay (if any) and ramp-up delay are now performed before the thread data is created. This means that the memory requirements are proportional to the number of concurrent active threads, rather than the total thread count. Provided that the active count does not grow too large, it should be possible to run tests with very large maximum thread count. If "Delayed thread creation" is not selected, JMeter behaves as before, i.e. all thread resouces are created at the start of a test. Note: this was originally implemented as an "On Demand ThreadGroup", but it was felt that "On Demand" could have implied that extra threads could be created during a test run. The implementation still requires the maximum thread count and ramp up to be defined in advance. (*) r1373042 and later for any developers who want to try this out. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org For additional commands, e-mail: user-help@jmeter.apache.org