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 D6B2AE303 for ; Fri, 1 Feb 2013 17:41:53 +0000 (UTC) Received: (qmail 8375 invoked by uid 500); 1 Feb 2013 17:41:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 8313 invoked by uid 500); 1 Feb 2013 17:41:50 -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 8304 invoked by uid 99); 1 Feb 2013 17:41:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 17:41:50 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of smithh032772@gmail.com designates 209.85.212.182 as permitted sender) Received: from [209.85.212.182] (HELO mail-wi0-f182.google.com) (209.85.212.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 17:41:43 +0000 Received: by mail-wi0-f182.google.com with SMTP id hn14so873894wib.9 for ; Fri, 01 Feb 2013 09:41:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=FQ9H8tNS5kDnljvst4eVaRtTLWx04kBnbdIo/e30F8Y=; b=Wdya2yc0Z6D2SSWdSlplITBUcuI1Gf9cSrjAiEEnoqzal33pqkQTtqDqOnLdl5ayeO fQCGguD5ElS+FZXxiZGdKJ4OX4KAbSSHHf9hPoYHLF6FTMpMakvlH8dpoIoKEb/UNB6z X6GQRf/nTwJr5CYafdn3LNY9LPCkgAcjpiFF/JRNMhMbry+nPrjqPVYwJ9zPqABVnKhz RPqT7RWJ5k3DjFkDM3gZ0XoqQykGYDf0NBNAZadDjjQSHSSaAHEycFOEeRStb9kZdRan 1EsLdy8RX74EFHA4CQ5MlGkpWpzX18Knf2q8uonQg1b1v3iLs6wbXhnPzBRCkPM157qQ /2Nw== MIME-Version: 1.0 X-Received: by 10.180.99.227 with SMTP id et3mr4400992wib.6.1359740482611; Fri, 01 Feb 2013 09:41:22 -0800 (PST) Received: by 10.194.135.231 with HTTP; Fri, 1 Feb 2013 09:41:22 -0800 (PST) In-Reply-To: References: Date: Fri, 1 Feb 2013 12:41:22 -0500 Message-ID: Subject: Re: Help in diagnosing server unresponsiveness From: "Howard W. Smith, Jr." To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Feb 1, 2013 at 12:09 PM, Edson Richter wrote: > Em 01/02/2013 15:03, Edson Richter escreveu: > > > When I say (we see..) I want to mean: I see lots of junior programmers doing > the same mistake over and over... I don't know if this is your case, but I > feel that worth to mention here. > wow, this is all good to know! Thanks! I definitely consider myself junior 'java' developer even though i've been developing software since 1995. I'm loving java/jsf and tomee/tomcat right now. my app is running fine, but i'm always striving for perfection and performance, and that is why I made my way from mojarra to myfaces, glassfish to tomee/tomcat, and jsf-managed-beans to cdi-managed-beans, and just early this morning from APR to NIO connector. >> b) Lots of people forget to correctly close external resources (files, tcp >> connections, jdbc resources). Check your source code using FindBugs. It is >> not perfect, but will give you lots of warnings if you run on risk of not >> correctly closing resources. Remember, for jdbc resources, you should close >> all result sets first, then all statements, then all connections (not all >> database drivers will release resultset resources on statement close!). backtracking... is this a chance/time to use jdbc interceptors? i've seen some chatter about jdbc interceptors, but have not really dug into it quite yet. >> c) Also, we see incorrect thread programming... this sounds good for clusters, right? i'm hoping to use clustering for the app that i've developed. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org