<?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: Process spawn multiple process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981111#M294397</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ...suppose user is allowed to run a script &lt;BR /&gt;he can run some script which create potentially zombie background process and at the end make the system down...So UNIX can be made down by a normal user...&lt;BR /&gt;&lt;BR /&gt;The kernel imposes limits on a variety of resources.  These limits are "fences" to prevent one process or one user from consuming an entire resource (memory, open files, etc.)&lt;BR /&gt;&lt;BR /&gt;In the case of processes, the kernel 'maxuprc' parameter limits the maximum number of concurrent user processes per user while the 'nproc' parameter controls the overal, system-wide ceiling.&lt;BR /&gt;&lt;BR /&gt;While 'maxuprc' doesn't limit 'root', one doesn't let the "normal" user run as root anyway!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 16 Apr 2007 12:35:36 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2007-04-16T12:35:36Z</dc:date>
    <item>
      <title>Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981097#M294383</link>
      <description>All,&lt;BR /&gt;&lt;BR /&gt;Some script has been written in such a way that it spawns one process in backgroud&lt;BR /&gt;Some how there is muliple process created and each process has spawned to multiple and it went to create multiples of process&lt;BR /&gt;&lt;BR /&gt;Can you please let me know how to kill all of them , Since there were some other process run by that user I don't want to kill all the process run by the user&lt;BR /&gt;&lt;BR /&gt;Thanks for help</description>
      <pubDate>Fri, 13 Apr 2007 14:13:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981097#M294383</guid>
      <dc:creator>Thiyagarajan.s</dc:creator>
      <dc:date>2007-04-13T14:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981098#M294384</link>
      <description>Try this while su'ed as that user:&lt;BR /&gt;&lt;BR /&gt;UNIX95=1 ps -fj &lt;BR /&gt;&lt;BR /&gt;and note the Process Group ID(s) of the bad processes. Now use the negative value of the PGID rather than a PID in your kill command.&lt;BR /&gt;&lt;BR /&gt;For example, if the "bad" PGID were 5000 then you would "kill -15 -5000 to kill all the members of that process group. If kill -15 fails then try kill -11.</description>
      <pubDate>Fri, 13 Apr 2007 14:30:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981098#M294384</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-04-13T14:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981099#M294385</link>
      <description>At the very least a 'ps -ef | grep &lt;PROCESS_NAME&gt;&lt;/PROCESS_NAME&gt;&lt;BR /&gt;~thanks</description>
      <pubDate>Fri, 13 Apr 2007 14:30:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981099#M294385</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-04-13T14:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981100#M294386</link>
      <description>&lt;BR /&gt;Gurus &lt;BR /&gt;&lt;BR /&gt;Sorry some how the machine was rebooted&lt;BR /&gt;&lt;BR /&gt;Can you please let me know or where can I find out the funda behind UNIX95=1 ps -fj&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 13 Apr 2007 14:43:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981100#M294386</guid>
      <dc:creator>Thiyagarajan.s</dc:creator>
      <dc:date>2007-04-13T14:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981101#M294387</link>
      <description>Read the 'ps' man page, especially the parts concerning the XPG4 options available.</description>
      <pubDate>Fri, 13 Apr 2007 14:46:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981101#M294387</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-04-13T14:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981102#M294388</link>
      <description>See ps(1) for details on UNIX95 and search this forum. It has some very informative posts on UNIX95 constructs and usages.&lt;BR /&gt;&lt;BR /&gt;~hope it helps</description>
      <pubDate>Fri, 13 Apr 2007 14:48:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981102#M294388</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-04-13T14:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981103#M294389</link>
      <description>Just to make you fell really dumb, try "man ps". The UNIX95=1 simply sets the environment variable UNIX95 (in fact, "UNIX95=&lt;SPACE&gt;ps ..." will siffice because all that matters is that the UNIX95 environment variable be defined. If so, the XPG4 behavior of ps is triggered. I use "UNIX95=1 ps ..."  because it leads to fewer (but not zero) dumb questions.&lt;/SPACE&gt;</description>
      <pubDate>Fri, 13 Apr 2007 14:48:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981103#M294389</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-04-13T14:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981104#M294390</link>
      <description>&lt;BR /&gt;Seniors&lt;BR /&gt;&lt;BR /&gt;Here are the some more things i need to justify&lt;BR /&gt;&lt;BR /&gt;i) How can a user run a script , that will spawn multiples of process and make the system fully occupied ( even though ulimit was set )&lt;BR /&gt;&lt;BR /&gt;ii) User has actually started the process but most of the process running with the PPID 1 ( how come this is possible )&lt;BR /&gt;&lt;BR /&gt;I am just looking into things , I hope your input will be more helpful</description>
      <pubDate>Sun, 15 Apr 2007 11:58:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981104#M294390</guid>
      <dc:creator>Thiyagarajan.s</dc:creator>
      <dc:date>2007-04-15T11:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981105#M294391</link>
      <description>Google for '+hpux +zombie'&lt;BR /&gt;Check man page for 'exit'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My favourie way to quickly kill a bunch of similar commands is &lt;BR /&gt;&lt;BR /&gt;$ ps -ef | awk '/comman[d]/{system ("kill -15 " $2)}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The [x] in the awk regexp makes sure you don't shoot yourself in the foot.&lt;BR /&gt;&lt;BR /&gt;Example below..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ sleep 1000 &amp;amp;&lt;BR /&gt;[1]     9330&lt;BR /&gt;$ sleep 1000 &amp;amp;&lt;BR /&gt;[2]     9331&lt;BR /&gt;$ sleep 1000 &amp;amp;&lt;BR /&gt;[3]     9332&lt;BR /&gt;$ ps -ef | awk '/slee[p]/{system ("kill " i$2)}'&lt;BR /&gt;[3] + Terminated                  sleep 1000 &amp;amp;&lt;BR /&gt;[2] + Terminated                  sleep 1000 &amp;amp;&lt;BR /&gt;[1] + Terminated                  sleep 1000 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 15 Apr 2007 12:14:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981105#M294391</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-15T12:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981106#M294392</link>
      <description>&lt;BR /&gt;Thanks for input&lt;BR /&gt;&lt;BR /&gt;But unfortunately i didnt get sufficient resource on this&lt;BR /&gt;&lt;BR /&gt;Still i need to ask how can a zombi process can create another process ,&lt;BR /&gt;if suppose parent process creates some process then its childs can not be zombie(?)&lt;BR /&gt;becase parent is still alive and working&lt;BR /&gt;&lt;BR /&gt;Can we conclude zombie process can only killed by reboot&lt;BR /&gt;&lt;BR /&gt;How can one manage with such bombardment of process ( except reboot)&lt;BR /&gt;</description>
      <pubDate>Sun, 15 Apr 2007 13:28:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981106#M294392</guid>
      <dc:creator>Thiyagarajan.s</dc:creator>
      <dc:date>2007-04-15T13:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981107#M294393</link>
      <description>A zombie process cannot spawn another process because a zombie process is not doing anything; a process could spawn another process and then become a zombie. It's impossible to kill a zombie process because the process is not running. Zombies comsume no resources and do no harm with one exception. A zombie occupies a slot in the kernel's process table; only in the case that you have so many zombies that that number begins to approach nproc is there any problem.</description>
      <pubDate>Sun, 15 Apr 2007 15:20:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981107#M294393</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-04-15T15:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981108#M294394</link>
      <description>&lt;BR /&gt;Thanks for response&lt;BR /&gt;&lt;BR /&gt;will take scenario&lt;BR /&gt;&lt;BR /&gt;while &lt;INFINITE&gt;&lt;BR /&gt;do&lt;BR /&gt;While &amp;lt; infinite&amp;gt;&lt;BR /&gt;do&lt;BR /&gt;&lt;SOME command="" which="" fails=""&gt; &amp;amp;&lt;BR /&gt;done&lt;BR /&gt;done&lt;BR /&gt;a) above parent runs and creates infinite process which is sleeping ( may be zombie )&lt;BR /&gt;b) parent got killed becaues of some reason and many of the process has ppid 1&lt;BR /&gt;c) there is recursive process creation because of some reason&lt;BR /&gt;&lt;BR /&gt;Can we come out of the above with out reboot&lt;BR /&gt;&lt;BR /&gt;Please suggest if above is not clear&lt;/SOME&gt;&lt;/INFINITE&gt;</description>
      <pubDate>Mon, 16 Apr 2007 02:12:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981108#M294394</guid>
      <dc:creator>Thiyagarajan.s</dc:creator>
      <dc:date>2007-04-16T02:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981109#M294395</link>
      <description>&amp;gt;Can we conclude zombie process can only killed by reboot&lt;BR /&gt;&lt;BR /&gt;You kill zombies by killing their evil parent.  Of course you have to decide if the parent is worth more than cleaning up the process table.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;parent got killed because of some reason and many of the process has ppid 1&lt;BR /&gt;&lt;BR /&gt;Then these zombies should be killed when their parent is reset to init.</description>
      <pubDate>Mon, 16 Apr 2007 03:30:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981109#M294395</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-04-16T03:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981110#M294396</link>
      <description>&lt;BR /&gt;If suppose user is allowed to run a script &lt;BR /&gt;he can run some script which create potentially zombie background process and at the end make the system down&lt;BR /&gt;&lt;BR /&gt;So UNIX can be made down by a normal user&lt;BR /&gt;&lt;BR /&gt;I feel i am not making any sense above &lt;BR /&gt;&lt;BR /&gt;Please let me know if false</description>
      <pubDate>Mon, 16 Apr 2007 12:23:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981110#M294396</guid>
      <dc:creator>Thiyagarajan.s</dc:creator>
      <dc:date>2007-04-16T12:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981111#M294397</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ...suppose user is allowed to run a script &lt;BR /&gt;he can run some script which create potentially zombie background process and at the end make the system down...So UNIX can be made down by a normal user...&lt;BR /&gt;&lt;BR /&gt;The kernel imposes limits on a variety of resources.  These limits are "fences" to prevent one process or one user from consuming an entire resource (memory, open files, etc.)&lt;BR /&gt;&lt;BR /&gt;In the case of processes, the kernel 'maxuprc' parameter limits the maximum number of concurrent user processes per user while the 'nproc' parameter controls the overal, system-wide ceiling.&lt;BR /&gt;&lt;BR /&gt;While 'maxuprc' doesn't limit 'root', one doesn't let the "normal" user run as root anyway!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 16 Apr 2007 12:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981111#M294397</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-04-16T12:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981112#M294398</link>
      <description>You really need to leave zombies out of your question. They are a by-product of but not the cause of your problem. Any process that can spawn multiple other processes either by intent or accident, can bring the system to a crawl. It's very easy to do with mutally recursive shell scripts or a shell script which simply calls itself. Of course, shell scripts are the trivial example but it could be Perl, awk, or binary executables. You can protect the system to some degree by setting maxuprc which will limit the number of processes which can be run by a user.&lt;BR /&gt;&lt;BR /&gt;The real fix to your problem is educating your users and developers.</description>
      <pubDate>Mon, 16 Apr 2007 12:36:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981112#M294398</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-04-16T12:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981113#M294399</link>
      <description>&lt;BR /&gt;James &lt;BR /&gt;&lt;BR /&gt;normal user was not allowed , but accidentaly the process run by the user has ppid as 1 &lt;BR /&gt;&lt;BR /&gt;I always felt admin has control all thing  if not i dont have words to say that even superdome can be - by single user</description>
      <pubDate>Mon, 16 Apr 2007 12:47:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981113#M294399</guid>
      <dc:creator>Thiyagarajan.s</dc:creator>
      <dc:date>2007-04-16T12:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981114#M294400</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; normal user was not allowed , but accidentaly the process run by the user has ppid as 1 &lt;BR /&gt;&lt;BR /&gt;The fact that a process has a parental pid (ppid) of one (1) simply means that that process is now owned by 'init'.  This will be the case seen when the parent of a process dies but its child remains alive --- 'init' inherits the child.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 16 Apr 2007 13:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981114#M294400</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-04-16T13:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Process spawn multiple process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981115#M294401</link>
      <description>&amp;gt;If suppose user is allowed to run a script&lt;BR /&gt;he can run some script which create potentially zombie background process and at the end make the system down&lt;BR /&gt;&lt;BR /&gt;In general scripts can't create zombies, shells should prevent this.  Only applications can.  I'm not sure if perl gives the user enough rope to hang himself</description>
      <pubDate>Mon, 16 Apr 2007 21:50:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-spawn-multiple-process/m-p/3981115#M294401</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-04-16T21:50:15Z</dc:date>
    </item>
  </channel>
</rss>

