From users-return-268748-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Wed Nov 13 17:14:40 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 99E59180621 for ; Wed, 13 Nov 2019 18:14:40 +0100 (CET) Received: (qmail 54247 invoked by uid 500); 13 Nov 2019 17:14:36 -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 54236 invoked by uid 99); 13 Nov 2019 17:14:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Nov 2019 17:14:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 360C5C0960 for ; Wed, 13 Nov 2019 17:14:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.251 X-Spam-Level: X-Spam-Status: No, score=0.251 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8tBOtk1TPk1T for ; Wed, 13 Nov 2019 17:14:31 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::22d; helo=mail-oi1-x22d.google.com; envelope-from=saurav.sarkar1@gmail.com; receiver= Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id C6FBE7DD60 for ; Wed, 13 Nov 2019 17:14:30 +0000 (UTC) Received: by mail-oi1-x22d.google.com with SMTP id j7so2487237oib.3 for ; Wed, 13 Nov 2019 09:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=J9R+3I/5ote+kPCoN+iGPkZXKDGO5J50MnTuzMWm10k=; b=ILnKB1pQ3Xl/sR5RPhAQyZQn/s//duYvbDHe/2X6h4BJlD7/ZpbDCV/5sbTdMlUEI3 zRzaRQI6/TftZVh9TFmn8LghkevdpJ8auaAYMFnBB+AzTH5aC+CgZhhhKUyRPuzrZcVq poOqKb2c2xXE51wO5pWuQn+IK+rYbK3iF/E7DXL84fFSVfNtam89FoZfOT3NNsGpN72A VNI2supsfsEMNag5bGt79xF4LW5OyiJ3a8IAHQEVlfjqFEwgy1uQIgmXxO+RuPjce93O hXjVVHFPbEkVCLQLxThP1C/vF+qtR33HslP3ppycdw/BRosLiP1b9BcN1qgHJm0wMSFH xK1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=J9R+3I/5ote+kPCoN+iGPkZXKDGO5J50MnTuzMWm10k=; b=Wp2bTop9/lHuiQ2cJyOfmtWKEQalxzWzT5+2R9uUHneeRwuk/65YDG/mdXrsHyFGhc WTw1QC3Yvasrs4MU2C3xhhx9h6W+kX/N5sn51EyoUp2+mCWcWncCCDjMJmbwv9FpMapv KwaXfj6dE6pYYnN6scyzMhPheZ6dBMNrFkAmK6WrE8dLYh2Lkmnf61AxBg0848JqqZOo evblupHAue9l1Ns0Zr9XMNGN9bmduA8QZopK/R8KjzzI2A8brnY28mOknXBr87wKxRwm MEqSlF6vEyanXyuQekx4x7yb038sOY5V4LmecPF1J6vJhPi6Wn4Ia787yJ/mIjx31RDF PwlA== X-Gm-Message-State: APjAAAWoEcDPapeg9+Bt8otlqNI2tNEfJzOvUHWGwgfYQ/CyZVjU0LYU gBRIDLAmjGpTiFA2a2jbjA3ilaeeep3M8rzSRXUcAigWGro= X-Google-Smtp-Source: APXvYqyGxtHXIHAqfVv/uT+ofjdHYfqlEeeId+oyuy0cpsV8QdtB0InNpdlp3z/mjo57liT2+l6e1DhgOY2vQ128dm8= X-Received: by 2002:aca:4a84:: with SMTP id x126mr4213401oia.47.1573665263983; Wed, 13 Nov 2019 09:14:23 -0800 (PST) MIME-Version: 1.0 References: <88f0b32d-b2f0-4518-d817-483f5b0b0422@christopherschultz.net> In-Reply-To: <88f0b32d-b2f0-4518-d817-483f5b0b0422@christopherschultz.net> From: Saurav Sarkar Date: Wed, 13 Nov 2019 22:44:11 +0530 Message-ID: Subject: Re: Getting more information on connection refused error To: Tomcat Users List Content-Type: multipart/alternative; boundary="0000000000000e210e05973d7f42" --0000000000000e210e05973d7f42 Content-Type: text/plain; charset="UTF-8" Yes...i thought so...thanks for the JMX hint Chris. Best Regards, Saurav On Wed, Nov 13, 2019 at 10:00 PM Christopher Schultz < chris@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Saurav, > > On 11/13/19 10:19, Saurav Sarkar wrote: > > Hi All, > > > > We invoke one service which runs on a OSGI Virgo based embeddable > > tomcat servlet container. > > org.eclipse.gemini.web.tomcat_2.2.6.RELEASE.jar is the version we > > use. > > > > After sending some load to the service, it starts giving > > "connection refused error". > > > > errno: 111 (Connection refused), error: Connection refused (local > > port to address (), remote port > > 8443 to address ). > > > > I assume this is due to fact that the server socket has run out of > > connections and is not accepting any any more connection because > > this happens under heavy load testing. > > > > I would like to know how can i get more information on why > > connection was refused ? > > > > Will tomcat log this and what is logged under this scenario ? or > > does this reaches at all to tomcat and rather terminated at the OS > > layer itself ? > > The connections are being refused by the OS's TCP/IP stack. Tomcat > does not even know that these connections are being refused, so it > cannot put anything in the logs. > > If you monitor your Tomcat instance[1], you should be able to see how > many connections are in-flight and guess that you might be sometimes > hitting your limit. > > - -chris > > [1] http://tomcat.apache.org/presentations.html#latest-monitoring-with-j > mx > -----BEGIN PGP SIGNATURE----- > Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ > > iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl3ML3MACgkQHPApP6U8 > pFh1EBAAhtUFRfSlsWdfHlcqrePQTV3wnVoNmJ3xQErZ4Cu26vM1Z6h+XhvvKxTw > WGJkLxLBm+BO/D+rrXY+DRczVZSCx1PnXM4YgsTtiegvwFj4F1C3n1HQaIqLYttZ > HSUh6iN06oFObDnNgQnkImx9l8QYB6snePoDM5fyQQaVdfJtm2yt8Ot+7TYJUZXW > tavrc5+jkGcbr/tlwUehN2OI+u+lZcK+gme8GKT60dBbllcLQ/D5IFTmsk/6bTya > iMvQ3NHPbji4J5hKxBYqMYB+wGoi7UljRusyOd4AQY8cbZ4UsuWrmWYb6yIAg6SW > YuHdzKQh2uy8Lrvljn43Nh4RguKnxMVycsWjhsXVP1HzbkEo/RdPXlaM4tLAdQak > y5A1ygb8Vlv1sYEzIYpsvgMdXO2eXSJ6UwvE+jC+Z+eKKrNMgBlYc0rS0f6KuCrB > rRjqw0sSZVmoOERbNJfYHU8JqxUC1TTkx9bb9AX1S2BuR/jq/9cC2lZllzjqe6Uc > P6kSavsW7r8CxB+pt6+GCG281Sa2tuednxeOXXom0liLmmRr8saWYd4H7zzMEGMq > ifiiMTsHyoSfBeyV7Ncp23RswywFeWe86/IpU6CSdlx7tb3YEU9i0Wtwl9Vof4Fq > nuQjVMznej/FCE+B156rLgwBUV5KWu5FM20R1cRdvmMJC+1AbUM= > =ebmC > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --0000000000000e210e05973d7f42--