tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stevo Slavić <ssla...@gmail.com>
Subject Re: Thread.sleep CPU time
Date Wed, 10 May 2017 07:53:38 GMT
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.fernandez@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 images 1]
>
> What's this Thread.sleep() about?
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message