Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To the author: Profiling API

 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cay Horstmann
author
Ranch Hand
Posts: 172
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's seem like JMX or not ?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JMX is now part of Core Java API. JMX can monitor applications and many more things.
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More on JMX here
http://www.coderanch.com/t/313525/EJB-JEE/java/JMX
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

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

Nick
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Pradeep.

Nick
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic