You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by ri...@apache.org on 2015/07/31 14:24:01 UTC

svn commit: r1693583 [4/9] - in /incubator/brooklyn/site/v: 0.7.0-incubating/concepts/ 0.7.0-incubating/dev/tips/images/ 0.7.0-incubating/ops/ 0.7.0-incubating/ops/catalog/ 0.7.0-incubating/ops/locations/ 0.7.0-incubating/ops/persistence/ 0.7.0-incubat...

Added: incubator/brooklyn/site/v/0.7.0-incubating/ops/troubleshooting/index.html
URL: http://svn.apache.org/viewvc/incubator/brooklyn/site/v/0.7.0-incubating/ops/troubleshooting/index.html?rev=1693583&view=auto
==============================================================================
--- incubator/brooklyn/site/v/0.7.0-incubating/ops/troubleshooting/index.html (added)
+++ incubator/brooklyn/site/v/0.7.0-incubating/ops/troubleshooting/index.html Fri Jul 31 12:23:59 2015
@@ -0,0 +1,814 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+
+
+<head>
+
+    
+<title>Troubleshooting - Apache Brooklyn (incubating)</title>
+
+<meta http-equiv="content-type" content="text/html; charset=utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+
+<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
+<link href="/v/0.7.0-incubating/style/deps/octicons/octicons.css" rel="stylesheet">
+<link href="/v/0.7.0-incubating/style/deps/bootstrap-theme.css" rel="stylesheet">
+
+<link rel="stylesheet" href="/v/0.7.0-incubating/style/css/code.css" type="text/css" media="screen" />
+
+<link href="/v/0.7.0-incubating/style/css/website.css" rel="stylesheet">
+
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
+<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+<script type="text/javascript" src="/v/0.7.0-incubating/style/deps/jquery.cookie.js"></script>
+
+
+</head>
+
+
+<body>
+
+<nav class="navbar navbar-default navbar-fixed-top" id="header" role="navigation">
+    <div class="container-and-sidebars">
+
+        <div class="container-sidebar-left feather">
+          <a href="http://www.apache.org/">
+            <img src="/v/0.7.0-incubating/style/img/feather.png" alt="[Apache]" width="80" class="flip navbar-feather">
+          </a>
+        </div>
+
+        <div class="container container-between-sidebars top-menu">
+          <div class="container-fluid">
+            <!-- Brand and toggle get grouped for better mobile display -->
+            <div class="navbar-header">
+                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
+                    <span class="sr-only">Toggle navigation</span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </button>
+                <a class="navbar-brand" href="/"><img src="/v/0.7.0-incubating/style/img/apache-brooklyn-logo-244px-wide.png" alt="brooklyn"></a>
+            </div>
+
+            <!-- Collect the nav links, forms, and other content for toggling -->
+            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
+                <ul class="nav navbar-nav navbar-right">
+                  
+                   
+                    <li class="dropdown">
+                        <a href="/learnmore/index.html">learn more</a>
+                        <ul class="dropdown-menu" role="menu">
+                            <li>
+                                <a href="/learnmore/index.html">Learn More</a>
+                            </li>
+                            <li class="divider"></li>
+                            
+                              <li>
+                                
+                                <a href="/learnmore/blueprint-tour.html">Blueprint Tour
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/learnmore/features/index.html">Features
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/learnmore/theory.html">Theory
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/learnmore/catalog/index.html">Browse Catalog
+                                  </a>
+                                
+                              </li>
+                            
+                        </ul>
+                    </li>
+                   
+                  
+                   
+                    <li class="">
+                      <a href="/download/index.html">download</a>
+                    </li>
+                   
+                  
+                   
+                    <li class="">
+                      <a href="/v/0.7.0-incubating/start/running.html">get started</a>
+                    </li>
+                   
+                  
+                   
+                    <li class="dropdown active">
+                        <a href="/documentation/index.html">documentation</a>
+                        <ul class="dropdown-menu" role="menu">
+                            <li>
+                                <a href="/documentation/index.html">Documentation</a>
+                            </li>
+                            <li class="divider"></li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/index.html">User Guide
+                                  </a>
+                                
+                                  <div class="dropdown_section_header"><hr></div>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/yaml/creating-yaml.html">YAML Blueprints
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/java/index.html">Java Blueprints
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/ops/index.html">Operations
+                                  </a>
+                                
+                                  <div class="dropdown_section_header"><hr></div>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/dev/index.html">Developer Guide
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                  <div class="dropdown_new_section"><hr></div>
+                                
+                                <a href="/documentation/other-docs.html">Other Resources
+                                  </a>
+                                
+                              </li>
+                            
+                        </ul>
+                    </li>
+                   
+                  
+                   
+                    <li class="dropdown">
+                        <a href="/community/index.html">community</a>
+                        <ul class="dropdown-menu" role="menu">
+                            <li>
+                                <a href="/community/index.html">Community</a>
+                            </li>
+                            <li class="divider"></li>
+                            
+                              <li>
+                                
+                                <a href="/community/mailing-lists.html">Mailing Lists
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/community/irc.html">IRC
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="https://issues.apache.org/jira/browse/BROOKLYN">Bug Tracker (JIRA)
+                                  &nbsp;<span class="octicon octicon-link-external"></span></a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/community/how-to-contribute-docs.html">How to Contribute Documentation
+                                  </a>
+                                
+                              </li>
+                            
+                        </ul>
+                    </li>
+                   
+                  
+                   
+                    <li class="dropdown">
+                        <a href="/developers/index.html">developers</a>
+                        <ul class="dropdown-menu" role="menu">
+                            <li>
+                                <a href="/developers/index.html">Developers</a>
+                            </li>
+                            <li class="divider"></li>
+                            
+                              <li>
+                                
+                                <a href="/developers/how-to-contribute.html">How to Contribute
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/dev/index.html">Developer Guide
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/developers/committers/index.html">Committer Guide
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/developers/code-standards.html">Code Standards
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="http://github.com/apache/incubator-brooklyn">GitHub
+                                  &nbsp;<span class="octicon octicon-link-external"></span></a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="https://issues.apache.org/jira/browse/BROOKLYN">Bug Tracker (JIRA)
+                                  &nbsp;<span class="octicon octicon-link-external"></span></a>
+                                
+                              </li>
+                            
+                        </ul>
+                    </li>
+                   
+                  
+                </ul>
+            </div><!-- /.navbar-collapse -->
+          </div><!-- /.container-fluid -->
+        </div><!-- /.container -->
+        
+        <div class="container-sidebar-right">
+          <div class="navbar-sidebar-right-icons">
+            <a href="https://github.com/apache/incubator-brooklyn" class="navbar-icon navbar-icon-shift icon-github"
+              data-toggle="tooltip" data-placement="bottom" title="GitHub: apache/incubator-brooklyn"/>
+            <a href="https://twitter.com/#!/search?q=brooklyncentral" class="navbar-icon navbar-icon-shift icon-twitter"
+              data-toggle="tooltip" data-placement="bottom" title="Twitter: @brooklyncentral"/>
+            <a href="http://webchat.freenode.net/?channels=brooklyncentral" class="navbar-icon icon-irc"
+              data-toggle="tooltip" data-placement="bottom" title="IRC: freenode #brooklyncentral"/>
+            <!-- extra a element seems needed as landing page seems to copy the last element here (!?) 
+            -->
+            <a href="/" style="width: 0px; height: 0px;"></a>
+         </div>
+      </div>
+      
+  </div>
+</nav>
+
+
+<div class="container" id="main_container">
+    <div class="row">
+        <div class="col-md-9" id="content_container">
+            <div id="page_notes"></div>
+            <h1>Troubleshooting</h1>
+            
+<div class="list-children"><ul>
+
+<li> <a href="/v/0.7.0-incubating/ops/troubleshooting/overview.html">Troubleshooting Overview</a> </li>
+
+<li> <a href="/v/0.7.0-incubating/ops/troubleshooting/deployment.html">Troubleshooting Deployment</a> </li>
+
+<li> <a href="/v/0.7.0-incubating/ops/troubleshooting/connectivity.html">Troubleshooting Server Connectivity Issues in the Cloud</a> </li>
+
+<li> <a href="/v/0.7.0-incubating/ops/troubleshooting/softwareprocess.html">Troubleshooting SoftwareProcess Entities</a> </li>
+
+<li> <a href="/v/0.7.0-incubating/ops/troubleshooting/going-deep-in-java-and-logs.html">Troubleshooting: Going Deep in Java and Logs</a> </li>
+
+</ul></div>
+
+        </div>
+
+        <div class="col-md-3">
+            <div class="list-group side-menu" id="side-menu">
+
+
+
+  
+     
+              
+                  <h4 class=" with_following">
+                    <a href="/v/0.7.0-incubating/index.html" class="list-group-item breadcrumb breadcrumb0">
+                      User Guide
+                      </a></h4>
+              
+                  <h4 class=" with_preceding">
+                    <a href="/v/0.7.0-incubating/ops/index.html" class="list-group-item breadcrumb breadcrumb1">
+                      Operations
+                      </a></h4>
+              
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/requirements.html" class="list-group-item">Requirements
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/install-on-server.html" class="list-group-item">Installing Brooklyn
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/launch.html" class="list-group-item">Launching Brooklyn
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/brooklyn_properties.html" class="list-group-item">brooklyn.properties
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/locations/index.html" class="list-group-item">Locations
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/persistence/index.html" class="list-group-item">Persistence
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/high-availability.html" class="list-group-item">High Availability
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/catalog/index.html" class="list-group-item">Catalog
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/logging.html" class="list-group-item">Logging
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/troubleshooting/index.html" class="list-group-item active with-sub-item">Troubleshooting
+                    </a>
+                  <div class="sub-item">
+                    
+                      
+                      <a href="/v/0.7.0-incubating/ops/troubleshooting/overview.html" class="list-group-item sub-item " >
+                        Overview
+                        </a>
+                    
+                      
+                      <a href="/v/0.7.0-incubating/ops/troubleshooting/deployment.html" class="list-group-item sub-item " >
+                        Deployment
+                        </a>
+                    
+                      
+                      <a href="/v/0.7.0-incubating/ops/troubleshooting/connectivity.html" class="list-group-item sub-item " >
+                        Server Connectivity
+                        </a>
+                    
+                      
+                      <a href="/v/0.7.0-incubating/ops/troubleshooting/softwareprocess.html" class="list-group-item sub-item " >
+                        SoftwareProcess Entities
+                        </a>
+                    
+                      
+                      <a href="/v/0.7.0-incubating/ops/troubleshooting/going-deep-in-java-and-logs.html" class="list-group-item sub-item " >
+                        Going Deep in Java and Logs
+                        </a>
+                    
+                  </div>
+                
+              
+        
+        
+  
+
+        
+</div>
+<div id="width_reference"></div>
+
+
+<script language="JavaScript" type="application/javascript">
+
+ 
+sidemenu_x_sizer=function(){ $('#side-menu').width($('#side-menu').parent().find('#width_reference').outerWidth()); };
+$(sidemenu_x_sizer);
+$(window).resize(sidemenu_x_sizer);
+
+ 
+sidemenu_y_nonfloater=function(){
+  if ($('#side-menu').outerHeight(true) + $('#header').outerHeight(true) + $('#footer').outerHeight(true) > window.innerHeight ||
+      $('#side-menu').width() >= $('#content_container').width()/2) {
+    $('#side-menu').css('position', 'inherit');
+  } else {
+    // restore if screen has grown
+    $('#side-menu').css('position', 'fixed');
+  }
+};
+$(sidemenu_y_nonfloater);
+$(window).resize(sidemenu_y_nonfloater);
+
+ 
+
+var sideMenu = $("#side-menu"),
+    sideItems = sideMenu.find("a"),
+    // Anchors corresponding to menu items
+    scrollItems = sideItems.map(function(){
+      var item = $(this).attr("section-target");
+      if (item && item.length) { return item; }
+    });
+
+var highlight_section_last_top = -1;
+var highlight_section_completed = false;
+
+var highlight_section = function() {
+   // Get container scroll position
+   var highlight_section_new_top = $(this).scrollTop();
+   if (highlight_section_new_top == highlight_section_last_top) return;
+   var highlight_section_new_bottom = highlight_section_new_top + $(window).height();
+   var scroll_advancing = (highlight_section_new_top > highlight_section_last_top);
+
+   var last_item = null, active_item = $("#side-menu a.section#active");
+   
+   var found_top = false;
+   var displayable_items = scrollItems.map(function(itemI){
+     item = $(scrollItems[itemI]);
+     if (item && item.length) {
+       if (highlight_section_last_top == -1 || !highlight_section_completed) {
+         // just opening page - take item matching hash, or otherwise the first item visible
+         if (item.selector === window.location.hash || (item.offset().top > highlight_section_new_top - 20 && !found_top)) {
+           found_top = true;
+           if (item.selector === window.location.hash && item.offset().top < highlight_section_new_top + 60) {
+             // because of our top header, we need to scroll 64px down from any link
+             $('html, body').animate({scrollTop: item.offset().top - 64}, 0);
+           }
+           return item;
+         }
+       } else if (scroll_advancing) {
+         // if scrolling advance, pick up a section when title starts before 1/3 height 
+         if (item.offset().top < highlight_section_new_top + $(window).height()/3)
+           return item;
+           
+         // or if containing div is finished (usu the whole main content)
+         div_containing_item = item.closest("div");
+         if (div_containing_item.offset().top + div_containing_item.height() < highlight_section_new_bottom + 15)
+           return item;
+         // or when next title is visible
+         if (last_item && item.offset().top < highlight_section_new_bottom + 15)
+           return last_item;
+       } else {
+         // if scrolling back, pick up a section as soon as the title is visible,
+         if (item.offset().top < highlight_section_new_top)
+           return item;
+         // or if title is before the 2/3 point
+         // (not sure about this, probably want also to have 
+         // "AND the id.top is <= displayable_itemsrent_active_it.top" so we don't jump FORWARD a section
+         // when scrolling BACK, with lots of tiny sections) 
+         if ((item.offset().top < highlight_section_new_top + 2*$(window).height()/3)
+             && (!active_item || !active_item.offset() || active_item.offset().top >= item.offset().top))
+           return item;
+         
+       }
+       last_item = item;
+     }
+   });
+   if (!highlight_section_completed && document.readyState === "complete") {
+     highlight_section_completed = true;
+   }
+   if (!displayable_items.length) {
+     $("#side-menu a.section").removeClass("active");
+   } else {
+     displayable_items = displayable_items[displayable_items.length-1];
+     var id = displayable_items && displayable_items.length ? displayable_items[0].id : "";
+   // Set/remove active class
+     new_active = $("#side-menu a.section").filter("[section-target='#"+id+"']");
+     if (new_active.hasClass("active")) {
+       // nothing needed
+     } else {
+       $("#side-menu a.section").removeClass("active");
+       $("#side-menu a.section").filter("[section-target='#"+id+"']").addClass("active");
+     }
+   }
+   
+   highlight_section_last_top = highlight_section_new_top;
+};
+var highlight_new_section = function() {
+  highlight_section_completed = false;
+  highlight_section_last_top = -1;
+  highlight_section();
+}
+
+$(window).scroll(highlight_section);
+$(highlight_new_section);
+
+// detect link change - courtesy http://www.bennadel.com/blog/1520-binding-events-to-non-dom-objects-with-jquery.htm
+    (
+        function( $ ){
+            // Default to the current location.
+            var strLocation = window.location.href;
+            var strHash = window.location.hash;
+            var strPrevLocation = "";
+            var strPrevHash = "";
+
+            // This is how often we will be checkint for
+            // changes on the location.
+            var intIntervalTime = 100;
+
+            // This method removes the pound from the hash.
+            var fnCleanHash = function( strHash ){
+                return(
+                    strHash.substring( 1, strHash.length )
+                    );
+            }
+
+            // This will be the method that we use to check
+            // changes in the window location.
+            var fnCheckLocation = function(){
+                // Check to see if the location has changed.
+                if (strLocation != window.location.href){
+
+                    // Store the new and previous locations.
+                    strPrevLocation = strLocation;
+                    strPrevHash = strHash;
+                    strLocation = window.location.href;
+                    strHash = window.location.hash;
+
+                    // The location has changed. Trigger a
+                    // change event on the location object,
+                    // passing in the current and previous
+                    // location values.
+                    $( window.location ).trigger(
+                        "change",
+                        {
+                            currentHref: strLocation,
+                            currentHash: fnCleanHash( strHash ),
+                            previousHref: strPrevLocation,
+                            previousHash: fnCleanHash( strPrevHash )
+                        }
+                        );
+
+                }
+            }
+
+            // Set an interval to check the location changes.
+            setInterval( fnCheckLocation, intIntervalTime );
+        }
+    )( jQuery );
+// and trigger highlight section on link change
+$(window.location).bind("change", highlight_new_section);
+
+</script>
+
+        </div>
+    </div>
+</div>
+
+<div id="footer">
+    <div class="container">
+        <div class="row">
+            <div class="col-md-10 text-muted">
+                Apache Brooklyn is distributed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache
+                License v2.0</a>.
+                <br />
+                Apache Brooklyn is currently undergoing Incubation at The Apache Software
+                Foundation.
+            </div>
+            <div class="col-md-2">
+                <a class="btn btn-sm btn-default" href="https://github.com/apache/incubator-brooklyn/edit/master/docs/guide/ops/troubleshooting/index.md">Edit This Page</a>
+                <a href="http://0.0.0.0:4000/community/how-to-contribute-docs.html"
+                    data-toggle="tooltip" data-placement="top" title="How to Edit Documentation" data-delay="400"/>
+                  <span class="octicon octicon-question octicon-footer"></span>
+                </a>
+            </div>
+        </div>
+    </div>
+</div>
+
+
+
+
+
+<script src="//cdnjs.cloudflare.com/ajax/libs/zeroclipboard/1.3.1/ZeroClipboard.min.js"></script>
+
+<script language="JavaScript" type="application/javascript">
+    fix_padding_function = function () { 
+        $('body').css('padding-top', parseInt($('#header').css("height"))+10);
+        $('body').css('padding-bottom', parseInt($('#footer').css("height"))+10);
+    };
+    $(window).resize(fix_padding_function);
+    $(window).load(fix_padding_function);
+    
+    $(function () {
+        $('[data-toggle="tooltip"]').tooltip({ delay: { show: 600, hide: 100 }})
+    });
+    
+/* generate anchors for headers, a la github and http://blog.parkermoore.de/2014/08/01/header-anchor-links-in-vanilla-javascript-for-github-pages-and-jekyll/ */
+var anchorForId = function (id, text) {
+  var anchor = document.createElement("a");
+  anchor.className = "header-link";
+  anchor.href      = "#" + id;
+  anchor.innerHTML = "<i class=\"fa fa-link\"></i>";
+  return anchor;
+};
+
+var linkifyAnchors = function (level, containingElement) {
+  var headers = contentBlock.find("h" + level);
+  for (var h = 0; h < headers.length; h++) {
+    var header = headers[h];
+    if (typeof header.id !== "undefined" && header.id !== "") {
+      header.appendChild(anchorForId(header.id, $(header).text()));
+    }
+  }
+};
+
+$(function () {
+    contentBlock = $("#content_container");
+    if (!contentBlock) return;
+    for (var level = 1; level <= 6; level++) {
+      linkifyAnchors(level, contentBlock);
+    }
+});
+
+<!-- Clipboard support -->
+  ZeroClipboard.config({ moviePath: '//cdnjs.cloudflare.com/ajax/libs/zeroclipboard/1.3.1/ZeroClipboard.swf' });
+
+$(function() {
+  $('div.highlight').prepend(
+  $('<div class="clipboard_container" title="Copy to Clipboard">'+
+    '<div class="fa clipboard_button">'+
+    '<div class="on-active"><div>Copied to Clipboard</div></div>'+
+  '</div></div>'));
+  $('div.clipboard_container').each(function(index) {
+    var clipboard = new ZeroClipboard();
+    clipboard.clip( $(this).find(":first")[0], $(this)[0] );
+    var target = $(this).next();
+    var txt = target.text().trim();
+    if (target.find('code.bash')) {
+      // Strip out bash prompts from the start of each line (i.e. '$' or '%' characters
+      // at the very start, or immediately following any newline). Correctly handles continuation
+      // lines, where a leading '$' or '%' is *not* a prompt character.
+      txt = txt.replace(/(^|[^\\]\n)[$%] /g, "$1");
+    }
+    clipboard.on( 'dataRequested', function (client, args) {
+      client.setText( txt );
+    });
+  });
+});
+
+<!-- search -->
+    $(function() {
+        $('#simple_google')
+            .submit(function() {
+                $('input[name="q"]').val("site:" + document.location.hostname + " " + $('input[name="brooklyn-search"]').val());
+            return true;
+            });
+        $('input[name="brooklyn-search"]').focus(function() {
+                if ($(this).val() === $(this).attr('placeholder')) {
+                    $(this).val('');
+                }
+            })
+            .blur(function() {
+                if ($(this).val() === '') {
+                    $(this).val($(this).attr('placeholder'));
+                }
+            })
+            .blur();
+    });
+
+
+ <!-- analytics -->
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-30530918-1']);
+    _gaq.push(['_trackPageview']);
+    
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+
+<!-- page warning (for archive pages) -->
+
+ 
+    $(function() {
+        if (document.location.pathname.replace(/^\/([^\/]*).*$/, '$1') === "v"){
+            var thisversion = document.location.pathname.split("/")[2],
+                msg = "";
+            if (thisversion != 'latest' && (!$.cookie('brooklyn_versions') || 
+                    (($.inArray('ALL', $.cookie('brooklyn_versions').split(",")) === -1) &&
+                    ($.inArray(thisversion, $.cookie('brooklyn_versions').split(",")) === -1))) ){
+                msg += "<div class='warning_banner_image'><img src='/v/0.7.0-incubating/style/img/warning.png'/></div>";
+                msg += "<p>You are browsing the archive site for version <strong>"+thisversion+"</strong>.</p>";
+                if (thisversion.indexOf("SNAPSHOT") >= 0) {
+                  msg += "<p>Note that SNAPSHOT versions have not been voted on and are not endorsed by the Apache Software Foundation.</p>";
+                  msg += "<p>Do you understand and accept the risks?</p>";
+                } else {
+                  msg += "<p>Is this deliberate?</p>";
+                }
+                msg += "<center><p class='warning_banner_buttons'>";
+                msg += "<a href = 'javascript:void(0);' onclick=\"set_user_version('"+thisversion+"');\">Yes, hide this warning</a>";
+                msg += "<a href = '/v/latest/'>No, take me to the latest version guide</a>";
+                msg += "<a href = '/meta/versions.html'>Show all versions</a>";
+                msg += "</p></center>"
+                            
+                $('#page_notes').html(msg);
+                $('#page_notes').fadeIn('slow');
+            }
+        }
+    });
+
+    function get_user_versions() {
+        return $.cookie("brooklyn_versions") ? $.cookie("brooklyn_versions").split(",") : [];
+    };
+    function set_user_version(version) {
+        var version_cookie = get_user_versions();
+        version_cookie.push(version);
+        $.cookie('brooklyn_versions', version_cookie, { expires: 365, path: '/' });
+        $('#page_notes').fadeOut();
+        event.preventDefault ? event.preventDefault() : event.returnValue = false;
+    };
+    function set_user_versions_all() {
+        var version_cookie = get_user_versions();
+        version_cookie.push("ALL");
+        $.cookie('brooklyn_versions', version_cookie, { expires: 365, path: '/' });
+        $('#page_notes').fadeOut();
+        event.preventDefault ? event.preventDefault() : event.returnValue = false;
+    };
+    function clear_user_versions() {
+        $.removeCookie('brooklyn_versions', { path: '/' });
+        $('#page_notes').fadeIn('slow');
+        event.preventDefault ? event.preventDefault() : event.returnValue = false;
+    };
+
+</script>
+
+</body>
+
+</html>

Added: incubator/brooklyn/site/v/0.7.0-incubating/ops/troubleshooting/overview.html
URL: http://svn.apache.org/viewvc/incubator/brooklyn/site/v/0.7.0-incubating/ops/troubleshooting/overview.html?rev=1693583&view=auto
==============================================================================
--- incubator/brooklyn/site/v/0.7.0-incubating/ops/troubleshooting/overview.html (added)
+++ incubator/brooklyn/site/v/0.7.0-incubating/ops/troubleshooting/overview.html Fri Jul 31 12:23:59 2015
@@ -0,0 +1,853 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+
+
+<head>
+
+    
+<title>Troubleshooting Overview - Apache Brooklyn (incubating)</title>
+
+<meta http-equiv="content-type" content="text/html; charset=utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+
+<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
+<link href="/v/0.7.0-incubating/style/deps/octicons/octicons.css" rel="stylesheet">
+<link href="/v/0.7.0-incubating/style/deps/bootstrap-theme.css" rel="stylesheet">
+
+<link rel="stylesheet" href="/v/0.7.0-incubating/style/css/code.css" type="text/css" media="screen" />
+
+<link href="/v/0.7.0-incubating/style/css/website.css" rel="stylesheet">
+
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
+<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+<script type="text/javascript" src="/v/0.7.0-incubating/style/deps/jquery.cookie.js"></script>
+
+
+</head>
+
+
+<body>
+
+<nav class="navbar navbar-default navbar-fixed-top" id="header" role="navigation">
+    <div class="container-and-sidebars">
+
+        <div class="container-sidebar-left feather">
+          <a href="http://www.apache.org/">
+            <img src="/v/0.7.0-incubating/style/img/feather.png" alt="[Apache]" width="80" class="flip navbar-feather">
+          </a>
+        </div>
+
+        <div class="container container-between-sidebars top-menu">
+          <div class="container-fluid">
+            <!-- Brand and toggle get grouped for better mobile display -->
+            <div class="navbar-header">
+                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
+                    <span class="sr-only">Toggle navigation</span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </button>
+                <a class="navbar-brand" href="/"><img src="/v/0.7.0-incubating/style/img/apache-brooklyn-logo-244px-wide.png" alt="brooklyn"></a>
+            </div>
+
+            <!-- Collect the nav links, forms, and other content for toggling -->
+            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
+                <ul class="nav navbar-nav navbar-right">
+                  
+                   
+                    <li class="dropdown">
+                        <a href="/learnmore/index.html">learn more</a>
+                        <ul class="dropdown-menu" role="menu">
+                            <li>
+                                <a href="/learnmore/index.html">Learn More</a>
+                            </li>
+                            <li class="divider"></li>
+                            
+                              <li>
+                                
+                                <a href="/learnmore/blueprint-tour.html">Blueprint Tour
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/learnmore/features/index.html">Features
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/learnmore/theory.html">Theory
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/learnmore/catalog/index.html">Browse Catalog
+                                  </a>
+                                
+                              </li>
+                            
+                        </ul>
+                    </li>
+                   
+                  
+                   
+                    <li class="">
+                      <a href="/download/index.html">download</a>
+                    </li>
+                   
+                  
+                   
+                    <li class="">
+                      <a href="/v/0.7.0-incubating/start/running.html">get started</a>
+                    </li>
+                   
+                  
+                   
+                    <li class="dropdown active">
+                        <a href="/documentation/index.html">documentation</a>
+                        <ul class="dropdown-menu" role="menu">
+                            <li>
+                                <a href="/documentation/index.html">Documentation</a>
+                            </li>
+                            <li class="divider"></li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/index.html">User Guide
+                                  </a>
+                                
+                                  <div class="dropdown_section_header"><hr></div>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/yaml/creating-yaml.html">YAML Blueprints
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/java/index.html">Java Blueprints
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/ops/index.html">Operations
+                                  </a>
+                                
+                                  <div class="dropdown_section_header"><hr></div>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/dev/index.html">Developer Guide
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                  <div class="dropdown_new_section"><hr></div>
+                                
+                                <a href="/documentation/other-docs.html">Other Resources
+                                  </a>
+                                
+                              </li>
+                            
+                        </ul>
+                    </li>
+                   
+                  
+                   
+                    <li class="dropdown">
+                        <a href="/community/index.html">community</a>
+                        <ul class="dropdown-menu" role="menu">
+                            <li>
+                                <a href="/community/index.html">Community</a>
+                            </li>
+                            <li class="divider"></li>
+                            
+                              <li>
+                                
+                                <a href="/community/mailing-lists.html">Mailing Lists
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/community/irc.html">IRC
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="https://issues.apache.org/jira/browse/BROOKLYN">Bug Tracker (JIRA)
+                                  &nbsp;<span class="octicon octicon-link-external"></span></a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/community/how-to-contribute-docs.html">How to Contribute Documentation
+                                  </a>
+                                
+                              </li>
+                            
+                        </ul>
+                    </li>
+                   
+                  
+                   
+                    <li class="dropdown">
+                        <a href="/developers/index.html">developers</a>
+                        <ul class="dropdown-menu" role="menu">
+                            <li>
+                                <a href="/developers/index.html">Developers</a>
+                            </li>
+                            <li class="divider"></li>
+                            
+                              <li>
+                                
+                                <a href="/developers/how-to-contribute.html">How to Contribute
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/v/0.7.0-incubating/dev/index.html">Developer Guide
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/developers/committers/index.html">Committer Guide
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="/developers/code-standards.html">Code Standards
+                                  </a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="http://github.com/apache/incubator-brooklyn">GitHub
+                                  &nbsp;<span class="octicon octicon-link-external"></span></a>
+                                
+                              </li>
+                            
+                              <li>
+                                
+                                <a href="https://issues.apache.org/jira/browse/BROOKLYN">Bug Tracker (JIRA)
+                                  &nbsp;<span class="octicon octicon-link-external"></span></a>
+                                
+                              </li>
+                            
+                        </ul>
+                    </li>
+                   
+                  
+                </ul>
+            </div><!-- /.navbar-collapse -->
+          </div><!-- /.container-fluid -->
+        </div><!-- /.container -->
+        
+        <div class="container-sidebar-right">
+          <div class="navbar-sidebar-right-icons">
+            <a href="https://github.com/apache/incubator-brooklyn" class="navbar-icon navbar-icon-shift icon-github"
+              data-toggle="tooltip" data-placement="bottom" title="GitHub: apache/incubator-brooklyn"/>
+            <a href="https://twitter.com/#!/search?q=brooklyncentral" class="navbar-icon navbar-icon-shift icon-twitter"
+              data-toggle="tooltip" data-placement="bottom" title="Twitter: @brooklyncentral"/>
+            <a href="http://webchat.freenode.net/?channels=brooklyncentral" class="navbar-icon icon-irc"
+              data-toggle="tooltip" data-placement="bottom" title="IRC: freenode #brooklyncentral"/>
+            <!-- extra a element seems needed as landing page seems to copy the last element here (!?) 
+            -->
+            <a href="/" style="width: 0px; height: 0px;"></a>
+         </div>
+      </div>
+      
+  </div>
+</nav>
+
+
+<div class="container" id="main_container">
+    <div class="row">
+        <div class="col-md-9" id="content_container">
+            <div id="page_notes"></div>
+            <h1>Troubleshooting Overview</h1>
+            <p>This guide describes sources of information for understanding when things go wrong.</p>
+
+<p>Whether you’re customizing out-of-the-box blueprints, or developing your own custom blueprints, you will
+inevitably have to deal with entity failure. Thankfully Brooklyn provides plenty of information to help 
+you locate and resolve any issues you may encounter.</p>
+
+<h2 id="web-console-runtime-error-information">Web-console Runtime Error Information</h2>
+
+<h3 id="entity-hierarchy">Entity Hierarchy</h3>
+
+<p>The Brooklyn web-console includes a tree view of the entities within an application. Errors within the
+application are represented visually, showing a “fire” image on the entity.</p>
+
+<p>When an error causes an entire application to be unexpectedly down, the error is generally propagated to the
+top-level entity - i.e. marking it as “on fire”. To find the underlying error, one should expand the entity
+hierarchy tree to find the specific entities that have actually failed.</p>
+
+<h3 id="entitys-error-status">Entity’s Error Status</h3>
+
+<p>Many entities have some common sensors (i.e. attributes) that give details of the error status:</p>
+
+<ul>
+  <li><code>service.isUp</code> (often referred to as “service up”) is a boolean, saying whether the service is up. For many 
+software processes, this is inferred from whether the “service.notUp.indicators” is empty. It is also
+possible for some entities to set this attribute directly.</li>
+  <li><code>service.notUp.indicators</code> is a map of errors. This often gives much more information than the single 
+<code>service.isUp</code> attribute. For example, there may be many health-check indicators for a component: 
+is the root URL reachable, it the management api reporting healthy, is the process running, etc.</li>
+  <li><code>service.problems</code> is a map of namespaced indicators of problems with a service.</li>
+  <li><code>service.state</code> is the actual state of the service - e.g. CREATED, STARTING, RUNNING, STOPPING, STOPPED, 
+DESTROYED and ON_FIRE.</li>
+  <li><code>service.state.expected</code> indicates the state the service is expected to be in (and when it transitioned to that).
+For example, is the service expected to be starting, running, stopping, etc.</li>
+</ul>
+
+<p>These sensor values are shown in the “sensors” tab - see below.</p>
+
+<h3 id="sensors-view">Sensors View</h3>
+
+<p>The “Sensors” tab in the Brooklyn web-console shows the attribute values of a particular entity.
+This gives lots of runtime information, including about the health of the entity - the 
+set of attributes will vary between different entity types.</p>
+
+<p><a href="images/jmx-sensors-large.png"><img src="images/jmx-sensors.png" alt="Sensors view in the Brooklyn debug console." /></a></p>
+
+<p>Note that null (or not set) sensors are hidden by default. You can click on the <code>Show/hide empty records</code> 
+icon (highlighted in yellow above) to see these sensors as well.</p>
+
+<p>The sensors view is also tabulated. You can configure the numbers of sensors shown per page 
+(at the bottom). There is also a search bar (at the top) to filter the sensors shown.</p>
+
+<h3 id="activity-view">Activity View</h3>
+
+<p>The activity view shows the tasks executed by a given entity. The top-level tasks are the effectors
+(i.e. operations) invoked on that entity. This view allows one to drill into the task, to 
+see details of errors.</p>
+
+<p>Select the entity, and then click on the <code>Activities</code> tab.</p>
+
+<p>In the table showing the tasks, each row is a link - clicking on the row will drill into the details of that task, 
+including sub-tasks:</p>
+
+<p><a href="images/failed-task-large.png"><img src="images/failed-task.png" alt="Task failure error in the Brooklyn debug console." /></a></p>
+
+<p>For ssh tasks, this allows one to drill down to see the env, stdin, stdout and stderr. That is, you can see the
+commands executed (stdin) and environment variables (env), and the output from executing that (stdout and stderr). </p>
+
+<p>For tasks that did not fail, one can still drill into the tasks to see what was done.</p>
+
+<p>It’s always worth looking at the Detailed Status section as sometimes that will give you the information you need.
+For example, it can show the exception stack trace in the thread that was executing the task that failed.</p>
+
+<h2 id="log-files">Log Files</h2>
+
+<p>Brooklyn’s logging is configurable, for the files created, the logging levels, etc. 
+See <a href="../logging.html">Logging docs</a>.</p>
+
+<p>With out-of-the-box logging, <code>brooklyn.info.log</code> and <code>brooklyn.debug.log</code> files are created. These are by default 
+rolling log files: when the log reaches a given size, it is compressed and a new log file is started.
+Therefore check the timestamps of the log files to ensure you are looking in the correct file for the 
+time of your error.</p>
+
+<p>With out-of-the-box logging, info, warnings and errors are written to the <code>brooklyn.info.log</code> file. This gives
+a summary of the important actions and errors. However, it does not contain full stacktraces for errors.</p>
+
+<p>To find the exception, we’ll need to look in Brooklyn’s debug log file. By default, the debug log file
+is named <code>brooklyn.debug.log</code>. You can use your favourite tools for viewing large text files. </p>
+
+<p>One possible tool is <code>less</code>, e.g. <code>less brooklyn.debug.log</code>. We can quickly find the last exception 
+by navigating to the end of the log file (using <code>Shift-G</code>), then performing a reverse-lookup by typing <code>?Exception</code> 
+and pressing <code>Enter</code>. Sometimes an error results in multiple exceptions being logged (e.g. first for the
+entity, then for the cluster, then for the app). If you know the text of the error message (e.g. copy-pasted
+from the Activities view of the web-console) then one can search explicitly for that text.</p>
+
+<p>The <code>grep</code> command is also extremely helpful. Useful things to grep for include:</p>
+
+<ul>
+  <li>The entity id (see the “summary” tab of the entity in the web-console for the id).</li>
+  <li>The entity type name (if there are only a small number of entities of that type). </li>
+  <li>The VM IP address.</li>
+  <li>A particular error message (e.g. copy-pasted from the Activities view of the web-console).</li>
+  <li>The word WARN etc, such as <code>grep -E "WARN|ERROR" brooklyn.info.log</code>.</li>
+</ul>
+
+<p>Grep’ing for particular log messages is also useful. Some examples are shown below:</p>
+
+<ul>
+  <li>INFO: “Started application”, “Stopping application” and “Stopped application”</li>
+  <li>INFO: “Creating VM “</li>
+  <li>DEBUG: “Finished VM “</li>
+</ul>
+
+        </div>
+
+        <div class="col-md-3">
+            <div class="list-group side-menu" id="side-menu">
+
+
+
+  
+     
+              
+                  <h4 class=" with_following">
+                    <a href="/v/0.7.0-incubating/index.html" class="list-group-item breadcrumb breadcrumb0">
+                      User Guide
+                      </a></h4>
+              
+                  <h4 class=" with_preceding with_following">
+                    <a href="/v/0.7.0-incubating/ops/index.html" class="list-group-item breadcrumb breadcrumb1">
+                      Operations
+                      </a></h4>
+              
+                  <h4 class=" with_preceding">
+                    <a href="/v/0.7.0-incubating/ops/troubleshooting/index.html" class="list-group-item breadcrumb breadcrumb2">
+                      Troubleshooting
+                      </a></h4>
+              
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/troubleshooting/overview.html" class="list-group-item active">Overview
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/troubleshooting/deployment.html" class="list-group-item">Deployment
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/troubleshooting/connectivity.html" class="list-group-item">Server Connectivity
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/troubleshooting/softwareprocess.html" class="list-group-item">SoftwareProcess Entities
+                    </a>
+                
+              
+                 
+                
+                  
+                  <a href="/v/0.7.0-incubating/ops/troubleshooting/going-deep-in-java-and-logs.html" class="list-group-item">Going Deep in Java and Logs
+                    </a>
+                
+              
+        
+        
+  
+
+        
+</div>
+<div id="width_reference"></div>
+
+
+<script language="JavaScript" type="application/javascript">
+
+ 
+sidemenu_x_sizer=function(){ $('#side-menu').width($('#side-menu').parent().find('#width_reference').outerWidth()); };
+$(sidemenu_x_sizer);
+$(window).resize(sidemenu_x_sizer);
+
+ 
+sidemenu_y_nonfloater=function(){
+  if ($('#side-menu').outerHeight(true) + $('#header').outerHeight(true) + $('#footer').outerHeight(true) > window.innerHeight ||
+      $('#side-menu').width() >= $('#content_container').width()/2) {
+    $('#side-menu').css('position', 'inherit');
+  } else {
+    // restore if screen has grown
+    $('#side-menu').css('position', 'fixed');
+  }
+};
+$(sidemenu_y_nonfloater);
+$(window).resize(sidemenu_y_nonfloater);
+
+ 
+
+var sideMenu = $("#side-menu"),
+    sideItems = sideMenu.find("a"),
+    // Anchors corresponding to menu items
+    scrollItems = sideItems.map(function(){
+      var item = $(this).attr("section-target");
+      if (item && item.length) { return item; }
+    });
+
+var highlight_section_last_top = -1;
+var highlight_section_completed = false;
+
+var highlight_section = function() {
+   // Get container scroll position
+   var highlight_section_new_top = $(this).scrollTop();
+   if (highlight_section_new_top == highlight_section_last_top) return;
+   var highlight_section_new_bottom = highlight_section_new_top + $(window).height();
+   var scroll_advancing = (highlight_section_new_top > highlight_section_last_top);
+
+   var last_item = null, active_item = $("#side-menu a.section#active");
+   
+   var found_top = false;
+   var displayable_items = scrollItems.map(function(itemI){
+     item = $(scrollItems[itemI]);
+     if (item && item.length) {
+       if (highlight_section_last_top == -1 || !highlight_section_completed) {
+         // just opening page - take item matching hash, or otherwise the first item visible
+         if (item.selector === window.location.hash || (item.offset().top > highlight_section_new_top - 20 && !found_top)) {
+           found_top = true;
+           if (item.selector === window.location.hash && item.offset().top < highlight_section_new_top + 60) {
+             // because of our top header, we need to scroll 64px down from any link
+             $('html, body').animate({scrollTop: item.offset().top - 64}, 0);
+           }
+           return item;
+         }
+       } else if (scroll_advancing) {
+         // if scrolling advance, pick up a section when title starts before 1/3 height 
+         if (item.offset().top < highlight_section_new_top + $(window).height()/3)
+           return item;
+           
+         // or if containing div is finished (usu the whole main content)
+         div_containing_item = item.closest("div");
+         if (div_containing_item.offset().top + div_containing_item.height() < highlight_section_new_bottom + 15)
+           return item;
+         // or when next title is visible
+         if (last_item && item.offset().top < highlight_section_new_bottom + 15)
+           return last_item;
+       } else {
+         // if scrolling back, pick up a section as soon as the title is visible,
+         if (item.offset().top < highlight_section_new_top)
+           return item;
+         // or if title is before the 2/3 point
+         // (not sure about this, probably want also to have 
+         // "AND the id.top is <= displayable_itemsrent_active_it.top" so we don't jump FORWARD a section
+         // when scrolling BACK, with lots of tiny sections) 
+         if ((item.offset().top < highlight_section_new_top + 2*$(window).height()/3)
+             && (!active_item || !active_item.offset() || active_item.offset().top >= item.offset().top))
+           return item;
+         
+       }
+       last_item = item;
+     }
+   });
+   if (!highlight_section_completed && document.readyState === "complete") {
+     highlight_section_completed = true;
+   }
+   if (!displayable_items.length) {
+     $("#side-menu a.section").removeClass("active");
+   } else {
+     displayable_items = displayable_items[displayable_items.length-1];
+     var id = displayable_items && displayable_items.length ? displayable_items[0].id : "";
+   // Set/remove active class
+     new_active = $("#side-menu a.section").filter("[section-target='#"+id+"']");
+     if (new_active.hasClass("active")) {
+       // nothing needed
+     } else {
+       $("#side-menu a.section").removeClass("active");
+       $("#side-menu a.section").filter("[section-target='#"+id+"']").addClass("active");
+     }
+   }
+   
+   highlight_section_last_top = highlight_section_new_top;
+};
+var highlight_new_section = function() {
+  highlight_section_completed = false;
+  highlight_section_last_top = -1;
+  highlight_section();
+}
+
+$(window).scroll(highlight_section);
+$(highlight_new_section);
+
+// detect link change - courtesy http://www.bennadel.com/blog/1520-binding-events-to-non-dom-objects-with-jquery.htm
+    (
+        function( $ ){
+            // Default to the current location.
+            var strLocation = window.location.href;
+            var strHash = window.location.hash;
+            var strPrevLocation = "";
+            var strPrevHash = "";
+
+            // This is how often we will be checkint for
+            // changes on the location.
+            var intIntervalTime = 100;
+
+            // This method removes the pound from the hash.
+            var fnCleanHash = function( strHash ){
+                return(
+                    strHash.substring( 1, strHash.length )
+                    );
+            }
+
+            // This will be the method that we use to check
+            // changes in the window location.
+            var fnCheckLocation = function(){
+                // Check to see if the location has changed.
+                if (strLocation != window.location.href){
+
+                    // Store the new and previous locations.
+                    strPrevLocation = strLocation;
+                    strPrevHash = strHash;
+                    strLocation = window.location.href;
+                    strHash = window.location.hash;
+
+                    // The location has changed. Trigger a
+                    // change event on the location object,
+                    // passing in the current and previous
+                    // location values.
+                    $( window.location ).trigger(
+                        "change",
+                        {
+                            currentHref: strLocation,
+                            currentHash: fnCleanHash( strHash ),
+                            previousHref: strPrevLocation,
+                            previousHash: fnCleanHash( strPrevHash )
+                        }
+                        );
+
+                }
+            }
+
+            // Set an interval to check the location changes.
+            setInterval( fnCheckLocation, intIntervalTime );
+        }
+    )( jQuery );
+// and trigger highlight section on link change
+$(window.location).bind("change", highlight_new_section);
+
+</script>
+
+        </div>
+    </div>
+</div>
+
+<div id="footer">
+    <div class="container">
+        <div class="row">
+            <div class="col-md-10 text-muted">
+                Apache Brooklyn is distributed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache
+                License v2.0</a>.
+                <br />
+                Apache Brooklyn is currently undergoing Incubation at The Apache Software
+                Foundation.
+            </div>
+            <div class="col-md-2">
+                <a class="btn btn-sm btn-default" href="https://github.com/apache/incubator-brooklyn/edit/master/docs/guide/ops/troubleshooting/overview.md">Edit This Page</a>
+                <a href="http://0.0.0.0:4000/community/how-to-contribute-docs.html"
+                    data-toggle="tooltip" data-placement="top" title="How to Edit Documentation" data-delay="400"/>
+                  <span class="octicon octicon-question octicon-footer"></span>
+                </a>
+            </div>
+        </div>
+    </div>
+</div>
+
+
+
+
+
+<script src="//cdnjs.cloudflare.com/ajax/libs/zeroclipboard/1.3.1/ZeroClipboard.min.js"></script>
+
+<script language="JavaScript" type="application/javascript">
+    fix_padding_function = function () { 
+        $('body').css('padding-top', parseInt($('#header').css("height"))+10);
+        $('body').css('padding-bottom', parseInt($('#footer').css("height"))+10);
+    };
+    $(window).resize(fix_padding_function);
+    $(window).load(fix_padding_function);
+    
+    $(function () {
+        $('[data-toggle="tooltip"]').tooltip({ delay: { show: 600, hide: 100 }})
+    });
+    
+/* generate anchors for headers, a la github and http://blog.parkermoore.de/2014/08/01/header-anchor-links-in-vanilla-javascript-for-github-pages-and-jekyll/ */
+var anchorForId = function (id, text) {
+  var anchor = document.createElement("a");
+  anchor.className = "header-link";
+  anchor.href      = "#" + id;
+  anchor.innerHTML = "<i class=\"fa fa-link\"></i>";
+  return anchor;
+};
+
+var linkifyAnchors = function (level, containingElement) {
+  var headers = contentBlock.find("h" + level);
+  for (var h = 0; h < headers.length; h++) {
+    var header = headers[h];
+    if (typeof header.id !== "undefined" && header.id !== "") {
+      header.appendChild(anchorForId(header.id, $(header).text()));
+    }
+  }
+};
+
+$(function () {
+    contentBlock = $("#content_container");
+    if (!contentBlock) return;
+    for (var level = 1; level <= 6; level++) {
+      linkifyAnchors(level, contentBlock);
+    }
+});
+
+<!-- Clipboard support -->
+  ZeroClipboard.config({ moviePath: '//cdnjs.cloudflare.com/ajax/libs/zeroclipboard/1.3.1/ZeroClipboard.swf' });
+
+$(function() {
+  $('div.highlight').prepend(
+  $('<div class="clipboard_container" title="Copy to Clipboard">'+
+    '<div class="fa clipboard_button">'+
+    '<div class="on-active"><div>Copied to Clipboard</div></div>'+
+  '</div></div>'));
+  $('div.clipboard_container').each(function(index) {
+    var clipboard = new ZeroClipboard();
+    clipboard.clip( $(this).find(":first")[0], $(this)[0] );
+    var target = $(this).next();
+    var txt = target.text().trim();
+    if (target.find('code.bash')) {
+      // Strip out bash prompts from the start of each line (i.e. '$' or '%' characters
+      // at the very start, or immediately following any newline). Correctly handles continuation
+      // lines, where a leading '$' or '%' is *not* a prompt character.
+      txt = txt.replace(/(^|[^\\]\n)[$%] /g, "$1");
+    }
+    clipboard.on( 'dataRequested', function (client, args) {
+      client.setText( txt );
+    });
+  });
+});
+
+<!-- search -->
+    $(function() {
+        $('#simple_google')
+            .submit(function() {
+                $('input[name="q"]').val("site:" + document.location.hostname + " " + $('input[name="brooklyn-search"]').val());
+            return true;
+            });
+        $('input[name="brooklyn-search"]').focus(function() {
+                if ($(this).val() === $(this).attr('placeholder')) {
+                    $(this).val('');
+                }
+            })
+            .blur(function() {
+                if ($(this).val() === '') {
+                    $(this).val($(this).attr('placeholder'));
+                }
+            })
+            .blur();
+    });
+
+
+ <!-- analytics -->
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-30530918-1']);
+    _gaq.push(['_trackPageview']);
+    
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+
+<!-- page warning (for archive pages) -->
+
+ 
+    $(function() {
+        if (document.location.pathname.replace(/^\/([^\/]*).*$/, '$1') === "v"){
+            var thisversion = document.location.pathname.split("/")[2],
+                msg = "";
+            if (thisversion != 'latest' && (!$.cookie('brooklyn_versions') || 
+                    (($.inArray('ALL', $.cookie('brooklyn_versions').split(",")) === -1) &&
+                    ($.inArray(thisversion, $.cookie('brooklyn_versions').split(",")) === -1))) ){
+                msg += "<div class='warning_banner_image'><img src='/v/0.7.0-incubating/style/img/warning.png'/></div>";
+                msg += "<p>You are browsing the archive site for version <strong>"+thisversion+"</strong>.</p>";
+                if (thisversion.indexOf("SNAPSHOT") >= 0) {
+                  msg += "<p>Note that SNAPSHOT versions have not been voted on and are not endorsed by the Apache Software Foundation.</p>";
+                  msg += "<p>Do you understand and accept the risks?</p>";
+                } else {
+                  msg += "<p>Is this deliberate?</p>";
+                }
+                msg += "<center><p class='warning_banner_buttons'>";
+                msg += "<a href = 'javascript:void(0);' onclick=\"set_user_version('"+thisversion+"');\">Yes, hide this warning</a>";
+                msg += "<a href = '/v/latest/'>No, take me to the latest version guide</a>";
+                msg += "<a href = '/meta/versions.html'>Show all versions</a>";
+                msg += "</p></center>"
+                            
+                $('#page_notes').html(msg);
+                $('#page_notes').fadeIn('slow');
+            }
+        }
+    });
+
+    function get_user_versions() {
+        return $.cookie("brooklyn_versions") ? $.cookie("brooklyn_versions").split(",") : [];
+    };
+    function set_user_version(version) {
+        var version_cookie = get_user_versions();
+        version_cookie.push(version);
+        $.cookie('brooklyn_versions', version_cookie, { expires: 365, path: '/' });
+        $('#page_notes').fadeOut();
+        event.preventDefault ? event.preventDefault() : event.returnValue = false;
+    };
+    function set_user_versions_all() {
+        var version_cookie = get_user_versions();
+        version_cookie.push("ALL");
+        $.cookie('brooklyn_versions', version_cookie, { expires: 365, path: '/' });
+        $('#page_notes').fadeOut();
+        event.preventDefault ? event.preventDefault() : event.returnValue = false;
+    };
+    function clear_user_versions() {
+        $.removeCookie('brooklyn_versions', { path: '/' });
+        $('#page_notes').fadeIn('slow');
+        event.preventDefault ? event.preventDefault() : event.returnValue = false;
+    };
+
+</script>
+
+</body>
+
+</html>