Computationally intensive scala process using actors hangs uncooperatively

Posted by Chick Markley on Stack Overflow See other posts from Stack Overflow or by Chick Markley
Published on 2011-01-02T06:22:45Z Indexed on 2011/01/02 7:53 UTC
Read the original article Hit count: 283

Filed under:
|

I have a computationally intensive scala application that hangs. By hangs I means it is sitting in the process stack using 1% CPU but does not respond to kill -QUIT nor can it be attached via jdb attach.
Runs 2-12 hours at 800-900% CPU before it gets stuck The application is using ~10 scala.actors.

Until now I have had great success with kill -QUIT but I am bit stumped as to how to proceed.

The actors write a fair amount to stdout using println which is redirected to a text file but has not been helpful so far diagnostically. I am just hoping there is some obvious technique when kill -QUIT fails that I am ignorant of. Or just confirmation that having multiple actors println asynchronously is a real bad idea (though I've been doing it for a long time only recently with these results) Details scala 2.8.1 & 2.8.0 mac osx 10.6.5 java version "1.6.0_22"

Thanks

© Stack Overflow or respective owner

Related posts about scala

Related posts about jvm