<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DCL to detect runaway processes in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069180#M38477</link>
    <description>Here is a procedure I have been using.  It is based on a process using the cpu more than half of the interval check time.  For example, the interval of each check is 30 minutes.  If during that time a process has used more than 15 minutes of cpu, then it is flagged.  This seems to work well, but note that some backup processes can be cpu intensive.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Wed, 19 Sep 2007 09:28:34 GMT</pubDate>
    <dc:creator>Steve Schultz_1</dc:creator>
    <dc:date>2007-09-19T09:28:34Z</dc:date>
    <item>
      <title>DCL to detect runaway processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069173#M38470</link>
      <description>I'm looking for a way to detect and report runaway processes (i.e. a process in constant COM state) using DCL.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Tue, 18 Sep 2007 04:10:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069173#M38470</guid>
      <dc:creator>Niall Godwin</dc:creator>
      <dc:date>2007-09-18T04:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: DCL to detect runaway processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069174#M38471</link>
      <description>Hi Niall,&lt;BR /&gt;&lt;BR /&gt;you can use the attached command procedure as a starter template.&lt;BR /&gt;&lt;BR /&gt;It optionally kills/reports the CPU hogs. You should customise it for your own environment!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2007 04:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069174#M38471</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2007-09-18T04:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: DCL to detect runaway processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069175#M38472</link>
      <description>Niall,&lt;BR /&gt;&lt;BR /&gt;the last attachment was nor properly formatted.&lt;BR /&gt;&lt;BR /&gt;Hopefully this one is!&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2007 04:32:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069175#M38472</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2007-09-18T04:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: DCL to detect runaway processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069176#M38473</link>
      <description>Duncan,&lt;BR /&gt;&lt;BR /&gt;I think you're missing a procedure:&lt;BR /&gt;&lt;BR /&gt;MONITOR_CPU_CHECK_CAPTURE.COM&lt;BR /&gt;&lt;BR /&gt;-Jeff&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2007 13:13:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069176#M38473</guid>
      <dc:creator>Jeffrey Goodwin</dc:creator>
      <dc:date>2007-09-18T13:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: DCL to detect runaway processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069177#M38474</link>
      <description>Niall,&lt;BR /&gt;&lt;BR /&gt;Are you interested in all processes in COM state, or just ones that are running and competing with interactive users (i.e. ones that are getting CPU time)?  The point being that a process being in COM state doesn't necessarily mean it is consuming a lot of resources, in fact, if it is being starved of CPU, that's the state it will be in most of the time.&lt;BR /&gt;&lt;BR /&gt;You may also be more interested in interactive jobs than batch jobs.&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2007 15:30:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069177#M38474</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-09-18T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: DCL to detect runaway processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069178#M38475</link>
      <description>Howdy,&lt;BR /&gt;I created a similar command file some time ago, but I found that defining a runaway was the most important thing. For example, you want to detect COM states - but on a multiprocessor you might also be looking for CUR states, or even COMO. Also, you might want your target process to be using over a certain threshold of CPU - but what if there are multiple runaways? Probably , your target process will not be clocking any IOs (otherwise it won't be COM/COMO/CUR all the time). So from memory I think my DCL was doing a MONITOR PROC/TOPCPU to an output file for a few seconds, reading the output file to get the top 2 or 3 processes, then looking at each process using f$getjpi to get the state and direct and buffered IOs, then storing those values, hibernating for a while then comparing the figures again. So my definition of a runaway was a process that, after x minutes, was a top 2 or 3 cpu user, was in com, como or cur state , and hadn't clocked any IOs in the intervening period.&lt;BR /&gt;Have fun!&lt;BR /&gt;PJ</description>
      <pubDate>Tue, 18 Sep 2007 21:48:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069178#M38475</guid>
      <dc:creator>Paul Jerrom</dc:creator>
      <dc:date>2007-09-18T21:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: DCL to detect runaway processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069179#M38476</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;here is the missing routine as an attachment.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Sep 2007 07:43:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069179#M38476</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2007-09-19T07:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: DCL to detect runaway processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069180#M38477</link>
      <description>Here is a procedure I have been using.  It is based on a process using the cpu more than half of the interval check time.  For example, the interval of each check is 30 minutes.  If during that time a process has used more than 15 minutes of cpu, then it is flagged.  This seems to work well, but note that some backup processes can be cpu intensive.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Wed, 19 Sep 2007 09:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069180#M38477</guid>
      <dc:creator>Steve Schultz_1</dc:creator>
      <dc:date>2007-09-19T09:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: DCL to detect runaway processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069181#M38478</link>
      <description>Many thanks to all for your responses, and especially to Duncan and Steve for their solutions. &lt;BR /&gt;I have tested both procedures and they're exactly what I'm looking for. &lt;BR /&gt;Duncan's procedure is the more sophisticated, but Steve's is equally effective.&lt;BR /&gt;Nice work !&lt;BR /&gt;Niall</description>
      <pubDate>Wed, 19 Sep 2007 10:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-to-detect-runaway-processes/m-p/5069181#M38478</guid>
      <dc:creator>Niall Godwin</dc:creator>
      <dc:date>2007-09-19T10:45:46Z</dc:date>
    </item>
  </channel>
</rss>

