Re: Tomcat 8 uses high CPU

2016-04-14 Thread tomcat
On 14.04.2016 03:21, David Kerber wrote: On 4/13/2016 6:04 PM, Josep M Beleta wrote: Following André suggestion I replaced the connector protocols, both for HTTP and AJP ports, to force NIO.2. Now Tomcat is working for seven hours without any problem. My findings until now are: 1. It is

Re: Tomcat 8 uses high CPU

2016-04-13 Thread David Kerber
On 4/13/2016 6:04 PM, Josep M Beleta wrote: Following André suggestion I replaced the connector protocols, both for HTTP and AJP ports, to force NIO.2. Now Tomcat is working for seven hours without any problem. My findings until now are: 1. It is not a Tomcat related problem, WildFly 10

Re: Tomcat 8 uses high CPU

2016-04-13 Thread Josep M Beleta
Following André suggestion I replaced the connector protocols, both for HTTP and AJP ports, to force NIO.2. Now Tomcat is working for seven hours without any problem. My findings until now are: 1. It is not a Tomcat related problem, WildFly 10 has the same behavior. The WildFly high CPU

Re: Tomcat 8 uses high CPU

2016-04-13 Thread Josep M Beleta
I'll try it. Thanks a lot. 2016-04-13 15:24 GMT+02:00 André Warnier (tomcat) : > On 13.04.2016 13:55, Josep M Beleta wrote: > >> > >Could I find a workaround? >>> >> > Maybe for the meantime, you could try another Connector protocol ? >

Re: Tomcat 8 uses high CPU

2016-04-13 Thread tomcat
On 13.04.2016 13:55, Josep M Beleta wrote: > >Could I find a workaround? Maybe for the meantime, you could try another Connector protocol ? http://tomcat.apache.org/tomcat-8.5-doc/config/http.html#Common_Attributes -> protocol Note: I am not an expert, and not sure that in this particular

Re: Tomcat 8 uses high CPU

2016-04-13 Thread Josep M Beleta
Ok. I will try to debug the issue this weekend. Josep *Josep M Beleta* *Director de Tecnologia* Carver Advanced Systems, S.L. París, 184. 4º 08036 - Barcelona Tel: 93 238 5880 Fax: 93 238 5881 *segueix-nos *

Re: Tomcat 8 uses high CPU

2016-04-13 Thread Mark Thomas
On 13/04/2016 12:11, Josep M Beleta wrote: > I was wrong in my last message. One of the threads is different, is is not > related to AJP. This thread is: > > "NioBlockingSelector.BlockPoller-2" #15 daemon prio=5 os_prio=0 > tid=0x1ce0c800 nid=0x19b8 runnable [0x1dfff000] >

Re: Tomcat 8 uses high CPU

2016-04-13 Thread Josep M Beleta
I was wrong in my last message. One of the threads is different, is is not related to AJP. This thread is: "NioBlockingSelector.BlockPoller-2" #15 daemon prio=5 os_prio=0 tid=0x1ce0c800 nid=0x19b8 runnable [0x1dfff000] java.lang.Thread.State: RUNNABLE at

Re: Tomcat 8 uses high CPU

2016-04-13 Thread Josep M Beleta
I produced a new dump on our production server that runs Tomcat 8.0. This time I identified the three threads that are consuming high CPU. I marked them with: ** This thread uses high CPU ** All these threads are named "ajp-nio-8009-ClientPoller" This is the information it lists about

Re: Tomcat 8 uses high CPU

2016-04-12 Thread Josep M Beleta
Mark, I tested Tomcat 8.5 and experienced the same problem. I am enclosing a new dump. I hope it will be useful. Regards Josep M Beleta 2016-04-13 01:50:55 Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.77-b03 mixed mode): "ajp-nio-8209-AsyncTimeout" #26 daemon prio=5 os_prio=0

Re: Tomcat 8 uses high CPU

2016-04-12 Thread Mark Thomas
On 12/04/2016 19:53, Josep M Beleta wrote: > Again, Thanks. They came thought this time but aren't that helpful as several key bits of information are missing: - thread name - thread ID There should be an option in Tomcat8w.exe to trigger a thread dump. This will be written to the log files and

Re: Tomcat 8 uses high CPU

2016-04-12 Thread Josep M Beleta
Again, Attaching to process ID 1964, please wait... Debugger attached successfully. Server compiler detected. JVM version is 25.66-b18 Deadlock Detection: No deadlocks found. Thread 124: (state = BLOCKED) - sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be

Re: Tomcat 8 uses high CPU

2016-04-12 Thread Mark Thomas
On 12/04/2016 19:50, Josep M Beleta wrote: > I am sorry, I sent the same file twice. > > Here is the other one. Nope. They need to be plain text attachments and no larger than 1MB. Mark > > ** > > *Josep M Beleta* > > /Director de Tecnologia/ > > > Carver Advanced Systems, S.L. > >

Re: Tomcat 8 uses high CPU

2016-04-12 Thread Josep M Beleta
I am sorry, I sent the same file twice. Here is the other one. *Josep M Beleta* *Director de Tecnologia* Carver Advanced Systems, S.L. París, 184. 4º 08036 - Barcelona Tel: 93 238 5880 Fax: 93 238 5881 *segueix-nos *

Re: Tomcat 8 uses high CPU

2016-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josep, On 4/12/16 2:30 PM, Josep M Beleta wrote: > I need some help with a problem we have running Tomcat 8, with Java > 8 on a Windows 2008 R2 Standard with Service Pack 1 running as a > virtual machine on top of ESXi, 5.1.0. The virtual machine has

Re: Tomcat 8 uses high CPU

2016-04-12 Thread Josep M Beleta
Hi Mark, thanks a lot. here come the dumps: Josep *Josep M Beleta* *Director de Tecnologia* Carver Advanced Systems, S.L. París, 184. 4º 08036 - Barcelona Tel: 93 238 5880 Fax: 93 238 5881 *segueix-nos *

Re: Tomcat 8 uses high CPU

2016-04-12 Thread Mark Thomas
On 12/04/2016 19:30, Josep M Beleta wrote: > Hi, > > I need some help with a problem we have running Tomcat 8, with Java 8 on > a Windows 2008 R2 Standard with Service Pack 1 running as a virtual > machine on top of ESXi, 5.1.0. The virtual machine has 16 GB of memory > and 4 CPUs. The physical