Results 1 to 7 of 7
Thread: monotoring jvm performance
- 04-29-2010, 05:15 AM #1
Member
- Join Date
- Apr 2010
- Posts
- 7
- Rep Power
- 0
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
- 04-29-2010, 07:58 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Google and read about JMX.
- 04-29-2010, 08:23 AM #3
Member
- Join Date
- Apr 2010
- Posts
- 7
- Rep Power
- 0
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
- 04-29-2010, 08:53 AM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Just get a profiler then. There's lots out there.
- 05-04-2010, 08:11 AM #5
Member
- Join Date
- Apr 2010
- Posts
- 7
- Rep Power
- 0
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
- 05-04-2010, 10:51 AM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
That's what a profiler does. Go look into how you can profile Java apps...look up instrumentation, for example.
- 05-04-2010, 11:16 AM #7
Member
- Join Date
- Apr 2010
- Posts
- 7
- Rep Power
- 0
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
-
monotoring jvm performance
By kiranjava in forum New To JavaReplies: 0Last Post: 04-28-2010, 06:18 AM -
IO and Performance
By Cbani in forum New To JavaReplies: 12Last Post: 03-10-2010, 09:36 AM -
performance problem on osx
By coldnebo in forum Advanced JavaReplies: 3Last Post: 08-01-2008, 09:39 PM -
Performance Plugin
By bugger in forum EclipseReplies: 0Last Post: 01-31-2008, 02:01 PM -
Performance Of Collections
By thomasprabu in forum Advanced JavaReplies: 0Last Post: 01-05-2008, 11:17 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks