<?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 consuming 100% CPU in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/process-consuming-100-cpu/m-p/3448626#M208461</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Ask programers if they had set 'Interaction Mode' property of the Form to 'Non-Blocking'? If so, see the details for bug 1081777.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
    <pubDate>Wed, 22 Dec 2004 04:27:00 GMT</pubDate>
    <dc:creator>Eric Antunes</dc:creator>
    <dc:date>2004-12-22T04:27:00Z</dc:date>
    <item>
      <title>Process consuming 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-consuming-100-cpu/m-p/3448623#M208458</link>
      <description>We have Oracle CRM application 11.5.9 running on Oracle DB 9.2.5 and HPUX11.11.&lt;BR /&gt;&lt;BR /&gt;When an user connects to the application and run some forms it starts a process f60webmx.  We have noticed that one of the 'f60webmx' process was consuming 100% cpu. We have later found that it happens only when the connection that started the process goes into a 'CLOSE_WAIT' state (the user had terminated the session abruptly). &lt;BR /&gt;&lt;BR /&gt;Following are the setting for&lt;BR /&gt;ndd -get /dev/tcp tcp_keepalive_interval&lt;BR /&gt;7200000&lt;BR /&gt;# ndd -get /dev/tcp tcp_ip_abort_interval &lt;BR /&gt;600000&lt;BR /&gt;&lt;BR /&gt;Currently we fix this problem by killing the process everytime. Is there anything we can do from the OS side to fix this. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Franklin.</description>
      <pubDate>Wed, 22 Dec 2004 02:11:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-consuming-100-cpu/m-p/3448623#M208458</guid>
      <dc:creator>hpuxsa</dc:creator>
      <dc:date>2004-12-22T02:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Process consuming 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-consuming-100-cpu/m-p/3448624#M208459</link>
      <description>We faced a similier one .. It is an application bug and must be taken with the developers ;). &lt;BR /&gt;&lt;BR /&gt;The root cause being the application who does not call the "close" function to release the socket&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Wed, 22 Dec 2004 03:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-consuming-100-cpu/m-p/3448624#M208459</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-12-22T03:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Process consuming 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-consuming-100-cpu/m-p/3448625#M208460</link>
      <description>Maybe your developers of f60webmx could implement a signalhandler to act on receiving a SIGIO (see man sigaction(2), signal(5), select(5), fcntl(2)),&lt;BR /&gt;either by attempting a clean close of the socket or a graceful shutdown?</description>
      <pubDate>Wed, 22 Dec 2004 04:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-consuming-100-cpu/m-p/3448625#M208460</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-12-22T04:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Process consuming 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-consuming-100-cpu/m-p/3448626#M208461</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Ask programers if they had set 'Interaction Mode' property of the Form to 'Non-Blocking'? If so, see the details for bug 1081777.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Wed, 22 Dec 2004 04:27:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-consuming-100-cpu/m-p/3448626#M208461</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2004-12-22T04:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Process consuming 100% CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/process-consuming-100-cpu/m-p/3448627#M208462</link>
      <description>Well, that's funny - I've got the SAME exact configuration as you and I see that same problem.  FYI - this problem has been around since at least Oracle Apps 10.7 (which was the first use of the forms server that I was exposed to, and I think, the first usage of forms server (f60webmx) that was used by Oracle.  This problem also exists on Linux as well as HPUX - so I'm going to conclude it's on all system variants.&lt;BR /&gt;&lt;BR /&gt;Anyway, I don't have a direct fix - except I run the following script on our Linux Middle Tiers (used to be HPUX - backend is still HPUX). Script is attached to this response.  Be aware that it may take a bit of tweaking to run in HPUX - but not much.  It is written for bash, but I don't think I've got anything in there that's not ksh compliant (my brain writes scripts in ksh anyways by default).&lt;BR /&gt;&lt;BR /&gt;You can play with the script to see how it works for you.  What it does is runs top to see if there are processes that meet certain requirements that are set via variables in the script, then it knocks them off.  It scrolls lots of output to tell you what it's doing.  It has a switch to make it actually kill processes "-k", if you don't pass the kill switch to it - it will just run and tell you what it would do if you let it.  From that you can observe whether or not it fits the bill for you (I believe it's exactly what you need until Oracle fixes the problem - and don't hold your breath - I've been waiting for six years).&lt;BR /&gt;&lt;BR /&gt;The script currently looks for f60webmx's taking over 60% cpu for over 60 minutes of runtime.  I do this for starters - you can ratchet down the numbers as you see are able.  Just make sure and be conservative with these numbers for a while.  Keep in mind also, that the number for how much cpu time used by a forms server could be much less (and therefore much better able to detect) in the morning, than in the afternoon after it's more difficult to tell if a process has 40 minutes of process time "honestly" or due to a runaway process.&lt;BR /&gt;&lt;BR /&gt;Anyways, put this script in a while loop on a terminal (like below) or you can cron job it.  I prefer to leave it running on an old spare terminal that I have so I can see it when I care to...&lt;BR /&gt;&lt;BR /&gt;while /bin/true&lt;BR /&gt;do&lt;BR /&gt;date&lt;BR /&gt;find_runaway_f60 -k # Leave -k off if you just want to watch it ...&lt;BR /&gt;sleep 300 #wait 5 min&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Dec 2004 18:03:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/process-consuming-100-cpu/m-p/3448627#M208462</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2004-12-22T18:03:46Z</dc:date>
    </item>
  </channel>
</rss>

