Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CDADB991A for ; Wed, 21 Sep 2011 14:20:16 +0000 (UTC) Received: (qmail 70008 invoked by uid 500); 21 Sep 2011 14:20:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 69932 invoked by uid 500); 21 Sep 2011 14:20:13 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 69923 invoked by uid 99); 21 Sep 2011 14:20:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 14:20:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dcheckoway@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 14:20:08 +0000 Received: by qyc1 with SMTP id 1so17451707qyc.18 for ; Wed, 21 Sep 2011 07:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VdJP1J+Qmd6Sd4msVwi1xsOow6KR0ph++je5LcBoPCg=; b=ORrDX8W9zHdgQymoFgrPYIYN8X5c7t68S4/JQY9Accu+SY64rOTHprb1l+cS8uv1nS 3+Yc2wKk+q5C5dY8n1jyEGdKs+xZcvuKWWwJqKR/QI0leOsQbdRtp9BpzgA13m6Q7Ee7 qJ7l/rSmUbidPu0TsrYPLHeA29OSYhXwahwBs= MIME-Version: 1.0 Received: by 10.229.227.67 with SMTP id iz3mr585127qcb.296.1316614788044; Wed, 21 Sep 2011 07:19:48 -0700 (PDT) Received: by 10.229.2.140 with HTTP; Wed, 21 Sep 2011 07:19:47 -0700 (PDT) In-Reply-To: <4E79EAAD.5080904@christopherschultz.net> References: <4E78F9B6.8040704@christopherschultz.net> <4E79EAAD.5080904@christopherschultz.net> Date: Wed, 21 Sep 2011 10:19:47 -0400 Message-ID: Subject: Re: Executor thread lifecycle From: Dan Checkoway To: Tomcat Users List Content-Type: multipart/alternative; boundary=00163630f12bbf58d604ad744417 --00163630f12bbf58d604ad744417 Content-Type: text/plain; charset=ISO-8859-1 Chris, I do have one other webapp deployed alongside, but neither of them ever gets reloaded. We always do a full stop/start of tomcat to roll out new builds (which is about the only time we ever stop these apps). There's absolutely no performance penalty that I'm aware of. It was just the yet-unexplained recycling of threads. FWIW, we've got the pool based solution going now, so I'm off the whole ThreadLocal bandwagon (really really small wagon). This is uber low prio from my standpoint, in case you guys want to forget I ever brought it up. :-) Thanks, Dan On Wed, Sep 21, 2011 at 9:46 AM, Christopher Schultz < chris@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Dan, > > On 9/20/2011 4:47 PM, Dan Checkoway wrote: > > Thanks Chris. Those threads are *never* idle in this app. :-) > > They're still getting recycled periodically, it looks like, despite > > lack of idle time. > > Hmm, that does sound weird. Do you have other webapps also deployed > alongside this one? If you reload those webapps, the threads in the > thread pool will be recycled after a webapp undeployment to flush-out > any nasty stuff that might be tied to them. You can try setting the > "threadRenewalDelay" to a negative number to disable this particular > kind of recycling. > > > Does that make sense or am I on crack? > > You might still be on crack. > > Are you observing a performance penalty for this, or are you just > trying to explain an as-yet-unexplained recycling of threads? > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk556q0ACgkQ9CaO5/Lv0PADgwCfYqXFN9SBljy1LbEMUw2wEHpZ > 7NsAoK/kACgQm3tx+k9Uy0Xa9XyWIjEn > =g84G > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --00163630f12bbf58d604ad744417--