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 2D5449718 for ; Wed, 20 Jun 2012 16:28:05 +0000 (UTC) Received: (qmail 57057 invoked by uid 500); 20 Jun 2012 16:28:02 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 56844 invoked by uid 500); 20 Jun 2012 16:28:01 -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 56835 invoked by uid 99); 20 Jun 2012 16:28:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 16:28:01 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.214.173] (HELO mail-ob0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 16:27:54 +0000 Received: by obbta14 with SMTP id ta14so3983655obb.18 for ; Wed, 20 Jun 2012 09:27:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=x8KArTqlhDDG5GymwbGJl3vMD7Nt7twCphblWVZfSpk=; b=XgVEZ3VEDlnXwjrdzrmt1xSBiWhpY5s548sQPg7unX83MI4OopVGpYDcRBTBaU7kJl d23Fp1Yk9ce6GBTaSIS9+k9ihbhE/1Ym7goHNecrkB+ov6Yl8e0JJEtIa7W6lsqjVBuZ s79NOrzEJ9pDBBSkpd9D7u8b6imwfZWA9dBym0oQqXbDf9BT5qVl5z4lDaV8syLaOqVe mBiy7mKtp/yvP9PZRSZA0syVAeB/tz1xMr9SLMDyBhme+mQoJOvn+Ip6IaKVU4xzs92D 379NBMJn5zEtoslhG8Oi5K4h4g8iUwsiazmP9Hdp0QsIWKULFo44gvDow+XPh2lmN/Dm Nv8Q== Received: by 10.182.117.71 with SMTP id kc7mr22558922obb.62.1340209653014; Wed, 20 Jun 2012 09:27:33 -0700 (PDT) Received: from [192.168.1.98] (wintouch.touchtonecorp.com. [69.238.233.81]) by mx.google.com with ESMTPS id a6sm15899008oeg.7.2012.06.20.09.27.32 (version=SSLv3 cipher=OTHER); Wed, 20 Jun 2012 09:27:32 -0700 (PDT) Message-ID: <4FE1FA03.8080301@touchtonecorp.com> Date: Wed, 20 Jun 2012 09:27:47 -0700 From: James Lampert User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: High CPU usage in Tomcat 7 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlGMK3VyEN3lq4NSgtMCCAswY6d5MGtMoNBrjjG6uXQldU0Po9UshBenmlSImP8s7kNnRxE We just had a report of extremely high CPU usage from the Tomcat job on one of our customer installations. A WRKACTJOB screen shot from before we forcibly shut Tomcat down and restarted it shows: Subsystem/Job Type CPU % Function Status CATALINA BCH .0 CMD-QSH TIMW QP0ZSPWT BCI 112.2 JVM-org.apache TIMW (QP0ZSPWT being the system-generated job that's doing the actual work for the CATALINA job.) Of particular interest is that, at least at the moment the screen shot was taken, the QP0ZSPWT job was taking up what appears to be more than an entire processor, even though it's in a "time-wait" state. Based on a Google search on "tomcat 7 high cpu usage," I'm suspecting a previously unknown tightloop in our application (which was what I suspected even before I did the Google search). The pages I looked at also said something about profiling and thread dumps, to find the offending thread, but since the job has been terminated and restarted, and is not currently malfunctioning, I wouldn't be able to do so even if I knew how (which at present I don't). I've passed on the log files generated by our application itself to someone better equipped to deal with them than I, and I've asked the Java-400 List at Midrange.com about AS/400-specific steps to track down the offending thread if the problem is observed again, but I would also value any insights this list might offer. -- JHHL --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org