Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bd5c3d824c3db63ffd9226c15941e6ad > files > 677

mozart-1.4.0-1mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>6 Monitoring Tools</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node5.html#chapter.failures">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node7.html#chapter.interfaces">Next &gt;&gt;</A></TD></TR></TABLE><DIV id="chapter.tools"><H1><A name="chapter.tools">6 Monitoring Tools</A></H1><P>To help the programmer understand, tune, and debug distributed applications Mozart provides three tools for understanding the behavior of the DS. </P><UL><LI><P>For real-time monitoring of communication, there is a panel tool called Distribution Panel that displays the current activity of the running site. </P></LI><LI><P>To evaluate the result of a distributed application, the DS can be instrumented to write all events to a file. With help of a tool that displays logs graphically, logs from multiple sites can be displayed together in a graph. </P></LI><LI><P>To simulate the behavior of a distributed application there is a tool that can simulate a set of Mozart sites in a controlled environment. The simulator executes Mozart code and simulates distributed events by a discrete event simulation engine. </P></LI></UL><P> </P><H2><A name="label23">6.1 The Distribution Panel</A></H2><P> The Distribution Panel periodically retrieves the internal state of the Distribution Subsystem. The information is then displayed in a graphical tool (see <A href="node6.html#figure.distributionpanel">Figure&nbsp;6.1</A> and <A href="../dpanel/index.html">``Distribution Panel''</A>). The Distribution Panel enables monitoring the behavior of a Mozart site in runtime. Information of currently known remote sites, exported entities, imported entities, sent messages summarized by message type, and marshaling information is displayed. </P><DIV id="figure.distributionpanel"><HR><P><A name="figure.distributionpanel"></A></P><DIV align="center"><IMG alt="" src="DistributionPanel.gif"></DIV><P class="caption"><STRONG>Figure&nbsp;6.1:</STRONG> An example of the Distribution Panel.</P><HR></DIV><P> </P><H2><A name="label24">6.2 The Oz Message Tracer</A></H2><P> The tool merges logs from different Mozart engines doing distributed computation. The logs are sorted in the casual order imposed by their internal message sending and receiving, and displayed graphically (see <A href="node6.html#figure.logtool">Figure&nbsp;6.2</A>). From the visualization of the casual order of events in a distributed computation the behavior of a set of Mozart sites can be examined in detail. The OzMessageTracer is available via <A href="http://www.mozart-oz.org/mogul/info/klintskog/ozmessagetrace.html">Mogul</A>. </P><DIV id="figure.logtool"><HR><P><A name="figure.logtool"></A></P><DIV align="center"><IMG alt="" src="log_tool.gif"></DIV><P class="caption"><STRONG>Figure&nbsp;6.2:</STRONG> An example of the LogTool.</P><HR></DIV><P> </P><H2><A name="label25">6.3 The Mozart Distribution-Subsystem Simulator</A></H2><P>The simulator is a graphical tool (see <A href="node6.html#figure.simulator">Figure&nbsp;6.3</A>) for development and understanding of networked programming languages. It enables simulation of a set of communicating virtual machines in a controlled environment. </P><P>By giving the developer a tool where execution can be controlled, statistics can be retrieved and faults can be inserted, the simulator simplifies verification of new features for a networked programming language. </P><DIV id="figure.simulator"><HR><P><A name="figure.simulator"></A></P><DIV align="center"><IMG alt="" src="Simulator.gif"></DIV><P class="caption"><STRONG>Figure&nbsp;6.3:</STRONG> An example of the Simulator.</P><HR></DIV><P> </P></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node5.html#chapter.failures">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node7.html#chapter.interfaces">Next &gt;&gt;</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.sics.se/~erik">Erik&nbsp;Klintskog</A> and&nbsp;<A href="http://www.sics.se/~annan">Anna&nbsp;Neiderud</A><BR><SPAN class="version">Version 1.4.0 (20090610)</SPAN></ADDRESS></BODY></HTML>