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 A8BDDF665 for ; Tue, 13 Aug 2013 10:44:15 +0000 (UTC) Received: (qmail 53382 invoked by uid 500); 13 Aug 2013 10:44:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 53046 invoked by uid 500); 13 Aug 2013 10:44:12 -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 53037 invoked by uid 99); 13 Aug 2013 10:44:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 10:44:11 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [207.126.144.129] (HELO eu1sys200aog110.obsmtp.com) (207.126.144.129) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2013 10:44:05 +0000 Received: from mail-bk0-f54.google.com ([209.85.214.54]) (using TLSv1) by eu1sys200aob110.postini.com ([207.126.147.11]) with SMTP ID DSNKUgoNyxm9SsBZ74SqYz+VhEhkNNt6zC/Y@postini.com; Tue, 13 Aug 2013 10:43:45 UTC Received: by mail-bk0-f54.google.com with SMTP id mz12so2266612bkb.13 for ; Tue, 13 Aug 2013 03:43:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=BMZI9EOK5CmhdpqEg+PBeQp0dIBMMs4lf4oWdo1ZjLc=; b=PgccpWRfjij2cZIcBvACBkHrcJ44spvW+wpg+s3S+lVr4H7wXysOhEJuF1Vph/ykAM WYvSn/hH2Bh8osAhrntE+Mbvui/J+azdt6JDvOWGeMByo1hFGSkZWZZdTrFrXPpIOzQ3 acP0w4QFxk34eo+6XY6RaRbVq0bfqQIWtoxoM69NuH+2MTB/auI5+FomdmNHT0MUcfIS Adh1wUE+9ysGzhZEFGh5kaaapwZmbkBs4oC0PBd5R+00l5iyXnfBYm0J2sBka4N4v+EE vUD7Bum72rdHYLgd4eP8ou/kRal4rQNgFB586D4CFw++40CytZOwDv5N3zOQbOin8FMZ 33sA== X-Gm-Message-State: ALoCoQn7IJQi7pPs3hiYerzjeoM61E8GaitHlRdKj3leavMvfZ5exDQiiL67vCZnnK+nsyEsWm7Lw9mAOsZP3YKnKAtrK9uXQbU+hYx731Z+bnJF4UZk4gdE2Q7Y0TtctYy19gHP9EfQBTpYhg3/F2XM+fgYA+JTJ+rE5VnAStjadLKYgZy4XTs= X-Received: by 10.204.63.12 with SMTP id z12mr37474bkh.44.1376390602376; Tue, 13 Aug 2013 03:43:22 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.204.63.12 with SMTP id z12mr37469bkh.44.1376390602261; Tue, 13 Aug 2013 03:43:22 -0700 (PDT) Received: by 10.204.39.143 with HTTP; Tue, 13 Aug 2013 03:43:22 -0700 (PDT) Date: Tue, 13 Aug 2013 11:43:22 +0100 Message-ID: Subject: maxActiveConnections usage From: "Smith, Mitchell" To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary=001a11c393eeebc57e04e3d1e8d4 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c393eeebc57e04e3d1e8d4 Content-Type: text/plain; charset=ISO-8859-1 Hi, I was looking at using the maxActiveConnections in the application context, 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. 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. 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. Does anyone have any thoughts or ideas for this type of solution? Regards -- *Mitchell Smith * 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. 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 --001a11c393eeebc57e04e3d1e8d4--