• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2SE 1.5  RSS feed

 
Saurabh Agrawal
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I want to develop a sample application which is basically a Thread Monitoring Application which uses all features of J2SE 1.5.

Thread Administrator application is used to monitor and manage threads running in the system for any application. The application maintains the list of Threads invoked by the application in a hash table and displays the state of the threads at any particular instance of time. A GUI can be used to display Thread states at any instant on request. The GUI should display the resources utilized, the memory usage and status of garbage collector. The GUI should also be able to display the status in multiple languages. This application would support the usage of JMX API, generics, enhanced for loops, enhanced thread functionality, enhanced internationalization support and Swing skins Look and Feel.


So can anyone suggest me with somem pointers which would help me in developing such kind of application.

Thanks in advance,
Saurabh
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you want a stand-alone application that can show you information about other stand-alone applications without modifying the apps to be observed?

Take a look at JConsole in JDK 1.5. You can start a Java app with parameters that make it observable, then fire up the console and look into memory and thread use. I think the APIs that the console uses to do this stuff are public; the console is only an example of using the APIs. You could write your own monitor to the same APIs.

If you want to write a monitor package that could be added to other Java apps, you can do a lot more. The Java Specialists Newsletter has covered deep threading issues a few times; scan their index or search for threads.
 
Ganesh Gowtham
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ...
r u creating a "Thread Pool" and store in Hash Table.

use threads runnabale concept for continous monitoring of threads .
use Runtime.getRuntime().getFreeMemory() to know status of Heap .
java swing JFC for gud console..
i donr know Y u need Kmx for this purpose...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!