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
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
-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
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
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
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
;
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);
}
}
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
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
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
"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
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
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
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
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
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
&
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
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
18 matches
Mail list logo