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 <ma...@apache.org> wrote: > On 10/05/17 09:02, Oliver Fernandez wrote: > > Sorry about the image. Here's

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 <oliver.fernan...@marfeel.com> wrote: > So basically we can consider this time as CPU being idle, right? > > > On 10 May 2017 at 10:15, Mark Thomas <ma...@apache.org> wrote: > >> 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 <ma...@apache.org> wrote: > On 10/05/17 11:02, Oliver Fernandez wrote: > > But, is it correct Thread to be

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?

Re: Thread.sleep CPU time

2017-05-10 Thread Oliver Fernandez
l#onSpinWait-- > > On Wed, May 10, 2017 at 9:44 AM, Oliver Fernandez < > oliver.fernan...@marfeel.com> wrote: > > > While profiling my Tomcat app using YourKit, I noticed two Threads, > > consuming 57% of total CPU, in the method Thread.sleep() > > >