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 46C727F5B for ; Thu, 28 Jul 2011 17:36:18 +0000 (UTC) Received: (qmail 47936 invoked by uid 500); 28 Jul 2011 17:36:14 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 47707 invoked by uid 500); 28 Jul 2011 17:36:13 -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 47651 invoked by uid 99); 28 Jul 2011 17:36:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2011 17:36:13 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [66.160.196.165] (HELO arizona.hanik.com) (66.160.196.165) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2011 17:36:04 +0000 Received: from [192.168.123.166] (c-98-245-245-160.hsd1.co.comcast.net [98.245.245.160]) by arizona.hanik.com (Postfix) with ESMTPSA id 954BE7B59B81 for ; Thu, 28 Jul 2011 11:35:53 -0600 (MDT) Message-ID: <4E319DFC.4070508@hanik.com> Date: Thu, 28 Jul 2011 11:35:56 -0600 From: Filip Hanik - Dev Lists User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Problem with threads in stage Service (Tomcat 7.0.14) References: <6afd8320-3ccc-4af1-950d-c122aef844dc@correoDQ> In-Reply-To: <6afd8320-3ccc-4af1-950d-c122aef844dc@correoDQ> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org most likely you have GC running all the time ""http-bio-80"-exec-107" daemon prio=10 tid=0x00002aaab31ea000 nid=0x47b2 runnable [0x00000000436ab000] java.lang.Thread.State: RUNNABLE at java.util.HashMap.get(HashMap.java:303) at sae.HTMLEncoder.encode(HTMLEncoder.java:46) this should not be a stage where you're stuck, unless you have a loop problem. On 7/28/2011 9:09 AM, Alejandro Henao Gonz�lez wrote: > Good day. > > I have the following problem with my tomcat. > > Sometimes, some threads are keep in service stage for a long time (really never exit from this stage), this causes that tomcat uses a > hight percentage of the CPU (100 % of 2 or 3 cores) thus the webapp executes very slow. > > I have a Tomcat 7.0.14 in a Redhat RHLE 5.5. > > The partial solution is restart the service, but this is not a practical solution(because is a 24/7 server). is posible config a timeout > for threads in service stage, or any solution?? > > Thanks. Sorry for the redaction. Attached an image with the tomcat manager status and the CPU consuming. > > > -------- > > Cordial saludo. > > Tengo el siguiente problema con mi tomcat. > En algunas ocasiones, algunos hilos se quedan en la etapa de servicio por demasiado tiempo (de hecho nunca salen de esta etapa), esto > causa que el tomcat use un alto porcenta de la CPU (el 100 % de 2 o 3 n�cluos incluso hasta los 8 a veces), y en consecuencia mi > aplicaci�n web trabaja demasiado lento. > > Tengo el Tomcat 7.0.14 en Redhat RHLE 5.5 > > La soluci�n temporal que tengo es reiniciar el servicio, sin embargo esta no es una soluci�n pr�ctica (pues debe ser un servidor 24/7). Es > posible configurar alg�n timeout para hilos en la etapa de servicio, o alguna soluci�n alternativa para este problema? > > Muchas Gracias. Adjunto una imagen del reporte del estado por el tomcat Manager, y el uso de la CPU > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org