Results 1 to 7 of 7
  1. #1
    kiranjava is offline Member
    Join Date
    Apr 2010
    Posts
    7
    Rep Power
    0

    Question monotoring jvm performance

    hi everyone,

    can some on help me creating the pure java application that monitor the memory usage and cpu time of another java program that was running on the jvm either in the local host or in the remote environment.
    pls give the general idea on this topic......


    pls send the code if possible for the application that running on the local host....

    thanks in advance budies

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Google and read about JMX.

  3. #3
    kiranjava is offline Member
    Join Date
    Apr 2010
    Posts
    7
    Rep Power
    0

    Default

    thank u .
    i read the jmx.i worked the examples but it is used to monitor the same application
    but when more that one application is running how can i monitor the particular application memory usage and the cpu time

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Just get a profiler then. There's lots out there.

  5. #5
    kiranjava is offline Member
    Join Date
    Apr 2010
    Posts
    7
    Rep Power
    0

    Default

    i am creating the application to monitor.so pls help me in those.only one thing i want to know is that how to monitor the particular application memory usage using another

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,178
    Rep Power
    20

    Default

    That's what a profiler does. Go look into how you can profile Java apps...look up instrumentation, for example.

  7. #7
    kiranjava is offline Member
    Join Date
    Apr 2010
    Posts
    7
    Rep Power
    0

    Default

    thanks fro d reply
    for example
    MonitoredHost local = MonitoredHost.getMonitoredHost("localhost");
    MonitoredHost local1 = MonitoredHost.getMonitoredHost("localhost");
    Set vmlist = new HashSet(local.activeVms());
    Set vmlist1 = new HashSet(local.activeVms());
    for (Object id : vmlist) {
    MonitoredVm vm = local.getMonitoredVm(new VmIdentifier("//" + id));

    String processname = MonitoredVmUtil.mainClass(vm, true);
    System.out.println("id number"+vmlist.size());
    System.out.println(id + " ------> " + processname);
    System.out.println("vmlist:"+vmlist);
    this gives me the no of processname n id that was running on the Jvm
    how can i create an application that monitor the particular process or
    help me placing the process information on to the table on runtime

Similar Threads

  1. monotoring jvm performance
    By kiranjava in forum New To Java
    Replies: 0
    Last Post: 04-28-2010, 07:18 AM
  2. IO and Performance
    By Cbani in forum New To Java
    Replies: 12
    Last Post: 03-10-2010, 10:36 AM
  3. performance problem on osx
    By coldnebo in forum Advanced Java
    Replies: 3
    Last Post: 08-01-2008, 10:39 PM
  4. Performance Plugin
    By bugger in forum Eclipse
    Replies: 0
    Last Post: 01-31-2008, 03:01 PM
  5. Performance Of Collections
    By thomasprabu in forum Advanced Java
    Replies: 0
    Last Post: 01-05-2008, 12:17 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •