Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

J2SE 1.5

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic