Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread is stopping without any reason

 
Azrael Noor
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all

An agent is running on JBOSS server in SAR file.

A Single thread is running on Server processing following:
> taking request from database call web service
> making call to web service
> processing on response
> updating request status

It worked for many months but it stopped suddenly without giving any error in Server log or any where.
While loop keep thread running

This happened back with me an year before.

We simply restart the server and everything runs normal

i am unable to find why thread is showing such behavior. Who Killed it?

 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Azrael Noor wrote:i am unable to find why thread is showing such behavior. Who Killed it?


Must of been Joe from accounting...

But really, we have no way of helping you with this. What you need to do is attach a profiler and see what is happening to the thread - what its state is and what its call stack is. Once you see that info you may be able to walk backwards and see what is happening.
 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if the thread actually comes to completion, you have to find all the scenarios where that could happen. Check every line of code to see if there is something that could make it stop, or an exception that gets caught, causes thread death but doesn't report or log the error at all.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic