<?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: ksh taking all cpu time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544685#M27170</link>
    <description>Kevin,&lt;BR /&gt;&lt;BR /&gt;I do not know if you have an SW-contract. If not and you could verify that the patch brings this problem. I would appreciate if you write me a detailed description so I can open a CR.&lt;BR /&gt;(rainer_doelker@hp.com)&lt;BR /&gt;&lt;BR /&gt;rainer</description>
    <pubDate>Tue, 26 Jun 2001 14:16:33 GMT</pubDate>
    <dc:creator>rainer doelker</dc:creator>
    <dc:date>2001-06-26T14:16:33Z</dc:date>
    <item>
      <title>ksh taking all cpu time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544681#M27166</link>
      <description>I have installed the March 2001 patch bundle, and since then I am getting ksh processes owned by init which are taking up all of the cpu time..I think this is happenning when users log out incorrectly, however why are they taking up all the cpu time? and why has it not happened before the patch bundle? Has anyone had this sort of problem before?</description>
      <pubDate>Mon, 25 Jun 2001 15:17:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544681#M27166</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-06-25T15:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: ksh taking all cpu time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544682#M27167</link>
      <description>Kevin,&lt;BR /&gt;&lt;BR /&gt;could you just check which KSH patch you have installed. And on which HP-UX you are?&lt;BR /&gt;&lt;BR /&gt;What do you mean by users log out incorrectly, what do they do? What session do they leave. Usually a process whose father dies belongs to init.&lt;BR /&gt;&lt;BR /&gt;Does the ksh still have children? Can you kill the ksh?&lt;BR /&gt;&lt;BR /&gt;rainer</description>
      <pubDate>Tue, 26 Jun 2001 11:33:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544682#M27167</guid>
      <dc:creator>rainer doelker</dc:creator>
      <dc:date>2001-06-26T11:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: ksh taking all cpu time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544683#M27168</link>
      <description>Ya, that is right, these ksh processes become owned by init, with several children still remaining..The process can be killed with a -9 option.&lt;BR /&gt;the patch is PHCO_20018&lt;BR /&gt;When these users login, they are taken into a menu driven application..if they log out correctly through the menu options, all is ok, however if they click the disconnect button on the reflection X window, the shell does not terminate and then takes all the cpu time..&lt;BR /&gt;We have instructed users to log out correctly, and I have written a script to run every hour and kill these processes..&lt;BR /&gt;Has anyone experienced this type of problem before and do you think I should remove the latest ksh patch?</description>
      <pubDate>Tue, 26 Jun 2001 13:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544683#M27168</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-06-26T13:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: ksh taking all cpu time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544684#M27169</link>
      <description>Kevin,&lt;BR /&gt;from this description I would assume that the signal from the Xserver or Windowmanager which tells the shell to stop gets lost. Usually we would use SIGCLD or SIGHUP for that.&lt;BR /&gt;&lt;BR /&gt;Possibilities:&lt;BR /&gt;1) ReflectionX does not send a signal&lt;BR /&gt;==&amp;gt; test by using another shell&lt;BR /&gt;2) Your application does not forward the signal&lt;BR /&gt;==&amp;gt; from your description it looks as if did before&lt;BR /&gt;3) The worst thing: the last changes (see patchtext) made to ksh in PHCO_200018 brought something which misses the signal. You might verify it by removing the patch.&lt;BR /&gt;&lt;BR /&gt;IF that is really the problem we should open a SW-case and a change-request asap to fix it.&lt;BR /&gt;&lt;BR /&gt;rainer&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Jun 2001 14:03:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544684#M27169</guid>
      <dc:creator>rainer doelker</dc:creator>
      <dc:date>2001-06-26T14:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: ksh taking all cpu time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544685#M27170</link>
      <description>Kevin,&lt;BR /&gt;&lt;BR /&gt;I do not know if you have an SW-contract. If not and you could verify that the patch brings this problem. I would appreciate if you write me a detailed description so I can open a CR.&lt;BR /&gt;(rainer_doelker@hp.com)&lt;BR /&gt;&lt;BR /&gt;rainer</description>
      <pubDate>Tue, 26 Jun 2001 14:16:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544685#M27170</guid>
      <dc:creator>rainer doelker</dc:creator>
      <dc:date>2001-06-26T14:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: ksh taking all cpu time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544686#M27171</link>
      <description>The usual cause of this problem with own written menu programs is not checking that the shell 'read' command has failed.&lt;BR /&gt;&lt;BR /&gt;This means that code that does the following:-&lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt; &lt;PRINT menu="" screen=""&gt;&lt;BR /&gt; read option&lt;BR /&gt; &lt;PROCESS option=""&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;goes into a screaming loop when the user disconnects the session rather than quitting properly.&lt;BR /&gt;&lt;BR /&gt;A simple way to fix it is to replace:&lt;BR /&gt;read option&lt;BR /&gt;with&lt;BR /&gt;read option || exit&lt;BR /&gt;&lt;BR /&gt;I don't know why this should only happen after installing the patch bundle though.&lt;BR /&gt;&lt;/PROCESS&gt;&lt;/PRINT&gt;</description>
      <pubDate>Tue, 26 Jun 2001 14:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544686#M27171</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2001-06-26T14:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: ksh taking all cpu time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544687#M27172</link>
      <description>This may be a simpler answer here.  Check in /etc/profile.  There should be a statement at the beginning:&lt;BR /&gt;&lt;BR /&gt;trap "" 123&lt;BR /&gt;&lt;BR /&gt;This prevents users from interrupting the login shell and bypassing /etc/profile.  But there must also be:&lt;BR /&gt;&lt;BR /&gt;trap 123&lt;BR /&gt;&lt;BR /&gt;at the end of /etc/profile.  This re-enables the normal behavior of signals such as SIGHUP (hangup signal).  If the second trap statement is missing, the shell is signaled that a hangup has occurred (originally designed for modems but works the same way on telnet) but the shell was told to ignore it...thus the hung process.  The shell is looping because the connection has been severed and there is no direction from the kernel (it was ignored). Note that the excess CPU usage is usually accompanied by excess LAN traffic too, generated by the orphan shell process.&lt;BR /&gt;&lt;BR /&gt;BTW: many new sysadmins will see both statements and figure that the second one is redundant, and remove it. They are very different and both are required in the order given.&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Jun 2001 14:28:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544687#M27172</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-06-26T14:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: ksh taking all cpu time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544688#M27173</link>
      <description>Thanks for all who replied, the problem is fixed by removing the patch.&lt;BR /&gt;both trap statements were in /etc/profile.&lt;BR /&gt;I removed the patch PHCO_20018, and logged into the menu, clicked the disconnect button, and the shell terminated.&lt;BR /&gt;I have a call open to HP, we do have a SW contract. &lt;BR /&gt;Perhaps the menu code is not written correctly, but it works without the new patch.</description>
      <pubDate>Tue, 26 Jun 2001 15:12:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-taking-all-cpu-time/m-p/2544688#M27173</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-06-26T15:12:53Z</dc:date>
    </item>
  </channel>
</rss>

