aspose file tools*
The moose likes Java in General and the fly likes To the author: Profiling API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "To the author: Profiling API" Watch "To the author: Profiling API" New topic
Author

To the author: Profiling API

Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Hi Cay,

I am now reading JSR-163, which is newly added to Tiger for Profiling API. What is the acutal usage in fact? Do we really need this? Any opinion on this? What kinds of applications that you would suggest we use this API?

Nick


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Cay Horstmann
author
Ranch Hand

Joined: Nov 14, 2004
Posts: 115
    
  11
Basically, if you run a large server and you want to continuously measure if the JVM is happy, then you need this API. You can monitor the garbage collector, threading, and so on.

The people who need this API need it very badly, so that they can monitor their servers. I am glad that Sun did this, so that large-scale Java apps can be deployed reliably. But I don't think it is of much concern to the average programmer. That's why I didn't cover it in Core Java.

Cheers,

Cay


Author of Java 8 for the Really Impatient
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
it's seem like JMX or not ?


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
it's seem like JMX or not ?

JMX is for 3rd party tool to monitor some server, but the profiling is for internally managed, isnt it?

Nick
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982

The people who need this API need it very badly, so that they can monitor their servers. I am glad that Sun did this, so that large-scale Java apps can be deployed reliably.


Howver, I just wonder, will this be popular? As we know SUN tries to adopt features from open sources, like xerces, log4j, etc, into the Core API. However, seems that there are still lots of developers keep using xerces, log4j, instead of shifting to SUN's APIs.


Nick
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
But I don't think it is of much concern to the average programmer. That's why I didn't cover it in Core Java.

But have you covered this in vol 2, or mention a bit in the appendix?

Because it is a new features for Tiger, even though the probability of using it is not that high.

Nick
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
I just notice that Tiger has also include JSR 003 about JMX Management API. In such sense, does JVM of Tiger allow either 3rd party util, as well as the util comes along with, for system administrator to manage it?

In such case, which way you prefer? using JMX? or Profiling API? Could you share some more views on this issue?

Nick
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

JMX is now part of Core Java API. JMX can monitor applications and many more things.


Groovy
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
JMX is now part of Core Java API. JMX can monitor applications and many more things.

Usually, what kinds of "things" will be monitored by Java applications using JMX??

Nick
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Originally posted by Nicholas Cheung:

Usually, what kinds of "things" will be monitored by Java applications using JMX??

Nick


Java Management Extensions (JMX) technology provides the tools for building distributed, Web-based, modular and dynamic solutions for managing and monitoring devices, applications, and service-driven networks. By design, this standard is suitable for adapting legacy systems, implementing new management and monitoring solutions, and plugging into those of the future
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

More on JMX here
http://www.coderanch.com/t/313525/EJB-JEE/java/JMX
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Thanks.

I heard SOA somedays before, however, are there any systems that using SOA?

Nick
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Originally posted by Nicholas Cheung:
Thanks.

I heard SOA somedays before, however, are there any systems that using SOA?

Nick


SOA is altogether a different topic. So it would be better if you search/post in WebServices forum.
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Thanks Pradeep.

Nick
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Cay,

I just read through JSR-174, which is talking about JVM Software Monitoring and Management. In such sense, does this a duplication with JSR-163, becos both of them are aimed to provide services for monitoring JVM activity?

If not, what's the major difference between these 2 JSRs?

Nick
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To the author: Profiling API