Re: What could cause a Thread.sleep(500) to block forever?



david.karr <davidmichaelkarr@xxxxxxxxx> wrote:
I'm helping to diagnose a problem with a Java app running in WebLogic
9.2.2 on AIX 5.3, using the 64-bit JVM.

For some reason we're seeing a thread get stuck in an odd place. It's
sitting on a "Thread.sleep(500L)" (that's 500 milliseconds). It seems
like the Thread.sleep() call doesn't return, and just hangs there.

This doesn't happen all the time, but when it gets to this point, we
have to restart the WLS instance.

What sort of things could cause this, and what kinds of information
could I gather to get more information?

How did you verify that the process really stays in Thread.sleep()?

Could it be that you are caught in an endless loop that happens to
include a Thread.sleep(), e.g. while waiting for something?

Yours,
Laurenz Albe
.



Relevant Pages

  • Re: Your Own Useful Skills
    ... some reason it stuck that Mrs Cosine was the odd one out not ...
    (rec.arts.sf.written)
  • JSH: Oh yeah, spherical packing problem
    ... Google): spherical packing problem ... sitting out there that people don't seem to notice. ... sitting, public to the world, on my math blog. ... which is one reason I don't like bringing it up. ...
    (sci.physics)
  • Re: hidden in drawers - when is it obsession?
    ... If you actually think that owning anything for any reason other than for its ... immediate usefullness is odd, I think that's fine and OK for you to think ... collecting knives. ... As I have no idea what your intent is and I certainly don't intend to ...
    (rec.knives)
  • Re: FWD: Latest update on Pat "Nine Toes" Flannery
    ... No women over ten years older than you are for the same reason. ... No women whose ex-boyfriends were crazy or criminals, that should be a real good clue that there is something odd going on upstairs with them. ... as that adds a great deal of complexity to any relationship.* ... No women whose finances are in a state of constant chaos, as that indicates that your finances will also end up that way shortly. ...
    (sci.space.history)
  • Re: OT: Ping Quentin
    ... and dropped everything whilst I devoured it in one sitting; ... addictive quality for some that once started it must be continued. ... One reason of course is that here I'm ... in nutrition. ...
    (alt.support.diabetes)