• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tool for monitoring threads in Linux  RSS feed

 
Alok Pota
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a tool out there that will monitor the amount and state of Java threads executing on Linux (version 2.4.10-xfs).
Also what is the maximum # of threads that can be instantiated on a linux box?
 
Claude Moore
Ranch Hand
Posts: 892
8
IBM DB2 Java Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also what is the maximum # of threads that can be instantiated on a linux box?


I would say : "you can run as many threads as you want until you run out of resources". I can write a single thread that exhausts all JVM's available memory or create a huge bulk of thread that don't do nothing but looping forever and invoking Thread.sleep(1000) in their run method.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!