RE: CLOSE_WAIT between Application (Tomcat) and Apache HTTPD

2017-05-10 Thread Jäkel , Guido
Dear Adhavan, I think this is quiet normal, because the browser clients "in front" will reuse connections (using keep-alive at TCP level) but an in-between load balancer may be not work or configured in this way and will use a new connection for each request to the backend. Then, you'll see a

Re: CLOSE_WAIT between Application (Tomcat) and Apache HTTPD

2017-05-10 Thread Mark Thomas
On 10/05/17 17:32, Adhavan Mathiyalagan wrote: > Team, > > Tomcat version : 8.0.18 That is over two years old. Have you considered updating? > Apache HTTPD version : 2.2 > > > There are lot of CLOSE_WAIT connections being created at the > Application(tomcat) ,when the traffic is routed throug

Re: trimSpaces removing whitespace from html

2017-05-10 Thread Mark Thomas
On 10/05/17 17:17, David Kavanagh wrote: > Hey, > > I am wondering if anyone has come across this issue, and hopefully a way > to fix it. > When i enable the trimSpaces configuration option it removes the > whitespace but also > removes some whitespace from particular areas of the html. In my cas

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Mark Thomas
On 10/05/17 12:40, Michael Heinen wrote: > Am 10.05.2017 um 12:18 schrieb Mark Thomas: >> On 10/05/17 10:26, Michael Heinen wrote: >>> Am 10.05.2017 um 00:40 schrieb Mark Thomas: On 09/05/17 15:25, Michael Heinen wrote: > Hi all, > > I am currently mirgating an application from Tom

CLOSE_WAIT between Application (Tomcat) and Apache HTTPD

2017-05-10 Thread Adhavan Mathiyalagan
Team, Tomcat version : 8.0.18 Apache HTTPD version : 2.2 There are lot of CLOSE_WAIT connections being created at the Application(tomcat) ,when the traffic is routed through the Apache HTTPD load balancer to the Application running over tomcat container. This leads to slowness of the port wher

trimSpaces removing whitespace from html

2017-05-10 Thread David Kavanagh
Hey, I am wondering if anyone has come across this issue, and hopefully a way to fix it. When i enable the trimSpaces configuration option it removes the whitespace but also removes some whitespace from particular areas of the html. In my case, it removes white space between some of the classes in

Re: Thread.sleep CPU time

2017-05-10 Thread Thomas Meyer
> Am 10.05.2017 um 12:02 schrieb Oliver Fernandez > : > > But, is it correct Thread to be sleep? Basically yes. But Brendan Gregg had yesterday an interesting article about CPU utilization in modern OSes - http://brendangregg.com/blog/2017-05-09/cpu-utilization-is-wrong.html > >> On 10 Ma

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Michael Heinen
Am 10.05.2017 um 12:18 schrieb Mark Thomas: On 10/05/17 10:26, Michael Heinen wrote: Am 10.05.2017 um 00:40 schrieb Mark Thomas: On 09/05/17 15:25, Michael Heinen wrote: Hi all, I am currently mirgating an application from Tomcat 7.0.73 to 8.0.43. On development platforms we use an embedded t

Re: Thread.sleep CPU time

2017-05-10 Thread Mark Thomas
On 10/05/17 11:08, Oliver Fernandez wrote: > Is there anyway to know if this is caused by specific method? For > example, if a method is waiting for a I/O operation, or network request Well, you could always look at the source code. Mark > > On 10 May 2017 at 12:05, Mark Thomas

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Mark Thomas
On 10/05/17 10:26, Michael Heinen wrote: > Am 10.05.2017 um 00:40 schrieb Mark Thomas: >> On 09/05/17 15:25, Michael Heinen wrote: >>> Hi all, >>> >>> I am currently mirgating an application from Tomcat 7.0.73 to 8.0.43. >>> On development platforms we use an embedded tomcat. >>> On of the jars on

Re: Thread.sleep CPU time

2017-05-10 Thread Oliver Fernandez
Is there anyway to know if this is caused by specific method? For example, if a method is waiting for a I/O operation, or network request On 10 May 2017 at 12:05, Mark Thomas wrote: > On 10/05/17 11:02, Oliver Fernandez wrote: > > But, is it correct Thread to be sleep? > > Yes. > > > On 10 May 2

Re: Thread.sleep CPU time

2017-05-10 Thread Mark Thomas
On 10/05/17 11:02, Oliver Fernandez wrote: > But, is it correct Thread to be sleep? Yes. > On 10 May 2017 at 10:43, Oliver Fernandez > wrote: > > So basically we can consider this time as CPU being idle, right? Yes. Mark > > > On 10 May 2017 at

Re: Thread.sleep CPU time

2017-05-10 Thread Oliver Fernandez
But, is it correct Thread to be sleep? On 10 May 2017 at 10:43, Oliver Fernandez wrote: > So basically we can consider this time as CPU being idle, right? > > > On 10 May 2017 at 10:15, Mark Thomas wrote: > >> On 10/05/17 09:02, Oliver Fernandez wrote: >> > Sorry about the image. Here's in text

Re: Embedded tomcat does not find web-fragment in jars outside web-inf\lib

2017-05-10 Thread Michael Heinen
Am 10.05.2017 um 00:40 schrieb Mark Thomas: On 09/05/17 15:25, Michael Heinen wrote: Hi all, I am currently mirgating an application from Tomcat 7.0.73 to 8.0.43. On development platforms we use an embedded tomcat. On of the jars on the classpath contains a web-fragment.xml in it's META-INF fol

Re: Thread.sleep CPU time

2017-05-10 Thread Oliver Fernandez
So basically we can consider this time as CPU being idle, right? On 10 May 2017 at 10:15, Mark Thomas wrote: > On 10/05/17 09:02, Oliver Fernandez wrote: > > Sorry about the image. Here's in text format > > > > > > > > - org.apache.tomcat.utils.trheads.TaskThreadWrappingRunnable.run() ---> >

Re: Thread.sleep CPU time

2017-05-10 Thread Mark Thomas
On 10/05/17 09:02, Oliver Fernandez wrote: > Sorry about the image. Here's in text format > > > > - org.apache.tomcat.utils.trheads.TaskThreadWrappingRunnable.run() ---> > 42% CPU. This is my webapp code. It's OK > > - org.apache.coyote.AbstractProtocol$AsyncTimeout.run() > - AbstractProt

Re: Thread.sleep CPU time

2017-05-10 Thread Oliver Fernandez
Sorry about the image. Here's in text format - org.apache.tomcat.utils.trheads.TaskThreadWrappingRunnable.run() ---> 42% CPU. This is my webapp code. It's OK - org.apache.coyote.AbstractProtocol$AsyncTimeout.run() - AbstractProtocol.java:1138 [Wall Time] java.lang.Thread.sleep(long) >

Re: Thread.sleep CPU time

2017-05-10 Thread Stevo Slavić
Maybe sleep call is in a loop - busy waiting, and sleeping too short. Sleep longer, observe latency after the change. In Java 9 there will be extra option http://download.java.net/java/jdk9/docs/api/java/lang/Thread.html#onSpinWait-- On Wed, May 10, 2017 at 9:44 AM, Oliver Fernandez < oliver.ferna

Re: Thread.sleep CPU time

2017-05-10 Thread Felix Schumacher
Am 10. Mai 2017 09:44:13 MESZ schrieb Oliver Fernandez : >While profiling my Tomcat app using YourKit, I noticed two Threads, >consuming 57% of total CPU, in the method Thread.sleep() > >[image: Inline images 1] The image was removed by the mailing list. Could you post the details as text? Reg

Thread.sleep CPU time

2017-05-10 Thread Oliver Fernandez
While profiling my Tomcat app using YourKit, I noticed two Threads, consuming 57% of total CPU, in the method Thread.sleep() [image: Inline images 1] What's this Thread.sleep() about?