• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Thread is stopping without any reason

 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic