Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Threads getting hung in the server  RSS feed

 
sunil kumbs
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a system where I run jobs(which are java threads) and each job has a sleeptime defined for it.

Now one of the job's work is to collect new employee information from my DB (Oracle 9i), then connect to a Lotus notes ID manager server and send a request for each new employee id to create a new Lotus notes document id and sends a response back to me so that in the UI, I can see a new status for each new employee id which got successfully processed.

Currently I'm experiencing the following problem:

Let the above mentiond job be denoted as X and it is having a sleeptime of 10000ms.
When X runs and sends the request to IDManager server,I'm not getting a response back and X is getting hung. When X starts next time(Note: the previous X is still hung) it happens as mentioned above that means X is starting each time but not getting completed as each X is waiting for a response, and as a result I'm having too many X that are hung which is affecting my server performance and as mentioned above the new employee's status is not getting updated.

Could anybody please assist me in getting this resolved.
Please feel free to mention if you need any more information in order to understand the problem clearly.

Cheers
Sunil
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We would probably need to know a lot more information like:
1) What does 'hung' mean? How do you know they are hung, what are the tasks trying to do when they are hung? etc...
2) How are you running your tasks? ThreadPoolExecutor?


Why does X sleep for 10000ms? What is the purpose?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!