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 C4F221151A for ; Tue, 1 Jul 2014 16:02:31 +0000 (UTC) Received: (qmail 14278 invoked by uid 500); 1 Jul 2014 16:02:23 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 14143 invoked by uid 500); 1 Jul 2014 16:02:23 -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 14072 invoked by uid 99); 1 Jul 2014 16:02:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2014 16:02:23 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knobisoft@gmail.com designates 209.85.223.173 as permitted sender) Received: from [209.85.223.173] (HELO mail-ie0-f173.google.com) (209.85.223.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2014 16:02:19 +0000 Received: by mail-ie0-f173.google.com with SMTP id at20so797260iec.32 for ; Tue, 01 Jul 2014 09:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=cw9cKtu5wWvntwWp+OadDVJgdCOCm/ArfgOyQToXc7s=; b=y5W4gcXlieP6r/m2xtvGh1/0BhGHOjiqsbWOsTUju8z+Lcrz4AUnWymywmM3XCEUwV kqQUatBDH9ZdMCHxkbYKf06mRE/GR/uFafkrJ1PCfG71GH+gZ3t+xTubStL8jVr9L3iV dqOI93JqiIA7wgGCZ9njWiLvFnyQ/aEZApwbxJOeB42ctN8vluYK69xH2zJOUJu5+Exm IVnV4ronv3rSrd5aiqr7VXOaWmurRB7Rru7Vh2eVvPeewqspQpAn7BtqCr5NQisyaioc oNLADww9tt/Z8U0K5BYqEBSSJuaMh9mQuFJ5t1mWS72LRWJ96lNR15qnLNaEbvESzKPc it7A== MIME-Version: 1.0 X-Received: by 10.50.114.197 with SMTP id ji5mr42113169igb.48.1404230514617; Tue, 01 Jul 2014 09:01:54 -0700 (PDT) Received: by 10.50.131.196 with HTTP; Tue, 1 Jul 2014 09:01:54 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Jul 2014 18:01:54 +0200 Message-ID: Subject: Re: jkmanager: how to interpret "Current number of backend connections" From: Martin Knoblauch To: Tomcat Users List Content-Type: multipart/alternative; boundary=089e0111be1601b31e04fd23e5d7 X-Virus-Checked: Checked by ClamAV on apache.org --089e0111be1601b31e04fd23e5d7 Content-Type: text/plain; charset=UTF-8 On Mon, Jun 30, 2014 at 5:18 PM, Martin Knoblauch wrote: > Hi, > > our environment is (I know, some are old ...): > > Apache 2.2.21 > mod_jk-1.2.40 > Tomcat 7.0.42 > > My question is how to interpret the numbers from "jkmanager", expecially > the Busy/Max/Con numbers. > > > "Busy" and "Max" make sense to me. "Busy" is always less than "Max" and > "Max" gets bumped up from time to time. Matches the description. > > Now, "Con" seems to grow steadily over time and is not reset when we do a > manual "Reset" of the worker status. Somehow this does not match the > description of "Current number of backend connections". At least not for me > :-) > > Cheers > Martin > > OK, seems the continuous growing of the "Current number of backend connections" numbers is related to having timeouts configured. It also seems to have started between mod_jk-1.2.32 and mod_jk-1.2.37. I can see some heavy redo of the handling of the "connected" counter. In any case, the following configuration seems to trigger the behaviour: worker.template.type=ajp13 worker.template.lbfactor=1 worker.template.prepost_timeout=15000 worker.template.connect_timeout=15000 worker.template.ping_timeout=15000 worker.template.ping_mode=A worker.template.connection_ping_interval=180 worker.template.retries=3 worker.template.connection_pool_timeout=30 Without setting the timeout values, the displayed number of backend connections seems to be stable. I suspect a missing decrement somewhere, just hard to say where. Cheers Martin -- ------------------------------------------------------ Martin Knoblauch email: k n o b i AT knobisoft DOT de www: http://www.knobisoft.de --089e0111be1601b31e04fd23e5d7--