<?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: restricting cpu / memory of a program in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725640#M64186</link>
    <description>While PRM is really the tool you need, I can suggest a Plan B that's free. In the .profiles of these 'rogue' developers use ulimit -d to limit process datasize, ulimit -t to limit process time, or make a wrapper to set ulimits before invoking these programs. After the code has been cleaned up, you can remove the restrictions. Man sh_posix and look for ulimit for details.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 16 May 2002 15:17:25 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2002-05-16T15:17:25Z</dc:date>
    <item>
      <title>restricting cpu / memory of a program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725637#M64183</link>
      <description>I have some Oracle Forms programs that can contain infinite loops (if they are poorly programmed). Is there a way I can restrict the program or watch the system form programs with a certain name and memory/cpu consumption and kill them?</description>
      <pubDate>Thu, 16 May 2002 14:54:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725637#M64183</guid>
      <dc:creator>Ryan Kogelheide</dc:creator>
      <dc:date>2002-05-16T14:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: restricting cpu / memory of a program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725638#M64184</link>
      <description>&lt;BR /&gt;Theres a couple of standard HP products which can help;&lt;BR /&gt;&lt;BR /&gt;1. Process Resource manager. This allows certain processes or groups of them to use only X amount of CPU.&lt;BR /&gt;&lt;BR /&gt;2. Measureware or Glance/UX Pak. This product has an alarmdef file which you can configure to see if processes are running, if theyre using too much cpu or memory or whatever else, then run a script (to report it or you can automatically kill them or whatever).&lt;BR /&gt;&lt;BR /&gt;Both these you have to pay for though.&lt;BR /&gt;</description>
      <pubDate>Thu, 16 May 2002 15:02:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725638#M64184</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-05-16T15:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: restricting cpu / memory of a program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725639#M64185</link>
      <description>Hi Ryan,&lt;BR /&gt;&lt;BR /&gt; You should consider HP's PRM (Process Resource Manager) program. It's designed to do just that.&lt;BR /&gt;&lt;BR /&gt;See the following for more info:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B8733-90007/B8733-90007_top.html&amp;amp;con=/hpux/onlinedocs/B8733-90007/00/00/12-con.html&amp;amp;toc=/hpux/onlinedocs/B8733-90007/00/00/12-toc.html&amp;amp;searchterms=PRM&amp;amp;queryid=20020516-091049" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B8733-90007/B8733-90007_top.html&amp;amp;con=/hpux/onlinedocs/B8733-90007/00/00/12-con.html&amp;amp;toc=/hpux/onlinedocs/B8733-90007/00/00/12-toc.html&amp;amp;searchterms=PRM&amp;amp;queryid=20020516-091049&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 16 May 2002 15:03:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725639#M64185</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-05-16T15:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: restricting cpu / memory of a program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725640#M64186</link>
      <description>While PRM is really the tool you need, I can suggest a Plan B that's free. In the .profiles of these 'rogue' developers use ulimit -d to limit process datasize, ulimit -t to limit process time, or make a wrapper to set ulimits before invoking these programs. After the code has been cleaned up, you can remove the restrictions. Man sh_posix and look for ulimit for details.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 May 2002 15:17:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725640#M64186</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-05-16T15:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: restricting cpu / memory of a program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725641#M64187</link>
      <description>&lt;BR /&gt;PRM is a good tool, but it costs bucks and is useful if you want to divide CPU and other resources between different user groups who have equal claim on the system. &lt;BR /&gt;&lt;BR /&gt;But your case seems to be due to lazy/careless programmers or probably with folks in a testing env.  in that case, option 2 is better.&lt;BR /&gt;Run it as a cron job.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj</description>
      <pubDate>Thu, 16 May 2002 17:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725641#M64187</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2002-05-16T17:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: restricting cpu / memory of a program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725642#M64188</link>
      <description>You could also start the forms program using a higher nice value to limit it's priority for CPU usage.  Also free.</description>
      <pubDate>Thu, 16 May 2002 20:00:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricting-cpu-memory-of-a-program/m-p/2725642#M64188</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2002-05-16T20:00:08Z</dc:date>
    </item>
  </channel>
</rss>

