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 E558061E5 for ; Fri, 29 Jul 2011 15:55:54 +0000 (UTC) Received: (qmail 76673 invoked by uid 500); 29 Jul 2011 15:55:51 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 76468 invoked by uid 500); 29 Jul 2011 15:55: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 76458 invoked by uid 99); 29 Jul 2011 15:55:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 15:55:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [190.0.41.122] (HELO mail.dqingenieria.com) (190.0.41.122) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jul 2011 15:55:42 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.dqingenieria.com (Postfix) with ESMTP id 6C8E4A4696 for ; Fri, 29 Jul 2011 10:55:21 -0500 (COT) X-Virus-Scanned: amavisd-new at mail.dqingenieria.com Received: from mail.dqingenieria.com ([127.0.0.1]) by localhost (mail.dqingenieria.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HQr0W+XCmY8N for ; Fri, 29 Jul 2011 10:55:14 -0500 (COT) Received: from mail.dqingenieria.com (localhost.localdomain [127.0.0.1]) by mail.dqingenieria.com (Postfix) with ESMTP id 861E6A36A0 for ; Fri, 29 Jul 2011 10:55:14 -0500 (COT) Date: Fri, 29 Jul 2011 10:55:14 -0500 (COT) From: Alejandro Henao =?utf-8?Q?Gonz=C3=A1lez?= To: Tomcat Users List Subject: Re: Problem with threads in stage Service (Tomcat 7.0.14) Message-ID: In-Reply-To: <4E3285F1.8020907@kippdata.de> Content-Type: multipart/alternative; boundary="=_b7fb4722-bd61-4e57-b101-715bb552be86" MIME-Version: 1.0 X-Originating-IP: [192.168.33.11] X-Mailer: Zimbra 7.1.1_GA_3196 (ZimbraWebClient - SAF3 (Win)/7.1.1_GA_3196) X-Virus-Checked: Checked by ClamAV on apache.org --=_b7fb4722-bd61-4e57-b101-715bb552be86 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ummm... The option -XX:-DisableExplicitGC not solves the problem, may be with the += DisableExplicitGC, i will try it. The method HTMLEncoder.encode is static and uses a HashMap static. this is = the class. public class HTMLEncoder { private static Map mapChar2HTMLEntity; private final static char [] characters =3D { '=C3=A1','=C3=BA','=C3=B3','=C3=A9','=C3=AD','=C3=B1','=C3=81','=C3=9A','= =C3=93','=C3=89','=C3=8D','=C2=B0','=C3=BC' }; private final static String[] entities =3D { "á","ú","ó","é","í","ñ","Á= ","Ú","Ó","É","Í","°","ü" }; public HTMLEncoder() { mapChar2HTMLEntity=3D new HashMap(); int longueur =3D characters.length; for (int i =3D 0; i < longueur; i++) mapChar2HTMLEntity.put(new Character(characters[i]), entities[i]); } public String encode(String s) { int longueur =3D s.length(); final StringBuffer sb =3D new StringBuffer(longueur * 2); char ch; for (int i =3D0; i < longueur ; ++i) { ch =3D s.charAt(i); if ((ch >=3D 63 && ch <=3D 90) || (ch >=3D 97 && ch <=3D 122)) sb.append(ch); else { String ss =3D (String)mapChar2HTMLEntity.get(new Character(ch)); if(ss=3D=3Dnull) sb.append(ch); else sb.append(ss); } } return sb.toString(); } public StringBuffer encode(StringBuffer s) { int longueur =3D s.length(); final StringBuffer sb =3D new StringBuffer(longueur * 2); char ch; for (int i =3D0; i < longueur ; ++i) { ch =3D s.charAt(i); if ((ch >=3D 63 && ch <=3D 90) || (ch >=3D 97 && ch <=3D 122)) sb.append(ch); else { String ss =3D (String)mapChar2HTMLEntity.get(new Character(ch)); if(ss=3D=3Dnull) sb.append(ch); else sb.append(ss); } } return sb; } } ----- Mensaje original ----- De: "Rainer Jung" Para: users@tomcat.apache.org Enviados: Viernes, 29 de Julio 2011 5:05:37 Asunto: Re: Problem with threads in stage Service (Tomcat 7.0.14) On 28.07.2011 21:20, Filip Hanik - Dev Lists wrote: > that's an academic exercise for you, in the meantime, add in this option = > to your startup options > -XX:-DisableExplicitGC I think Filip wanted to suggest -XX:+DisableExplicitGC The plus or minus after the colon decides whether the switch is set or unset. So in this case we want to set a disable switch (which will only be a workaround). Regards, Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --=_b7fb4722-bd61-4e57-b101-715bb552be86--