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 E6BA2F8E1 for ; Tue, 13 Aug 2013 12:25:04 +0000 (UTC) Received: (qmail 59243 invoked by uid 500); 13 Aug 2013 12:25:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 58955 invoked by uid 500); 13 Aug 2013 12:25:00 -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 58944 invoked by uid 99); 13 Aug 2013 12:24:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 12:24:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dmikusa@gopivotal.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qa0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 12:24:52 +0000 Received: by mail-qa0-f44.google.com with SMTP id hu16so262360qab.3 for ; Tue, 13 Aug 2013 05:24:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to; bh=S3RJlvoADSpsYJlviY9V/Lz2sx6ahzjzzqruNLMsVZs=; b=cf1V8LG8ngVn1sX1u/SmaVDVX5fc506+WI0loe6UcGBKG5SWfOcvUbV08pq/5PWOw1 3KJ8yG9Hrf/wCSsfdKRmq9FPW2pjLnV/MLXLD9TISNc8/pxQaLqv9XKgUg7LNlPhkYMw 74+qQb4N3ZLVY5dbiVZOedN83LjR4KqjkzdCtfpnQMjgl3m41TkmA2gRyzLUQP5zBrhn PvZ1f7kEsHtlXalxCBStDmy6IHuRuzIKMTAtoD6+ylEKYY2LVLFnR/QpM4XTxtXxo4jV rtmdKqDGg6kMfclUwvoJDBOIp23QM1D3KYmnsMoq8SYNADYBAqK5fp0Xo0h+xum2CS6/ scwg== X-Gm-Message-State: ALoCoQk5Zvy98TaYUEWsn0yjwrIkv2HQNeXfkGYzH38QK68mk7Gte74RrJQYpWp9lTo59i5XvRHC X-Received: by 10.224.66.201 with SMTP id o9mr4512787qai.36.1376396672040; Tue, 13 Aug 2013 05:24:32 -0700 (PDT) Received: from [192.168.0.6] (d118-75-246-224.col.wideopenwest.com. [75.118.224.246]) by mx.google.com with ESMTPSA id i9sm15596062qei.0.2013.08.13.05.24.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 05:24:31 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: maxActiveConnections usage From: Daniel Mikusa In-Reply-To: Date: Tue, 13 Aug 2013 08:24:30 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <54F4E547-1C6B-4DD3-BB9C-633FA42B37C3@gopivotal.com> References: To: "Tomcat Users List" X-Mailer: Apple Mail (2.1508) X-Virus-Checked: Checked by ClamAV on apache.org On Aug 13, 2013, at 6:43 AM, "Smith, Mitchell" = wrote: > Hi, >=20 What version of Tomcat are you using? 6.0.x or 7.0.x? > I was looking at using the maxActiveConnections in the application = context, Please include the relevant configuration from your server.xml or = context.xml file. > what I find is. When I reach the limit, as expected the server will = not > create a new session, however does return a http 200 status code. >=20 > I am wondering would it be possible for me to change this behavior to > return say a 300 range code to redirect to (in a production = environment) > load balancer. >=20 > I can see some potential issues with this, like the possibility of an > infinite loop, but for now I am just exploring possible ways to = prevent my > tomcat servers becoming overloaded. How do you have your load balancer setup now? What software / hardware = are you using? What algorithm is it using to distribute the load? >=20 > Does anyone have any thoughts or ideas for this type of solution? Perhaps you need to adjust the load balancer so it's spreading out the = connections more evenly? Perhaps you need to add another node to handle = the load? Dan >=20 > Regards > --=20 > *Mitchell Smith > * >=20 > The information contained in this email (and any attachments) is = confidential and may be privileged. If you are not the intended = recipient > and have received this email in error, please notify the sender = immediately by reply email and delete the message and any attachments. > If you are not the named addressee, you must not copy, disclose, = forward or otherwise use the information contained in this email. > Cable & Wireless Communications Plc and its affiliates reserve the = right to monitor all email communications through their networks to > ensure regulatory compliance. >=20 > Cable & Wireless Communications Plc is a company registered in England = & Wales with number: > 07130199 and offices located at 3rd Floor, 26 Red Lion Square, London = WC1R 4HQ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org