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 7B3ABEB86 for ; Sun, 3 Feb 2013 17:40:00 +0000 (UTC) Received: (qmail 55877 invoked by uid 500); 3 Feb 2013 17:39:56 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 55820 invoked by uid 500); 3 Feb 2013 17:39:56 -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 55811 invoked by uid 99); 3 Feb 2013 17:39:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Feb 2013 17:39:56 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.32] (HELO qmta03.westchester.pa.mail.comcast.net) (76.96.62.32) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Feb 2013 17:39:50 +0000 Received: from omta02.westchester.pa.mail.comcast.net ([76.96.62.19]) by qmta03.westchester.pa.mail.comcast.net with comcast id voTg1k0060QuhwU53tfTJR; Sun, 03 Feb 2013 17:39:27 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta02.westchester.pa.mail.comcast.net with comcast id vtfR1k00838FjT13NtfT2n; Sun, 03 Feb 2013 17:39:27 +0000 Message-ID: <510EA0CF.7080203@christopherschultz.net> Date: Sun, 03 Feb 2013 12:39:27 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Help in diagnosing server unresponsiveness References: <510C157C.2000100@christopherschultz.net> In-Reply-To: X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1359913167; bh=KxHkRlPnmD9mp/6LfSzjD42S8FG3TAetvqkwyNyCNSE=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=XDLmmppw4HJBxAINcxPwLqqWxKC3XZzeAbH0yI7JU92dkjTLMXHgpwEgzpg0UdTBH nXMAhZKJyTtBq1UuIhascT0WbM2FFxx9WHSuh0KVuoOErKkjbhvTKwdFiU9L1q1++L YiM0GtxYyFqCcE5us9d1gUcm4AZUaPdAe9LuUw2PmcH844472NhuwBs/M2CF5Wi3KU a7tneeNDnYrKEGmMLzaWF0DB7+RDAsKkE5Icuk8+yY2vepWyEnjhl6bxBYm5KeGvq6 bSLs5ggTsOiRNt86YK5HOMuxzBFMbaJJoMyvMyX4K97ld+Tk8+7QGpd8m7SXg6hWey 6banN9RmAJ0jw== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Howard, On 2/1/13 6:27 PM, Howard W. Smith, Jr. wrote: > For now, I want a cluster of at least 2 or 3 tomcat servers for > fault-tolerance and load balancing. If your requirements allow for users to have to re-authenticate when you have a failover-event, then I highly recommend that you use sticky-sessions /without/ session replication: performance will be much better that way (and it's easier to configure). > Yes, I read that it is not good for web apps to start (Java) > threads to do background work, and per that advise, I have avoided > that for now. so far, I have used @Asynchronous and @Schedule, very > minimally. The container in that case will be managing a thread pool on your behalf. This is the recommended way to do things, but it's not terrible if you want to manage your own thread pool for some particular reason. But, if the container will do it for you in a standards-compliant way, there doesn't seem to be a reason not to take advantage of it. > Chris, I'm glad you mentioned, "IMO session replication is a dog", > because honestly, I would love to avoid some of the pre-work > required to prepare my app for session replication. I'm definitely > interested in the 'better ways to achieve similar goals. I would > love to have 2 or 3 instances of my web app accessing one database > (Derby, at the present), and all 2 or 3 instances actually knowing > about each other. :) Well, if you can tolerate re-auth on failover, then there's nothing to do at all: simply enable sticky-sessions and let it happen. Failovers should be rare, anyway, right? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlEOoM0ACgkQ9CaO5/Lv0PAlOwCffVnMaz9jFn+hg7pSVBZGGLCv yYEAoIqunDmRHiQvzLrtR+5UcmwTKIt0 =L0xm -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org