I am looking at an application, which hangs after a while. We have taken a thread dump, and I am trying to analyze the problem.
Unfortunately, I could not figure out very much out of the dump as my skills are a little inferior at the moment. But one thing that looks like causing the problem is the following thread dump. I see this multiple multiple times in the dump.
Here's the code fragment, that writes to the clients.
Upon looking at the javadoc for PrintWriter, I think using the following is better.
Actual thread dump is pretty long. Could you please suggest what steps should I take to be able to understand the problem better.