- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Process consuming 100% CPU
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2004 06:11 PM
тАО12-21-2004 06:11 PM
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).
Following are the setting for
ndd -get /dev/tcp tcp_keepalive_interval
7200000
# ndd -get /dev/tcp tcp_ip_abort_interval
600000
Currently we fix this problem by killing the process everytime. Is there anything we can do from the OS side to fix this.
Thanks,
Franklin.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2004 07:36 PM
тАО12-21-2004 07:36 PM
Re: Process consuming 100% CPU
The root cause being the application who does not call the "close" function to release the socket
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2004 08:23 PM
тАО12-21-2004 08:23 PM
Re: Process consuming 100% CPU
either by attempting a clean close of the socket or a graceful shutdown?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2004 08:27 PM
тАО12-21-2004 08:27 PM
Re: Process consuming 100% CPU
Ask programers if they had set 'Interaction Mode' property of the Form to 'Non-Blocking'? If so, see the details for bug 1081777.
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2004 10:03 AM
тАО12-22-2004 10:03 AM
SolutionAnyway, 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).
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).
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.
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...
while /bin/true
do
date
find_runaway_f60 -k # Leave -k off if you just want to watch it ...
sleep 300 #wait 5 min
done