Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-08-04 Thread Pid
On 02/08/2011 02:11, Christopher Schultz wrote: >> > public HTMLEncoder() { mapChar2HTMLEntity= new HashMap(); int >> > longueur = characters.length; >> > >> > for (int i = 0; i < longueur; i++) mapChar2HTMLEntity.put(new >> > Character(characters[i]), entities[i]); } > So you have Character -> St

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-08-03 Thread Alejandro Henao González
Thanks to all. The problem was the static hashmap. I removed the static keyword to the variable and problem solved. - Mensaje original - De: "Christopher Schultz" Para: "Tomcat Users List" Enviados: Lunes, 1 de Agosto 2011 20:11:27 Asunto: Re: Problem with thre

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-08-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alejandro, On 7/29/2011 11:55 AM, Alejandro Henao González wrote: > public class HTMLEncoder { private static Map mapChar2HTMLEntity; > > private final static char [] characters = { > 'á','ú','ó','é','í','ñ','Á','Ú','Ó','É','Í','°','ü' }; private fi

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread André Warnier
Alejandro Henao González wrote: I'm not sure that the problem is this. And, many JSPs have this line. Well, that would certainly multiply the problem, wouldn't it ? Do you have any idea what these "system.gc()" were meant to achieve ? Anyway, nothing that find and grep and a good text editor

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread Alejandro Henao González
Para: "Tomcat Users List" Enviados: Viernes, 29 de Julio 2011 12:36:21 Asunto: Re: Problem with threads in stage Service (Tomcat 7.0.14) Alejandro Henao González wrote: > ummm... > The option -XX:-DisableExplicitGC not solves the problem, may be with the > +DisableExplicitGC, i w

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread André Warnier
Alejandro Henao González wrote: ummm... The option -XX:-DisableExplicitGC not solves the problem, may be with the +DisableExplicitGC, i will try it. ummm.. A mystery for me is : since you have the source, why do you not just comment out the system.gc(); line, and see what your Tomcat is the

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread Alejandro Henao González
; 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); } }

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread Rainer Jung
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

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread Pid
On 29/07/2011 08:41, André Warnier wrote: > Pid wrote: >> On 28/07/2011 20:07, Alejandro Henao González wrote: >>> I dont believe that have GC running all the time, but the GC is >>> called in the above line to HTMLEncoder.encode. as follows. >>> System.gc(); >>> resultado = htmlEncoder.encode(resu

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread André Warnier
Pid wrote: On 28/07/2011 20:07, Alejandro Henao González wrote: I dont believe that have GC running all the time, but the GC is called in the above line to HTMLEncoder.encode. as follows. System.gc(); resultado = htmlEncoder.encode(resultado); Is 'htmlEncoder' a static field, an instance f

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread Pid
"Tomcat Users List" > Enviados: Jueves, 28 de Julio 2011 12:35:56 > Asunto: Re: Problem with threads in stage Service (Tomcat 7.0.14) > > most likely you have GC running all the time > > ""http-bio-80"-exec-107" daemon prio=10 tid=0x2aaa

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Alejandro Henao González
Ok. i will trie with this option. - Mensaje original - De: "Filip Hanik - Dev Lists" Para: "Tomcat Users List" Enviados: Jueves, 28 de Julio 2011 14:20:26 Asunto: Re: Problem with threads in stage Service (Tomcat 7.0.14) that's an academic exercise for you

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Filip Hanik - Dev Lists
ncode. as follows. System.gc(); resultado = htmlEncoder.encode(resultado); response.reset(); may be this the problem? why? Thanks. - Mensaje original - De: "Filip Hanik - Dev Lists" Para: "Tomcat Users List" Enviados: Jueves, 28 de Julio 2011 12:35:56 Asunto: Re

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Alejandro Henao González
Hanik - Dev Lists" Para: "Tomcat Users List" Enviados: Jueves, 28 de Julio 2011 12:35:56 Asunto: Re: Problem with threads in stage Service (Tomcat 7.0.14) most likely you have GC running all the time ""http-bio-80"-exec-107" daemon prio=10 tid=0x2aaab31ea000

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Filip Hanik - Dev Lists
most likely you have GC running all the time ""http-bio-80"-exec-107" daemon prio=10 tid=0x2aaab31ea000 nid=0x47b2 runnable [0x436ab000] 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 st

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Alejandro Henao González
runnable "GC task thread#1 (ParallelGC)" prio=10 tid=0x40deb800 nid=0x1ede runnable "GC task thread#2 (ParallelGC)" prio=10 tid=0x40ded800 nid=0x1edf runnable "GC task thread#3 (ParallelGC)" prio=10 tid=0x40def800 nid=0x1ee0 runnable &

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Pid
On 28/07/2011 16:09, 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 o

Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Alejandro Henao González
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 Tomca