SpringOne Americas

Private Events

Blogs

View all Blogs >>
  • Andrew Glover

    Co-author of "Continuous Integration"

    Every once in a while the topic of code coverage surfaces, which more»

  • Stuart Halloway

    CEO of Relevance

    Programmers coming to functional languages for the first time cannot imagine life without variables. I address this head-on in the more»

  • Richard Monson-Haefel

    VP of Developer Relations, Curl Inc.

    more»

  • Neal Ford

    Application Architect at ThoughtWorks, Inc.

    The lowly whiteboard is one of my favorite tools for design work on projects: you can stand in front of it as a group, you can easily play... more»

  • Michael Nygard

    Agile technology leader and dynamicist

    Sizing, Danish Style Folks in telecommunications and operations research have used Erl more»

  • Matt Raible

    Creator of AppFuse and author of Spring Live

    It's been three weeks since I joined the realm of the unemployed. Fortunately, I more»

  • Alex Miller

    Sr. Engineer with Terracotta Inc.

    Or maybe that should be “a bit of final advice”. :) There was a more»

  • Vladimir Vivien

    Software Engineer / Consultant

    I finally downloaded the latest JDK 6 u 10 (download) recently. This is a significant re more»

  • Scott Leberknight

    Chief Architect at Near Infinity

    Re nae Bair's post on The Ranting Rubyis more»

  • Graeme Rocher

    Project Lead of the Grails Project & CTO of G2One

    Those crazy guys over at the Grails podcast interviewed me about various things ranging from being part of more»

  • Ted Neward

    Enterprise, Virtual Machine and Language Wonk

    Dustin Campbell, a self-professed "IDE guy", is speaking at the .NET Developer's Association of Redmond this evening, on the future of... more»

  • Pratik Patel

    Enterprise Architect

    There's been a 'backlash' of sorts brewing in the Java developer community over the past 2 years. From talking to my developer buddies around... more»

  • Howard Lewis Ship

    Creator of Tapestry and HiveMind

    Seems like the Mac has a huge number of RSS readers. For a while I was using Vienna, but it stopped working after a recent update (no blogs... more»

  • Mike Levin

    Software Developer specializing in Web2.0 websites

    (photo from more»

  • Brian Pontarelli

    Founder of Inversoft

    Just figured out how to get git tab completion working in zsh on a Mac. Turns out that the completion scripts use a bunch of extra git... more»

  • Erik Doernenburg

    Principal Consultant @ Thoughtworks

    If you are somebody who writes code you probably know that moment when you look at some code you didn’t write, or some code you wrote a... more»

  • Kirk Knoernschild

    Software Developer & Mentor

    more»

  • Brian Goetz

    Author of Java Concurrency in Practice

    I live in an AT&T-free state, so I have not had access to the cult that is iPhone. But recently, in preparation for AT&T moving... more»

  • Matthew Bass

    Software Developer & Entrepreneur

    Can Sphinx and foxy fixtures place nicely together? Due to the way Sphinx indexing works, foxy fixtures will often slow down the indexing... more»

  • Jason Rudolph

    Author of Getting Started with Grails

    I had the more»

  • Ryan Shriver

    Business and Technology Consulting

    more»

  • Nathaniel Schutta

    Author, speaker, software engineer focused on user interface design.

    Today we learned something important, the NTSB announced the more»

  • Jeff Brown

    SpringSource Engineering And Professional Services - Groovy and Grails Developer

    Strange enough title.Let's start with a hypothetical conversation between a geeky developer and his much less geeky wife: more»

  • Jared Richardson

    Agile coach and co-author of Ship It

    Jurgen Appelo has an ongoing interview series on his blog. He's published a lot of very smart people and I'm honored to squeak in too! ;) more»

  • David Bock

    Principal Consultant, CodeSherpas Inc.

    I have been setting up a rock-solid server cluster for a client and ran into an interesting issue trying to install Phusion Passenger onto... more»

  • Pramod Sadalage

    Co-author of "Refactoring Databases:Evolutionary Database Development"

    Consider this Hibernate mapping @Column(name = "qReferenceId") public Long getQReferenceId() { return qReferenceId; more»

  • Craig Walls

    Author of Spring in Action

    At one time not too long ago, I wasn't a big fan of annotations. But then I let my guard down and even started liking them. But now I'm... more»

  • Kenneth Kousen

    President of Kousen IT, Inc.

    In this entry in my “Making Swing Groovy” series, I want to talk about threading issues. Specifically, more»

  • Venkat Subramaniam

    Founder of Agile Developer, Inc.

    I wrote a four part article for Java World on creating DSLs in Java and Groovy. For your convenience, I decided to list the links to those... more»

  • Jason Harwig

    Senior Software Engineer at Near Infinity

    The most popular entry I've written at Near Infinity has been the more»

  • John Heintz

    Principal Consultant with New Aspects of Software

    In a recent discussion interview questions came up, here's my favorite one.To set some context this question is designed to gauge the abst more»

  • Mark Johnson

    Director of Consulting at CGI

    At the Columbus NFJS show held on July 25-27th during one of the BOF sessions Dave Bock, Scott Davis and I discussed unit tests vs functional... more»

  • Joseph Nusairat

    Author of Beginning JBoss Seam & Co-Author of Beginning Groovy & Grails

    Well i am assuming Apress has the most random site in the world at times.But today only they have our recent book, Beginning Groovy & Grai more»

  • Keith Donald

    Lead of Spring Web and Creator of Spring Web Flow

    I am pleased to announce that Developing Rich Web Applications with Spring, a three-day bootcamp lead by SpringSource engineers on web... more»

  • Pete Behrens

    Organizational Agility Coach

    Marti nig & Associates Methods & Tools group recentl more»

  • Brian Sam-Bodden

    Java author, Ruby geek and Open Source Advocate

    In this installment we are going to build the Dashboard page of the Tempo application. T more»

  • Mark Fisher

    Spring Integration Lead

    In my recent post, I had mentio more»

  • Ron Bodkin

    Chief Software Architect, Quantcast

    I'm looking forward to speaking at The Rich Web Experience conference in San Jose next month. The event runs from September 7th through 9th.... more»

  • Mark Goodwin

    Web Application Security Specialist

    We've already looked at one of the two big problems posed by anti DNS pinning on Java applets; because there's rebinding on the applet and... more»

  • Scott Davis

    Author of "Groovy Recipes" & TDD Expert

    Every time I see a live show at the Denver Botanic more»

  • Romain Guy

    Java User Interface expert.

    more»

  • Ramnivas Laddad

    Author of AspectJ in Action, Principal at SpringSource

    InfoQ.com has published my AOP myths and realities talk recorded at a No Fluff Just Stuff conference. InfoQ.com founded by Floyd Marine more»

  • David Geary

    Author of Graphic Java and co-author of Core JSF

    The 2006 NFJS tour kicked off t more»

  • Kito Mann

    Editor-in-chief of JSF Central and the author of JSF in Action

    I miss the latest.integration keyword from ivy.... more»

  • Jason Hunter

    Author of Java Servlet Programming

    I just posted the JDOM 1.1 release for download. This release includes about 20 improvements and bug fixes. more»

JavaOne: Ari Zilka on cluster visualization

Posted by: Alex Miller on 05/06/2008

Just saw Ari Zilka’s talk on Cluster Visualization at JavaOne. It leans heavily on Terracotta of course. It was a great presentation because it gave a brief overview on what Terracotta does and then dove into looking at a sample application and using cluster visualization to explore the performance of the app. That includes looking at transactional stats, object flush/fault rates, lock statistics, and more.

We’ve added a ton of new stuff in our most recent 2.6 release to help you understand what’s happening in the cluster, take thread dumps across the cluster with a button push, find bottlenecked locks, record performance data in a session and view the data snapshot later. When our field guys first saw the cluster thread dumping, their jaws dropped. Collecting that info is such a pain for them and customers and now it’s soooo much easier.

I tried to keep track of a bunch of questions that happened during the talk. I missed a few at the beginning but here are the ones I recorded (with answers!):

  • Do changes go peer to peer? - No. Changes go to the active server (1 active server and 0+ passives for hot failover, active/active with striping in work), then are broadcast out to all nodes *that have the object*. Nodes that don’t currently have it don’t need the broadcast.
  • Are clustered locks fair? - In Terracotta 2.5 and earlier locks were fair. If one client and another requested, the other client was granted. In 2.6, locks are now less fair. A client will get another shot at a lock within a short time window - this is less fair but greatly improves performance for highly contended locks. You can tune it or revert to older behavior. The best part was that Ari easily used the visualization tools to prove that locks weren’t fair.
  • Does mutating state of clustered data require locking? - Yes. In the JVM there is no such protection - threads can modify a shared piece of data outside synchronization (creating a data race). In Terracotta, we will throw an exception (UnlockedSharedObjectException) if you try to modify clustered state outside a clustered lock.
  • Are volatiles supported? - Yes. I believe the one caveat with Terracotta is that we require you to mutate volatiles in a synchronized block to create a Terracotta transaction under the hood, which you would not have to do without Terracotta. We could actually automatically insert those memory barriers but that prevents you from specifying lock scope at a more granular level to improve performance. One option we’ve discussed is allowing you to decide whether or not (via some config) to automatically insert volatile barriers. Then you could get it automatically but back off if you needed more granular locking.
  • Is there an application to create the Terracotta XML config file? - Yes, the Terracotta Eclipse plugin does this. You can typically create the configuration without ever touching the xml. Other IDEs may be supported in the future (register, file and vote on JIRAs if you want it).
  • If you have 150 app servers, how does that display in the admin console? - Each app server will show up as a client node in the tree. The Terracotta VisualVM plugin is a bit different as they make different display choices.
  • Does the jvm go back to the server to obtain every lock? - No. It’s easy to show in the visualization tool that uncontended clustered locks are checked out to the node and do not need to talk to the server to otain the lock.
  • Traditional system tracks how systems are given work and finish work. With Terraoctta how do we detect how jvms have gone away and/or whether they’ve finished work? - Terracotta has a JMX API that will fire events when either the Terracotta server or the cluster nodes leave or join the cluster. So you can use these as trigger events into whatever monitoring or API you need. For work completion, the data is actually coherent, so you can be guaranteed that as synchronized blocks complete, those memory transactions are persistent in the server state.

If you’re interested in seeing Terracotta at JavaOne, stop by booth 202 for a demo and to get all your questions answered. Or check out the Terracotta VisualVM plugin at the Sun booth.


be the first to rate this blog


About Alex Miller

Alex Miller is a Sr. Engineer with Terracotta Inc, the makers of the open-source Java clustering product Terracotta. Prior to Terracotta, Alex worked at BEA Systems on the AquaLogic product line and was Chief Architect at MetaMatrix. His interests include Java, concurrency, distributed systems, query languages, and software design. Alex enjoys writing his blog at http://tech.puredanger.com and has spoken at a number of Java user group meetings and conferences.