• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Thread hung

 
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.
 
author
Posts: 23887
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux 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
Posts: 23887
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux 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
 
This guy is skipping without a rope. At least, that's what this tiny ad said:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic