From issues-return-12837-archive-asf-public=cust-asf.ponee.io@jmeter.apache.org Sun May 20 23:38:28 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D5911180632 for ; Sun, 20 May 2018 23:38:27 +0200 (CEST) Received: (qmail 18224 invoked by uid 500); 20 May 2018 21:38:25 -0000 Mailing-List: contact issues-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@jmeter.apache.org Delivered-To: mailing list issues@jmeter.apache.org Received: (qmail 18209 invoked by uid 99); 20 May 2018 21:38:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 May 2018 21:38:25 +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 A0F0D1A04BC for ; Sun, 20 May 2018 21:38:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.311 X-Spam-Level: X-Spam-Status: No, score=-2.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id eMufMXgA-V4u for ; Sun, 20 May 2018 21:38:23 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 34E585F58C for ; Sun, 20 May 2018 21:38:23 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 7A26DE0160 for ; Sun, 20 May 2018 21:38:22 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id A25F060B2E; Sun, 20 May 2018 21:38:21 +0000 (UTC) From: bugzilla@apache.org To: issues@jmeter.apache.org Subject: [Bug 62390] jmeter threads use overloaded run method but not CachedThreadPool Date: Sun, 20 May 2018 21:38:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: JMeter X-Bugzilla-Component: Main X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: srijondas@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: issues@jmeter.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D62390 --- Comment #1 from Srijon --- /* This is the original way multithreading was implemented in jMeter by implementing the Runnable interface public void runTest() throws JMeterEngineException { if (host !=3D null){ long now=3DSystem.currentTimeMillis(); System.out.println("Starting the test on host " + host + " @ "+= new Date(now)+" ("+now+")"); // NOSONAR Intentional } try { Thread runningThread =3D new Thread(this, "StandardJMeterEngine= "); runningThread.start(); } catch (Exception err) { stopTest(); throw new JMeterEngineException(err); } } */ /*This is the proposed way to implentation using executors, this will all= ow jmeter threads to be paused during execution*/ @Override public void runTest() throws JMeterEngineException { if (host !=3D null){ long now=3DSystem.currentTimeMillis(); System.out.println("Starting the test on host " + host + " @ "+= new Date(now)+" ("+now+")"); // NOSONAR Intentional } ExecutorService execService =3D Executors.newCachedThreadPool(); //= using newCachedThreadPool to implement multi-threading in jMeter execService.execute(this); } --=20 You are receiving this mail because: You are the assignee for the bug.=