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 = { 'á','ú','ó','é','í','ñ','Á','Ú','Ó','É','Í','°','ü' }; private final static String[] entities = { "á","ú","ó","é","í","ñ","Á","Ú","Ó","É","Í","°","ü" }; public HTMLEncoder() { mapChar2HTMLEntity= new HashMap(); int longueur = characters.length; for (int i = 0; i < longueur; i++) mapChar2HTMLEntity.put(new Character(characters[i]), entities[i]); } public String encode(String s) { int longueur = s.length(); final StringBuffer sb = new StringBuffer(longueur * 2); char ch; for (int i =0; i < longueur ; ++i) { ch = s.charAt(i); if ((ch >= 63 && ch <= 90) || (ch >= 97 && ch <= 122)) sb.append(ch); else { String ss = (String)mapChar2HTMLEntity.get(new Character(ch)); if(ss==null) sb.append(ch); else sb.append(ss); } } return sb.toString(); } public StringBuffer encode(StringBuffer s) { int longueur = s.length(); final StringBuffer sb = new StringBuffer(longueur * 2); char ch; for (int i =0; i < longueur ; ++i) { ch = s.charAt(i); if ((ch >= 63 && ch <= 90) || (ch >= 97 && ch <= 122)) sb.append(ch); else { String ss = (String)mapChar2HTMLEntity.get(new Character(ch)); if(ss==null) sb.append(ch); else sb.append(ss); } } return sb; } } ----- Mensaje original ----- De: "Rainer Jung" <rainer.j...@kippdata.de> 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org