Last updated October 06, 2014 17:57, by Jaroslav Bachorik
Feedicon  
= This location is being phased out. Please, continue with [https://github.com/jbachorik/btrace BTrace@GitHub]= ---- = BTrace = BTrace is a safe, dynamic tracing tool for the Java platform. BTrace can be used to dynamically trace a running Java program (similar to [http://opensolaris.org/os/community/dtrace/ DTrace for OpenSolaris] applications and OS). BTrace dynamically instruments the classes of the target application to inject tracing code ("bytecode tracing"). Tracing code is expressed in Java programming language. There is also integration with DTrace for the OpenSolaris platform. You can enhance [https://visualvm.dev.java.net/ VisualVM] with the [[BTrace plugin]] to be able to write and deploy BTrace scripts directly from VisualVM. Alternatively, if you'd prefer you can run BTrace from command line shells as well. There is also a [http://www.netbeans.org/ NetBeans] [[nb-integration|integration]] that makes it easier to write and deploy BTrace scripts. For your convenience you can directly install the [http://kenai.com/projects/btrace/downloads/download/nb-modules%252Forg-netbeans-modules-btrace-uc.nbm BTrace Update Center definition] which gives you access to the integration modules right from within the IDE plugin manager. == License == BTrace is available under [https://visualvm.dev.java.net/legal/gplv2+ce.html GNU Public License v.2 w/Classpath Exception]. == Download == Actual BTrace binary realease is available for download from Documents & files link. == Maven == BTrace binaries are available as Maven artifacts as well. You can get them [https://oss.sonatype.org/content/repositories/releases/ here] == User Guide == [[UserGuide|BTrace User's Guide]] == Building from the sources == BTrace sources are available from Mercurial repository. After checking out the sources, you can use NetBeans to build BTrace using the [[NetBeans project setup instructions]]. There is also a [[DeveloperGuide|BTrace Developer's Guide]]. == Known Issues == *JVM crash: We have seen JVM crashes with BTrace. We have fixed few such crashes as well. JVM could crash due to the following reasons: # BTrace submits invalid .class file to VM (bug in BTrace instrumentor) # Hotswap bug in HotSpot JVM. To enable debugging such scenarios, please turn on the following options in $BTRACE/bin/btrace (or btrace.bat) script. By default, the System properties com.sun.btrace.debug amd com.sun.btrace.dumpClasses are set to false in the scripts. Please change these to true. Also, you may want to add -verify:all option as well - which will force bytecode verification of all loaded classes. When you report a JVM crash with BTrace, please attach/send the following: # BTrace trace class that caused the crash. # hs_err_pidXXX log produced by JVM. # *.class file(s) saved by BTrace setting the com.sun.btrace.dumpClasses option. # debug output from BTrace by setting the com.sun.btrace.debug option. == How to contribute to BTrace? == If you like BTrace and want to contribute fixes/features to BTrace, your are always welcome! You (or your company) have to sign the [http://www.sun.com/software/opensource/contributor_agreement.jsp Sun Contributor Agreement]. Then, please join this project as "developer" using your kenai.com id. === BTrace on the web === * [http://plumbr.eu/blog/who-is-calling-this-method Who is calling this method?] * [http://eurekaj.haagen.name/documentation/btrace_script_concepts_1.2.html BTrace Script Concepts] * [http://netbeans.dzone.com/articles/debugging-netbeans-with-visualvm-and-btrace Using VisualVM, BTrace & Good Old Web Search] * [http://ice09.wordpress.com/2009/07/12/analysing-memory-leaks-with-btrace Analysing Memory Leaks with BTrace] * [http://www.devwebsphere.com/devwebsphere/2009/06/btrace-for-performance-tuning.html btrace for performance tuning] * [http://blog.scalablej.com/2009/05/btrace-ultimate-jvm-probe.html BTrace the ultimate JVM probe] * [http://www.dzone.com/links/socket_monitoring_now_using_btrace.html Socket Monitoring: Now Using BTrace] * [http://kensipe.blogspot.com/2009/02/btrace-fix-on-mac.html BTrace Fix on the Mac] * [http://raymondtay.blogspot.com/2008/06/using-btrace-in-java-6.html Using BTrace in Java 6] * [http://http//blog.igorminar.com/2008/06/btrace-dtrace-for-java.html BTrace == DTrace for Java] * [http://blogs.sun.com/theaquarium/entry/btrace_showing_promises BTrace showing promises] * [http://weblogs.java.net/blog/binod/archive/2008/06/sailfin_work_an.html SailFin work and BTrace] * [http://www.carlobonamico.com/blog/tag/btrace/ Runtime profiling and monitoring Java apps with btrace]
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2014, Oracle Corporation and/or its affiliates
(revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close