Sophie

Sophie

distrib > Fedora > 17 > i386 > media > updates > by-pkgid > 675c8c8167236dfcf8d66da674f931e8 > files > 200

erlang-doc-R15B-03.3.fc17.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns:fn="http://www.w3.org/2005/02/xpath-functions">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../doc/otp_doc.css" type="text/css">
<title>Erlang -- Appmon</title>
</head>
<body bgcolor="white" text="#000000" link="#0000ff" vlink="#ff00ff" alink="#ff0000"><div id="container">
<script id="js" type="text/javascript" language="JavaScript" src="../../../../doc/js/flipmenu/flipmenu.js"></script><script id="js2" type="text/javascript" src="../../../../doc/js/erlresolvelinks.js"></script><script language="JavaScript" type="text/javascript">
            <!--
              function getWinHeight() {
                var myHeight = 0;
                if( typeof( window.innerHeight ) == 'number' ) {
                  //Non-IE
                  myHeight = window.innerHeight;
                } else if( document.documentElement && ( document.documentElement.clientWidth ||
                                                         document.documentElement.clientHeight ) ) {
                  //IE 6+ in 'standards compliant mode'
                  myHeight = document.documentElement.clientHeight;
                } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
                  //IE 4 compatible
                  myHeight = document.body.clientHeight;
                }
                return myHeight;
              }

              function setscrollpos() {
                var objf=document.getElementById('loadscrollpos');
                 document.getElementById("leftnav").scrollTop = objf.offsetTop - getWinHeight()/2;
              }

              function addEvent(obj, evType, fn){
                if (obj.addEventListener){
                obj.addEventListener(evType, fn, true);
                return true;
              } else if (obj.attachEvent){
                var r = obj.attachEvent("on"+evType, fn);
                return r;
              } else {
                return false;
              }
             }

             addEvent(window, 'load', setscrollpos);

             //--></script><div id="leftnav"><div class="innertube">
<img alt="Erlang logo" src="../../../../doc/erlang-logo.png"><br><small><a href="users_guide.html">User's Guide</a><br><a href="index.html">Reference Manual</a><br><a href="release_notes.html">Release Notes</a><br><a href="../pdf/appmon-2.1.14.1.pdf">PDF</a><br><a href="../../../../doc/index.html">Top</a></small><p><strong>appmon</strong><br><strong>User's Guide</strong><br><small>Version 2.1.14.1</small></p>
<br><a href="javascript:openAllFlips()">Expand All</a><br><a href="javascript:closeAllFlips()">Contract All</a><p><small><strong>Chapters</strong></small></p>
<ul class="flipMenu" imagepath="../../../../doc/js/flipmenu"><li id="loadscrollpos" title="Appmon" expanded="true">Appmon<ul>
<li><a href="appmon_chapter.html">
              Top of chapter
            </a></li>
<li title="Introduction"><a href="appmon_chapter.html#id57981">Introduction</a></li>
<li title="Getting Started with Appmon"><a href="appmon_chapter.html#id61176">Getting Started with Appmon</a></li>
<li title="The Main Window"><a href="appmon_chapter.html#id60850">The Main Window</a></li>
<li title="The Application Window"><a href="appmon_chapter.html#id56939">The Application Window</a></li>
<li title="The Listbox Window"><a href="appmon_chapter.html#id60832">The Listbox Window</a></li>
<li title="The Process Information Window"><a href="appmon_chapter.html#id59953">The Process Information Window</a></li>
<li title="Using the Web Based version of Appmon"><a href="appmon_chapter.html#id60002">Using the Web Based version of Appmon</a></li>
</ul>
</li></ul>
</div></div>
<div id="content">
<div class="innertube">
<h1>1 Appmon</h1>
  

  <h3><a name="id57981">1.1 
        Introduction</a></h3>
    
    <div class="warning">
<div class="label">Warning</div>
<div class="content"><p>
      <p>
	The Appmon application has been superseded by the Observer application.
	Appmon will be removed in R16.
      </p>
    </p></div>
</div>
    <p>The application monitor Appmon is a graphical node and application viewer. The tool shows an overview of all applications on all known nodes, and it is possible to view the process tree for an application running on any of the nodes.</p>
    <div class="note">
<div class="label">Note</div>
<div class="content"><p>
      <p>If the Appmon code is not available at a node, for example an
        embedded node, this node is ignored by Appmon and is not shown
        in the Appmon window.</p>
    </p></div>
</div>
  

  <h3><a name="id61176">1.2 
        Getting Started with Appmon</a></h3>
    
    <p>Start Appmon by calling <span class="code">appmon:start()</span>. It will start the <span class="bold_code"><a href="#main_win">main window</a></span> showing a load meter and the applications running at the current node. By clicking on one of the applications a window showing the process tree of the application will be opened, the <span class="bold_code"><a href="#app_win">application window</a></span>.</p>
    <p>The main window is equipped with a menubar from which it is possible to:</p>
    <ul>
      <li>exit Appmon</li>
      <li>perform some operations on the node</li>
      <li>set how information should be displayed</li>
      <li>select which node to show</li>
      <li>open help (this document).</li>
    </ul>
    <p>The application window shows the process tree for an application with each process displayed as a box. It is possible to view information about the processes, to send messages to them, and to trace and kill them.</p>
  

  <h3><a name="id60850">1.3 
        The Main Window</a></h3>
    
    <a name="main_win"></a>
    <p>The main window shows a load meter and all applications running at the displayed node. Select which node to display in the window by choosing the node name from the Nodes menu. It is also possible to run Appmon in a many-window mode where a new instance of the main window is opened for each node to be displayed.</p>
    <img alt="IMAGE MISSING" src="main_win.gif"><br>
      <em>Figure
        1.1:
         
        The Main Window.</em>
    
    <p>The load meter shows load measured as processor time, or as the length of the ready queue.</p>
    <p>Every application running at the node is shown as a button. Clicking the button will open the application window showing the process tree for the application.</p>

    <h4>The File Menu</h4>
      
      <dl>
        <dt><strong><strong>Show List Box...</strong></strong></dt>
        <dd>This will open the <span class="bold_code"><a href="#listbox_win">listbox window</a></span> which lists all nodes and applications. This window can be more easy to use than the normal, graphical user interface when the system consists of a large number of nodes and/or applications.</dd>
        <dt><strong><strong>Close</strong></strong></dt>
        <dd>Close the window. If no other instance of the main window exists, Appmon will be stopped.</dd>
        <dt><strong><strong>Exit</strong></strong></dt>
        <dd>Stop Appmon.</dd>
      </dl>
    

    <h4>The Actions Menu</h4>
      
      <dl>
        <dt><strong><strong>Reboot</strong></strong></dt>
        <dd>Call <span class="code">init:reboot()</span> at the currently displayed node. This will stop the node. If the <span class="code">-heart</span> system flag was given, the heart program will try to reboot the system.</dd>
        <dt><strong><strong>Restart</strong></strong></dt>
        <dd>Call <span class="code">init:restart()</span> at the currently displayed node. This will restart the node.</dd>
        <dt><strong><strong>Stop</strong></strong></dt>
        <dd>Call <span class="code">init:stop()</span> at the currently displayed node. This will stop the node.</dd>
        <dt><strong><strong>Ping</strong></strong></dt>
        <dd>Call <span class="code">net:ping(Node)</span> where <span class="code">Node</span> is the currently displayed node. This can be useful when the connection to the node has been lost.</dd>
      </dl>
    

    <h4>The Options Menu</h4>
      
      <dl>
        <dt><strong><strong>One window/Many windows</strong></strong></dt>
        <dd>Select one of these radio button to run Appmon in one-window or many-window mode. In many-windows mode, a new instance of the main window is opened for each node to be displayed. The default value is one-window mode.</dd>
        <dt><strong><strong>Load: time/queue</strong></strong></dt>
        <dd>Select one of these radio buttons to either calculate load as processor time or as the length of the ready queue, which is the number of processes ready to execute. By default, the load is calculated as processor time.</dd>
        <dt><strong><strong>Load: progressive/linear</strong></strong></dt>
        <dd>Select one of these radio buttons to show load either according to a progressive or a linear scale. By default, the load is shown according to a progressive scale. </dd>
      </dl>
    

    <h4>The Nodes Menu</h4>
      
      <p>The Nodes menu contains all currently and previously known nodes,
        where the Appmon code is available. Nodes where the Appmon code is
        not available, for example embedded nodes, are ignored by Appmon and
        are not shown.</p>
      <p>Selecting a node from the Nodes menu will cause that node to be displayed in either the same window, or in a new window, depending on if Appmon is run in one-window or many-windows mode. If the connection to the node has been lost, this will be shown in the window.</p>
    

    <h4>The Help Menu</h4>
      
      <dl>
        <dt><strong><strong>Help</strong></strong></dt>
        <dd>Selecting Help from the Help menu will cause the HTML version of the Appmon User's Guide (this document) to be displayed. Currently this function requires Netscape to be up and running.</dd>
      </dl>
    
  

  <h3><a name="id56939">1.4 
        The Application Window</a></h3>
    
    <a name="app_win"></a>
    <p>The application window shows the process tree for an application. The window title contains the application name and the node name. The window also contains a menubar and a toolbar.</p>
    <p>The application window can be opened from the main window by clicking on the button denoting the application, or from the listbox window by selecting the application and clicking on the <strong>Load</strong> button.
      </p>
    <img alt="IMAGE MISSING" src="app_win.gif"><br>
      <em>Figure
        1.2:
         
        The Application Window.</em>
    
    <p>The application can be shown either as a strict supervision tree, or as a process view with all linked processes. In supervision mode, the tree-gathering and -building algorithm assumes conformance to the OTP design principles.</p>

    <h4>The File Menu</h4>
      
      <dl>
        <dt><strong><strong>Close</strong></strong></dt>
        <dd>Close the application window.</dd>
      </dl>
    

    <h4>The Options Menu</h4>
      
      <dl>
        <dt><strong><strong>Refresh</strong></strong></dt>
        <dd>Refresh the application window.</dd>
        <dt><strong><strong>Sup. view/ Proc. view</strong></strong></dt>
        <dd>Select one of these radio buttons to show the application as a strict supervision tree, or as a process view with all linked processes. By default, the process view is used.</dd>
      </dl>
    

    <h4>The Toolbar</h4>
      
      <p>The toolbar consists of four buttons: <strong>Info</strong>, <strong>Send</strong>, <strong>Trace</strong> and <strong>Kill</strong>. First select one of these buttons and then select to which process the action should apply by clicking on a process in the process tree. By default <strong>Info</strong> is selected which means that clicking on a process, without selecting <strong>Send</strong>, <strong>Trace</strong> or <strong>Kill</strong> first, will open the <span class="bold_code"><a href="#pinfo_win">process information window</a></span>.</p>
      <dl>
        <dt><strong><strong>Info</strong></strong></dt>
        <dd>Open the <span class="bold_code"><a href="#pinfo_win">process information window</a></span>, which displays the information about the process given by <span class="code">process_info(Pid)</span>.</dd>
        <dt><strong><strong>Send</strong></strong></dt>
        <dd>Send a message to a process. A window is opened where the message can be specified. Click <strong>Ok</strong> to send the message or <strong>Cancel</strong> to cancel.</dd>
        <dt><strong><strong>Trace</strong></strong></dt>
        <dd>Switch on OTP tracing of a process. <span class="code">sys:trace(Pid,true)</span> is called. Selecting <strong>Trace</strong> a second time for the same process will switch the tracing off instead.</dd>
        <dt><strong><strong>Kill</strong></strong></dt>
        <dd>Kill a process. <span class="code">exit(Pid,kill)</span> is called.</dd>
      </dl>
    
  

  <h3><a name="id60832">1.5 
        The Listbox Window</a></h3>
    
    <a name="listbox_win"></a>
    <p>The listbox window lists all nodes and applications. This window can be more easy to use than the normal, graphical user interface when the system consists of a large number of nodes and/or applications.</p>
    <img alt="IMAGE MISSING" src="listbox_win.gif"><br>
      <em>Figure
        1.3:
         
        The Listbox Window.</em>
    
    <p>The window contains three buttons:</p>
    <dl>
      <dt><strong><strong>Load</strong></strong></dt>
      <dd>First selecting an application and then clicking the <strong>Load</strong> button will open the <span class="bold_code"><a href="#app_win">application window</a></span> for that application.</dd>
      <dt><strong><strong>Clear</strong></strong></dt>
      <dd>De-select any selected node or application name.</dd>
      <dt><strong><strong>Close</strong></strong></dt>
      <dd>Close the listbox window.</dd>
    </dl>
  

  <h3><a name="id59953">1.6 
        The Process Information Window</a></h3>
    
    <a name="pinfo_win"></a>
    <p>The process information window shows information about different processes as given by <span class="code">process_info(Pid)</span>.</p>
    <img alt="IMAGE MISSING" src="pinfo_win.gif"><br>
      <em>Figure
        1.4:
         
        The Process Information Window.</em>
    

    <h4>The File Menu</h4>
      
      <dl>
        <dt><strong><strong>Close</strong></strong></dt>
        <dd>Close the process information window.</dd>
      </dl>
    
  

  <h3><a name="id60002">1.7 
        Using the Web Based version of Appmon</a></h3>
    

    <h4>Introduction</h4>
      
      <p>The web based version of Appmon is an alternative version of 
        Appmon. The main difference between the web based version of
        Appmon and the original version of Appmon is that the web based
        version of Appmon can monitor nodes and applications on nodes where
        Appmon not is installed.</p>
    

    <h4>Start the Web Based version of Appmon</h4>
      
      <p>To start the web based user interface configure and start 
        WebTool, see <strong>WebTool User's Guide</strong>. The web based 
        version of Appmon is compatible with the browsers 
        Netscape Navigator and Internet Explorer 4.0 and higher.</p>
      <p>When WebTool is started, start the Web based version of Appmon via 
        WebTool. If WebTool succeeded to start the web based version of Appmon 
        a link named WebAppmon will appear in the topmost frame. Click on the link and
        the main frame of the browser will show two frames.The left frame will 
        show a combo box for node selection and a list of all applications on 
        the currently selected node.   </p>
      <p>In the left frame it is possible to:</p>
      <ul>
        <li>Select which node to supervise.</li>
        <li>Select an application to view its process tree.</li>
        <li>Select an application to view its specification.</li>
      </ul>
      <p>The right frame shows the selected information, either the application 
        specification or the process tree and process information.</p>
    

    <h4>Selecting a Different Node</h4>
      
      <p>In the top of the left frame there is a combo box with all known 
        nodes. The name of the node that is monitored is the node whose name 
        is visible in the combo box. At startup the node on which the web 
        based version of Appmon is running on will be monitored.</p>
      <p>To change node, select another node in the combo box, and
        the list of running applications will change to the applications
        that runs on the selected node.</p>
    

    <h4>Viewing the Process Tree of an Application</h4>
      
      <p>To view the process tree of an application click on the application 
        name in the list of applications. The process tree of the selected 
        application will then appear in the right frame.</p>
      <p>The processes in the process tree can have three different colors:</p>
      <dl>
        <dt><strong><strong>Blue</strong></strong></dt>
        <dd>The relation to the process above in the process hierarchy 
         is a primary relation. That means that the process above is the
         only process that link to it or the process above is a supervisor. </dd>
        <dt><strong><strong>Red</strong></strong></dt>
        <dd>The relation to the process above in the process hierarchy is a secondary 
         relation. This means that more than one process has a relation to it 
         and the process above in the hierarchy is not a supervisor.</dd>
        <dt><strong><strong>Black</strong></strong></dt>
        <dd>The process isn't a regular process instead it's a Port. The name of 
         the process will also begin with <strong>Port:</strong>
</dd>
      </dl>
      <p>If the process name begins with <strong>Runs on another node:</strong> The 
        monitored application runs on more than one node and this process is 
        the first process on a branch that runs on another node. </p>
    

    <h4>Viewing the Application Specification</h4>
      
      <p>After the application name in the list of applications there are a 
        link named <strong>Spec</strong>, Click on this link and the application 
        specification will appear in the right frame. The application 
        specification is the data in the <strong>.app</strong> file of the selected
        application. </p>
    

    <h4>Select Process View</h4>
      
      <p>In the top of the page that shows the process tree, there are three 
        radio buttons for selecting which processes that shall be included 
        in the process tree. The default mode is that all processes 
        that one process in the application tree  has a relation to is 
        included. It's possible to filter which of the processes 
        in the process tree that will be included. To reduce the number 
        of processes in the process tree select one of the radio buttons 
        on the top of the page </p>
      <dl>
        <dt><strong><strong>All processes</strong></strong></dt>
        <dd>All processes that at least one process in the application 
         tree has a link to.</dd>
        <dt><strong><strong>Supervised processes</strong></strong></dt>
        <dd>All processes that are supervised by one of the supervisors in 
         the application</dd>
        <dt><strong><strong>Supervisors only</strong></strong></dt>
        <dd>Only the processes that actually are supervisors in the 
         applications supervision tree is included</dd>
      </dl>
    

    <h4>Process Information</h4>
      <a name="proc_info"></a>
      
      <p>To see more information about a specific process  click on the process
        name and more information will be loaded under the application tree.</p>
      <p>The Process information page shows information about a process as given 
        by the <span class="code">process_info(Pid)</span>, but formatted in a more human readable form.</p>
    

    <h4>Trace a process</h4>
      
      <p>If the link after the process name in the process tree is <strong>start trace</strong>
        the process is not traced. If the link is <strong>stop trace</strong> then the process
        id traced.</p>
      <p>To toggle the trace flag for a process click on the link <strong>start trace</strong> or
        <strong>stop trace</strong> after the process name in the process tree.</p>
    
  
</div>
<div class="footer">
<hr>
<p>Copyright © 1997-2012 Ericsson AB. All Rights Reserved.</p>
</div>
</div>
</div></body>
</html>