• 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Thread taking maximum time  RSS feed

 
Ranch Hand
Posts: 315
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose we have an application which spawns 50 threads. I want to figure out which thread is taking maximum amount of time. How can we extract this information?
 
Saloon Keeper
Posts: 9134
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At runtime, or do you want to perform a test?
 
Vaibhav Gargs
Ranch Hand
Posts: 315
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At runtime in production. Can we do some kind of logging
 
Stephan van Hulst
Saloon Keeper
Posts: 9134
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to instrument your code with ThreadMXBean.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!