{"id":737,"date":"2008-03-08T01:59:35","date_gmt":"2008-03-08T06:59:35","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/08\/dttace-web-20-java-ajax-php-and-the-rest"},"modified":"2009-06-03T00:30:10","modified_gmt":"2009-06-03T05:30:10","slug":"dtrace-web-20-java-ajax-php-and-the-rest","status":"publish","type":"post","link":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/08\/dtrace-web-20-java-ajax-php-and-the-rest","title":{"rendered":"DTrace, Web 2.0, Java, AJAX, PHP and the rest"},"content":{"rendered":"<p><em>No, its not alphabet soup. Just some notes from the session at the <a href=\"http:\/\/au.sun.com\/sunnews\/events\/2008\/techdays\/agenda.jsp\">Sun Tech Days<\/a>. I&#8217;ve not looked at DTrace much (my only look into instrumentation, has been from SystemTap, which doesn&#8217;t deal with applications), but plan on doing so soon&#8230; I&#8217;ve managed to get OpenSolaris Developer Preview 2 installed in VirtualBox, so it can only start being more fun from here&#8230;<\/em><\/p>\n<p><strong>Want to learn more about DTrace and MySQL?<\/strong> Then come to the <a href=\"http:\/\/www.mysqlconf.com\/\">MySQL Conference &#038; Expo 2008<\/a>, in Santa Clara, California, because on Thursday, Ben Rockwood, from Joyent, will be presenting a session on <a href=\"http:\/\/en.oreilly.com\/mysql2008\/public\/schedule\/detail\/1193\">DTrace and MySQL<\/a> (read the abstract, its good). The talk covers the fact that you can get useful information currently, even without the embedded probes in current versions of MySQL. For more DTrace and MySQL tips, don&#8217;t hesitate to read <a href=\"http:\/\/www.joyeur.com\/\">Joyeur<\/a>, Joyent&#8217;s weblog.<\/p>\n<p><strong>DtTace, Web 2.0, Java, AJAX, PHP and the rest <\/strong><em>(notes from the talk)<\/em><br \/>\nby <a href=\"http:\/\/au.sun.com\/sunnews\/events\/2008\/techdays\/speakers.jsp#karlsson\">Peter Karlsson<\/a>, Solaris Technology Evangelist<\/p>\n<p>DTrace now has providers for a large number of languages: JavaScript, Java, PHP, Python, Ruby. Perl is on the way.<\/p>\n<p>MySQL 6.0 will have DTrace support; PostgreSQL already has this in Solaris currently. If building from source, there&#8217;s a flag that needs to be enabled. A lot of work was done thanks to a community member.<\/p>\n<p>You need a Solaris kernel. Ported to OS X and FreeBSD. Supports &#8220;dynamic instrumentation&#8221;. D is the dynamic language, used to script instrumentation<\/p>\n<p>Very common request? Find how much time is spent in a given function. The thread local variable (self-&gt;variable = expression;) &#8211; nowadays, you can be running two threads coming down in the same function call. DTrace &#8211; so this is great for multi-threaded debugging.<\/p>\n<p>PHP doesn&#8217;t have DTrace integrated, so, get the <a href=\"http:\/\/cooltools.sunsource.net\/coolstack\/\">Coolstack PHP<\/a>.<\/p>\n<p>DTrace probes have been added to Mozilla to help debug JavaScript applications. This is available in Firefox 3 (in beta now). There is also a generic DTrace framework, that isn&#8217;t just JavaScript only &#8211; the networking parts of Firefox, to look at how DNS lookups work, etc. all can be instrumented via DTrace.<\/p>\n<p>Further reading? <a href=\"http:\/\/blogs.sun.com\/bmc\/entry\/dtrace_and_php_demonstrated\">DTrace and PHP, demonstrated<\/a>.<\/p>\n<p>Technorati Tags: <a href=\"http:\/\/technorati.com\/tag\/dtrace\" class=\"performancingtags\" rel=\"tag\">dtrace<\/a>, <a href=\"http:\/\/technorati.com\/tag\/php\" class=\"performancingtags\" rel=\"tag\">php<\/a>, <a href=\"http:\/\/technorati.com\/tag\/javascript\" class=\"performancingtags\" rel=\"tag\">javascript<\/a>, <a href=\"http:\/\/technorati.com\/tag\/mysql\" class=\"performancingtags\" rel=\"tag\">mysql<\/a><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20DTrace%2C%20Web%202.0%2C%20Java%2C%20AJAX%2C%20PHP%20and%20the%20rest&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2008%2F03%2F08%2Fdtrace-web-20-java-ajax-php-and-the-rest&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"6c04fc28d5\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/08\/dtrace-web-20-java-ajax-php-and-the-rest?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-737\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/08\/dtrace-web-20-java-ajax-php-and-the-rest?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-737\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/08\/dtrace-web-20-java-ajax-php-and-the-rest?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-737\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/08\/dtrace-web-20-java-ajax-php-and-the-rest?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>No, its not alphabet soup. Just some notes from the session at the Sun Tech Days. I&#8217;ve not looked at DTrace much (my only look into instrumentation, has been from SystemTap, which doesn&#8217;t deal with applications), but plan on doing so soon&#8230; I&#8217;ve managed to get OpenSolaris Developer Preview 2 installed in VirtualBox, so it [&hellip;]<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20DTrace%2C%20Web%202.0%2C%20Java%2C%20AJAX%2C%20PHP%20and%20the%20rest&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2008%2F03%2F08%2Fdtrace-web-20-java-ajax-php-and-the-rest&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"6c04fc28d5\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/08\/dtrace-web-20-java-ajax-php-and-the-rest?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-737\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/08\/dtrace-web-20-java-ajax-php-and-the-rest?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-737\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/08\/dtrace-web-20-java-ajax-php-and-the-rest?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-737\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/08\/dtrace-web-20-java-ajax-php-and-the-rest?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[23],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4vJD-bT","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":854,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/07\/08\/sun-developer-days-singapore-mysql-meetup","url_meta":{"origin":737,"position":0},"title":"Sun Developer Days Singapore, MySQL Meetup","date":"8\/7\/2008","format":false,"excerpt":"In addition to having the Malaysia University Days, there's something brewing in Singapore too. First up, there is the Singapore MySQL Meetup Group, having a meeting in July, at a new location (Sun Solutions Centre, Central Mall). Confirm your attendance for a meetup at 7pm on Monday, July 14 2008.\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":816,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/05\/08\/uing-dtrace-with-java-technology-based-applications-bridging-the-observability-gap","url_meta":{"origin":737,"position":1},"title":"Uing DTrace with Java Technology Based Applications: Bridging the Observability Gap","date":"8\/5\/2008","format":false,"excerpt":"Presented by Jonathan Haslam, Simon Ritter, Sun Microsystems In what I thought was completely great showmanship between Jonathan Haslam and Simon ritter, it was simply, pure comedy, having the two of them on stage. No reason to go deeply into notes (as the verbose slides are available), but the actual\u2026","rel":"","context":"In &quot;General&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":734,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/06\/lots-of-database-talk-at-sun-tech-days","url_meta":{"origin":737,"position":2},"title":"Lots of database talk at Sun Tech Days","date":"6\/3\/2008","format":false,"excerpt":"I didn't get to attend many sessions at the Tech Days, as I was mainly meeting with people, or at the PostgreSQL on Solaris booth (figures someone from MySQL should've been there too). I had plenty of interesting conversations with Tom Daly; we met by chance since I had a\u2026","rel":"","context":"In &quot;Travel&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1334,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2009\/02\/19\/sun-tech-days-hyderabad","url_meta":{"origin":737,"position":3},"title":"Sun Tech Days Hyderabad","date":"19\/2\/2009","format":false,"excerpt":"I had the pleasure of addressing a crowd of over 1,000+ people yesterday, at the Sun Tech Days event in Hyderabad. I think this might as well be the biggest number of attendees at a talk that I've given. I spoke on MySQL: The Database for Web 2.0, and the\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":758,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/27\/sun-nus-open-source-day","url_meta":{"origin":737,"position":4},"title":"Sun-NUS Open Source Day","date":"27\/3\/2008","format":false,"excerpt":"Friday, 28\/03\/2008, is when the Sun-NUS Open Source Day occurs, from noon-6pm. If you're in Singapore, I can highly recommend you attending. Pre-register now, if you'd like.Come see me, talk about how you can contribute to MySQL. Especially in a time when students in Singapore will find it useful, to\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":761,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/31\/hitchhackers-guide-to-the-mysql-conference-rubyruby-on-rails-edition","url_meta":{"origin":737,"position":5},"title":"Hitchhacker&#8217;s Guide to the MySQL Conference &#8211; Ruby\/Ruby on Rails Edition","date":"31\/3\/2008","format":false,"excerpt":"The Hitchhacker's Guide to the MySQL Conference Ruby\/Ruby on Rails Developer's Edition Following on from the excellent Hitchhacker's Guide to the MySQL Conference - PHP Edition by Jay Pipes, I'm doing one for the Ruby and Ruby on Rails developer in you. If you haven't registered yet, remember, I can\u2026","rel":"","context":"In &quot;MySQL&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"amp_enabled":true,"_links":{"self":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/737"}],"collection":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=737"}],"version-history":[{"count":1,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/737\/revisions"}],"predecessor-version":[{"id":1534,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/737\/revisions\/1534"}],"wp:attachment":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=737"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}