• 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 hung

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic