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

2011-08-03 Thread Alejandro Henao González
ads in stage Service (Tomcat 7.0.14) -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 = { > 'á',

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 Alejandro Henao González
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 c

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

2011-07-28 Thread Alejandro Henao González
, in the meantime, add in this option to your startup options -XX:-DisableExplicitGC Filip On 7/28/2011 1:07 PM, 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. >

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

2011-07-28 Thread Alejandro Henao González
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 stage where you're stuck, unless you have a loop problem. On 7/28/2011 9:09 AM, Alejandro Henao Gonzále

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 &

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