BTrace aggregations - contribution from community

If you have used DTrace, chances are that you have used aggregations. For performance issues, aggregated data is often more useful than individual data points. With BTrace, aggregating data is bit painful (you have to manage using Maps explicitly). It would be nice to have DTrace-style aggregation functions such as sum, max, min and so on. Glencross, Christian M (cited in my previous entry) has contributed code changes, doc and a sample for easy-to-use aggregation facility for BTrace. Please refer to the sample code (JdbcQueries.java) that demonstrates aggregations.

Now something unrelated to aggregations, but related to BTrace : I came to know about another use-case of BTrace. See also http://blog.igorminar.com/2008/06/btrace-dtrace-for-java.html

Comments:

I'm getting ClassFormatError during instrumentation when using the provided JdbcQueries.java (I've tried java versions 1.6.0_05, 1.6.0_10-beta-b25 and 1.7.0-ea-b24):

Exception in thread "Thread-10" java.lang.ClassFormatError
at sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
at sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:144)
at com.sun.btrace.agent.Main.handleNewClient(Main.java:278)
at com.sun.btrace.agent.Main.startServer(Main.java:245)
at com.sun.btrace.agent.Main.access$000(Main.java:53)
at com.sun.btrace.agent.Main$1.run(Main.java:127)
at java.lang.Thread.run(Thread.java:674)

The same error occurs even with sample ArgArray.java. Curiously, with java 1.7 ArgArray.java works.

Posted by Ari Savolainen on June 27, 2008 at 11:00 AM IST #

Hi Ari Savolainen: Will you please file a bug (using Issue Tracker java.net )? If possible, please attach BTrace generated .class files (can be dumped setting com.sun.btrace.dumpClasses property to true -- please check latest BTrace start page for instructions).

Posted by A. Sundararajan on June 27, 2008 at 11:13 AM IST #

Post a Comment:
Comments are closed for this entry.
About

sundararajan

Search

Archives
« May 2015
SunMonTueWedThuFriSat
     
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
      
Today
Bookmarks
Links

No bookmarks in folder

Blogroll

No bookmarks in folder

News

No bookmarks in folder