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.

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: >> > So

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.

Re: Thread.sleep CPU time

2017-05-10 Thread Oliver Fernandez
Wait-- > > 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() > > > > [image: Inline

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?