100 lines
6.4 KiB
HTML
100 lines
6.4 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="topic" />
|
|
<meta name="DC.Title" content="Scenario: Job monitor for CPU utilization" />
|
|
<meta name="abstract" content="See an example job monitor that tracks the CPU utilization of a specified job and alerts the job's owner if CPU utilization gets too high." />
|
|
<meta name="description" content="See an example job monitor that tracks the CPU utilization of a specified job and alerts the job's owner if CPU utilization gets too high." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzahxmonexample.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzahxmonjobexample" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Scenario: Job monitor for CPU utilization</title>
|
|
</head>
|
|
<body id="rzahxmonjobexample"><a name="rzahxmonjobexample"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Scenario: Job monitor for CPU utilization</h1>
|
|
<div><p>See an example job monitor that tracks the CPU utilization of a
|
|
specified job and alerts the job's owner if CPU utilization gets too high.</p>
|
|
<div class="section" id="rzahxmonjobexample__situation"><a name="rzahxmonjobexample__situation"><!-- --></a><h4 class="sectionscenariobar">Situation</h4><p>You
|
|
are currently running a new application on your <span class="keyword">iSeries™</span> server,
|
|
and you are concerned that some of the new interactive jobs are consuming
|
|
an unacceptable amount of resources. You would like the owners of the offending
|
|
jobs to be notified if their jobs ever consume too much of the CPU capacity.</p>
|
|
<p>You
|
|
can set up a job monitor to watch for the jobs from the new application and
|
|
send a message if a job consumes more than 30% of the CPU capacity.</p>
|
|
<p><strong>Configuration
|
|
example</strong></p>
|
|
<p>To set up a job monitor, you need to define which jobs to
|
|
watch for, what job attributes to watch for, and what the monitor should do
|
|
when the specified job attributes are detected. To set up a job monitor that
|
|
accomplishes this goal, complete the following steps:</p>
|
|
<ol><li>In <span class="keyword">iSeries Navigator</span>, expand <span class="menucascade"><span class="uicontrol">Management Central </span> > <span class="uicontrol"> Monitors</span></span>, right-click <span class="uicontrol">Job monitor</span>, and select <span class="uicontrol">New
|
|
Monitor...</span></li>
|
|
<li>On the <span class="uicontrol">General</span> page, enter the following values: <ol type="a"><li>Specify a name and description for this monitor.</li>
|
|
<li>On the <span class="uicontrol">Jobs to monitor</span> tab, enter the following
|
|
values: <ol type="i"><li>For the <span class="uicontrol">Job name</span>, specify the name of the job you
|
|
want to watch for (for example, MKWIDGET).</li>
|
|
<li>Click <span class="uicontrol">Add</span>.</li>
|
|
</ol>
|
|
</li>
|
|
</ol>
|
|
</li>
|
|
<li>Click the <span class="uicontrol">Metrics</span> tab, and enter the following
|
|
information: <ol type="a"><li>In the <span class="uicontrol">Available metrics</span> list, expand <span class="uicontrol">Summary
|
|
Numeric Values</span>, select <span class="uicontrol">CPU Percent Utilization</span>,
|
|
and click <span class="uicontrol">Add</span>.</li>
|
|
<li>On the <span class="uicontrol">Threshold 1</span> tab for the metrics settings,
|
|
enter the following values: <ol type="i"><li>Select <span class="uicontrol">Enable trigger</span>.</li>
|
|
<li>For the threshold trigger value, specify <span class="uicontrol">>= 30</span> (greater
|
|
than or equal to 30 percent busy).</li>
|
|
<li>For <span class="uicontrol">Duration</span>, specify <span class="uicontrol">1</span> interval.</li>
|
|
<li>For the <span class="uicontrol"><span class="keyword">i5/OS™</span> trigger
|
|
command</span>, specify the following: <pre>SNDMSG MSG('Your job is exceeding 30% CPU capacity')
|
|
TOUSR(&OWNER)</pre>
|
|
</li>
|
|
<li>Click <span class="uicontrol">Enable reset</span>.</li>
|
|
<li>For the threshold reset value, specify <span class="uicontrol">< 20</span> (less
|
|
than 20 percent busy).</li>
|
|
</ol>
|
|
</li>
|
|
</ol>
|
|
</li>
|
|
<li>Click the <span class="uicontrol">Collection Interval</span> tab, and select <span class="uicontrol">15
|
|
seconds</span>. This will override the Collection Services setting.</li>
|
|
<li>Click the <span class="uicontrol">Actions</span> tab, and select <span class="uicontrol">Log
|
|
event</span> in both the <span class="uicontrol">Trigger</span> and <span class="uicontrol">Reset</span> columns.</li>
|
|
<li>Click the <span class="uicontrol">Servers and groups</span> tab, and select the
|
|
servers and groups you want to monitor for this job.</li>
|
|
<li>Click <span class="uicontrol">OK</span> to save the new monitor.</li>
|
|
<li>From the list of job monitors, right-click the new monitor and select <span class="uicontrol">Start</span>.</li>
|
|
</ol>
|
|
<p><strong>Results</strong></p>
|
|
<p>The new monitor checks the QINTER subsystem every
|
|
15 seconds, and if the job MKWIDGET is consuming more than 30 percent of the
|
|
CPU, the monitor sends a message to the job's owner. The monitor resets when
|
|
the job uses less than 20% CPU capacity.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahxmonexample.htm" title="Provides scenarios that show how you can use some of the different types of monitors to look at specific aspects of your system's performance.">Scenarios: iSeries Navigator monitors</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |