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 B360918679 for ; Mon, 2 Nov 2015 22:55:00 +0000 (UTC) Received: (qmail 8203 invoked by uid 500); 2 Nov 2015 22:54:57 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 8140 invoked by uid 500); 2 Nov 2015 22:54:57 -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 8128 invoked by uid 99); 2 Nov 2015 22:54:56 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2015 22:54:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 755E5C094C for ; Mon, 2 Nov 2015 22:54:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id eTQZRncTfiAN for ; Mon, 2 Nov 2015 22:54:46 +0000 (UTC) Received: from mail-vk0-f51.google.com (mail-vk0-f51.google.com [209.85.213.51]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 768F0439C2 for ; Mon, 2 Nov 2015 22:54:46 +0000 (UTC) Received: by vkgs66 with SMTP id s66so94999813vkg.1 for ; Mon, 02 Nov 2015 14:54:46 -0800 (PST) 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=+sK1XN/GE6NjbwBN/7Of7C5+E4zEdTleXczhgUXJbBk=; b=OgCfeVaFh1MYynCfmg5WNKbvR0z0twqu51ewpDUlmlhv3uWxNAkLJcQl/bKgS5syU8 J7ytfw+YcLNnmadEeydkQOjhTfVTGZTZvdvUwh8PlHQp9JCUORphN8d+JxSh6SNLOJoj 2YQJcZIDheR2ftwMDTV/HCKyL0viAaBP1Vdvf+0eW9P6OSXJxMabS3T4UPdJmHFl5a5I t7EOD+3ht4Nd5sBQWS+7rA4w8PwCS7G0CYWJduPXZsnUzq1SEWtZ7NLXlNE+fPNEuJbL +iJ42oBjMGqJtroLfB36VpgTl3wxXXbjM15AoF3CX8h3WE5Z/b5769CpRZy0vAhUXP1c 7hkg== MIME-Version: 1.0 X-Received: by 10.31.159.69 with SMTP id i66mr16447982vke.127.1446504886266; Mon, 02 Nov 2015 14:54:46 -0800 (PST) Received: by 10.103.78.92 with HTTP; Mon, 2 Nov 2015 14:54:46 -0800 (PST) In-Reply-To: <562B772F.2020907@christopherschultz.net> References: <5616A779.5020609@christopherschultz.net> <562B772F.2020907@christopherschultz.net> Date: Mon, 2 Nov 2015 23:54:46 +0100 Message-ID: Subject: Re: Monitoring Connections From: =?UTF-8?Q?Aur=C3=A9lien_Terrestris?= To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a11426064e9722e052396a96b --001a11426064e9722e052396a96b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Either my reply was not read, or I'm surprised nobody is answering here. "1. Java doesn't directly support SNMP;" It does, officially : http://docs.oracle.com/javase/7/docs/technotes/guides= / management/snmp.html and it's working pretty well with Tomcat besides being easy to set up. "2. If the JVM is braindead, the SNMP agent can't announce any state to the managers." Agent ? This is the SNMP server which is polling the Tomcat here. When Tomcat is dead, the server cannot poll anymore and raises an alert. You see how alerting is even easier without instrumenting, but maybe you want to go deeper. But then, you probably start mixing what's necessary for N1 support with what's helpful for developers. They have different jobs. best regards A.T. 2015-10-24 14:18 GMT+02:00 Christopher Schultz : > Aur=C3=A9lien, > > On 10/23/15 6:47 PM, Aur=C3=A9lien Terrestris wrote: > > "Live monitoring is the only way to go, unless you want your customers > > to surprise you with performance problems on your own site. :)" > > > > Monitoring, ok, but alerting is critical for large scale production > > environments. > > Apologies... I already considered "alerting" to be a critical component > of "monitoring", so I didn't mention it specifically. Instrumentation is > the hard part; alerting is relatively easy once instrumentation has been > done. > > > You mention JMX callbacks for alerting, but it would be worth > > that you mention SNMP since it's very easy to set up and efficient. > > SNMP is great, but there are a few problems with using it with Java: > > 1. Java doesn't directly support SNMP; instead, you have to use > a 3rd-party library (which isn't difficult to find). This may be > a barrier for certain organizations who only want to use their > own code in their own applications. > > 2. If the JVM is braindead, the SNMP agent can't announce any state > to the managers. This requires the use of probe-based instrumentation > (active probing from the outside of the application), unless you want > to have an agent send a heartbeat for every status change. > > > We also can raise alerts on deltas with this method, and see a > > problem before the CPU says something bad is going to happen. > > There's nothing stopping you from doing deltas with other techniques. My > presentation even includes a tool that allows you to do deltas. > > -chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --001a11426064e9722e052396a96b--