Re: [OT] RE: 80ms delay switching between worker threads

2015-11-05 Thread Farzad Panahi
>>>>> (also see "precision" , here is a good roundup: >>>>>> http://www.tutelman.com/golf/measure/precision.php ) >>>>> >>>>> >>>>> >>>>> I'm not sure about the others, but as an Electrical Eng

Re: [OT] RE: 80ms delay switching between worker threads

2015-11-04 Thread Christopher Schultz
lf/measure/precision.php ) >>>> >>>> >>>> >>>> I'm not sure about the others, but as an Electrical Engineer, I know the >>>> difference between resolution, precision, and accuracy. In the post I >>>> made >>>> earlie

Re: [OT] RE: 80ms delay switching between worker threads

2015-11-03 Thread Farzad Panahi
;>>>> actually called "accuracy". >>>>> (also see "precision" , here is a good roundup: >>>>> http://www.tutelman.com/golf/measure/precision.php ) >>>> >>>> >>>> >>>> I'm not sur

Re: [OT] RE: 80ms delay switching between worker threads

2015-11-03 Thread Farzad Panahi
ecision.php ) >>> >>> >>> >>> I'm not sure about the others, but as an Electrical Engineer, I know the >>> difference between resolution, precision, and accuracy. In the post I >>> made >>> earlier, I said and meant "resolution". >>>

Re: [OT] RE: 80ms delay switching between worker threads

2015-11-03 Thread tomcat
e- From: Konstantin Preißer [mailto:kpreis...@apache.org] Sent: 31. October 2015 10:27 To: Tomcat Users List Subject: [OT] RE: 80ms delay switching between worker threads Importance: Low Hi Christopher, -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sen

Re: [OT] RE: 80ms delay switching between worker threads

2015-11-02 Thread David kerber
:kpreis...@apache.org] Sent: 31. October 2015 10:27 To: Tomcat Users List Subject: [OT] RE: 80ms delay switching between worker threads Importance: Low Hi Christopher, -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Saturday, October 31, 2

Re: 80ms delay switching between worker threads

2015-11-02 Thread Christopher Schultz
Farzad, On 10/31/15 2:11 AM, Farzad Panahi wrote: > Hi Chris - I am using a linux instance on amazon cloud. You may be seeing either of the following: 1. Loss of real-time clock resolution due to virtualization (or support from the host OS) 2. Delays imposed on your instance by the

Re: [OT] RE: 80ms delay switching between worker threads

2015-11-02 Thread Farzad Panahi
t; www.comtrade.com >> >>> -Original Message----- >>> From: Konstantin Preißer [mailto:kpreis...@apache.org] >>> Sent: 31. October 2015 10:27 >>> To: Tomcat Users List >>> Subject: [OT] RE: 80ms delay switching between worker threads >

Re: [OT] RE: 80ms delay switching between worker threads

2015-11-02 Thread David kerber
vid Balažic Software Engineer www.comtrade.com -Original Message- From: Konstantin Preißer [mailto:kpreis...@apache.org] Sent: 31. October 2015 10:27 To: Tomcat Users List Subject: [OT] RE: 80ms delay switching between worker threads Importance: Low Hi Christopher, -Original Mes

Re: 80ms delay switching between worker threads

2015-10-31 Thread Farzad Panahi
Hi Chris - I am using a linux instance on amazon cloud. On Oct 30, 2015 7:43 PM, "Christopher Schultz" wrote: > Farzad, > > On 10/30/15 6:10 PM, Farzad Panahi wrote: > > Thanks for the explanation David. > > > > I added System.nanoTime() to get high resolution

[OT] RE: 80ms delay switching between worker threads

2015-10-31 Thread Konstantin Preißer
Hi Christopher, > -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Saturday, October 31, 2015 3:43 AM > > What OS are you using? IIRC, the Windows timer has horrible resolution. > you can call System.currentTimeNanos all you want, but you won't

RE: [OT] RE: 80ms delay switching between worker threads

2015-10-31 Thread David Balažic
-Original Message- > From: Konstantin Preißer [mailto:kpreis...@apache.org] > Sent: 31. October 2015 10:27 > To: Tomcat Users List > Subject: [OT] RE: 80ms delay switching between worker threads > Importance: Low > > Hi Christopher, > > > -Original Message- >

Re: 80ms delay switching between worker threads

2015-10-30 Thread tomcat
On 30.10.2015 01:03, Farzad Panahi wrote: Hi, I am using tomcat 8.0.23 to terminate my websocket connections. I was looking at my trace logs and noticed that when tomcat worker thread responsible for processing websocket messages switches to a different thread, there is about 80ms delay. In my

Re: 80ms delay switching between worker threads

2015-10-30 Thread Mark Thomas
On 30/10/2015 00:03, Farzad Panahi wrote: > Hi, > > I am using tomcat 8.0.23 to terminate my websocket connections. I was > looking at my trace logs and noticed that when tomcat worker thread > responsible for processing websocket messages switches to a different > thread, there is about 80ms

Re: 80ms delay switching between worker threads

2015-10-30 Thread Christopher Schultz
Farzad, On 10/30/15 6:10 PM, Farzad Panahi wrote: > Thanks for the explanation David. > > I added System.nanoTime() to get high resolution numbers. Nano second > numbers are telling me the same thing. When thread changes we see a > difference of about 82ms (3082462134714 - 3082379268473 =

Re: 80ms delay switching between worker threads

2015-10-30 Thread Farzad Panahi
André - I like your humour :D On Fri, Oct 30, 2015 at 1:38 AM, André Warnier (tomcat) wrote: > On 30.10.2015 01:03, Farzad Panahi wrote: >> >> Hi, >> >> I am using tomcat 8.0.23 to terminate my websocket connections. I was >> looking at my trace logs and noticed that when tomcat

Re: 80ms delay switching between worker threads

2015-10-30 Thread Farzad Panahi
Mark - Could you elaborate a bit more on what you mean by "resolution of the timestamps for the log messages"? If you are referring to the log4j latency (https://logging.apache.org/log4j/2.x/manual/async.html#Latency), it is in microseconds. If it has anything to do with the logger why is it

Re: 80ms delay switching between worker threads

2015-10-30 Thread David kerber
On 10/30/2015 3:23 PM, Farzad Panahi wrote: Mark - Could you elaborate a bit more on what you mean by "resolution of the timestamps for the log messages"? If you are referring to the log4j latency (https://logging.apache.org/log4j/2.x/manual/async.html#Latency), it is in microseconds. If it

Re: 80ms delay switching between worker threads

2015-10-30 Thread Farzad Panahi
Thanks for the explanation David. I added System.nanoTime() to get high resolution numbers. Nano second numbers are telling me the same thing. When thread changes we see a difference of about 82ms (3082462134714 - 3082379268473 = 82866241). Within the same thread the time difference is something

80ms delay switching between worker threads

2015-10-29 Thread Farzad Panahi
Hi, I am using tomcat 8.0.23 to terminate my websocket connections. I was looking at my trace logs and noticed that when tomcat worker thread responsible for processing websocket messages switches to a different thread, there is about 80ms delay. In my OnMessage implementation I let the work done