• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread hung

 
Ravindra Gupta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , Can somebody tell me why the thread is hung and where is the real problem. Its very very urgent.

I found this in my log :

[15/09/08 10:38:02:943 BST] 00000030 ThreadMonitor W WSVR0605W: Thread "Migrated.Servlet.Engine.Transports : 535" (000006e5) has been active for 724317 milliseconds and may be hung. There is/are 1 thread(s) in total in the server that may be hung.
[15/09/08 10:38:02:943 BST] 00000030 ThreadMonitor W WSVR0605W: Thread "Migrated.Servlet.Engine.Transports : 552" (000006f9) has been active for 679586 milliseconds and may be hung. There is/are 2 thread(s) in total in the server that may be hung.
 
Henry Wong
author
Sheriff
Posts: 22514
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no data here. This is likely a threadpool who has a thread that is running for a long time, and is complaining about it. You need to look at the class, and see if the tasks are supposed to run that long. (12 minutes in this case)

You also need to profile, and/or look at the logs to see exact what the task is doing.

Henry
 
Ravindra Gupta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Henry For your reply, but Can this kind of issue occur if the database to which the application is connected is not available to the application, ie say eg if database is not available or may be the database is not connected properly during startup.

This is just an assumption I am making that can these kind of issue happen like this also.


Thanks
 
Henry Wong
author
Sheriff
Posts: 22514
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can this kind of issue occur if the database to which the application is connected is not available to the application, ie say eg if database is not available or may be the database is not connected properly during startup.


Again, there is no data. Speculating with no data is not very useful. All there is, is that there is something complaining about the fact that a task is taking longer than 12 minutes to run.

You need to take a look at the task to see why it is taking so long. And see if it is normal for it to take that long. But to answer your question, if your task is waiting for the DB to be available, and is willing to wait for 12 minutes, then yes, that can be a cause.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!