- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: YES process using 99% utilization.
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
Forums
Discussions
Discussions
Discussions
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
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
01-26-2006 08:02 AM
01-26-2006 08:02 AM
Here is the top output.
System: hp00001 Thu Jan 26 13:01:25 2006
Load averages: 1.64, 1.40, 1.25
704 processes: 678 sleeping, 24 running, 1 stopped, 1 zombie
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 1.28 51.2% 0.0% 25.4% 23.4% 0.0% 0.0% 0.0% 0.0%
1 1.65 77.0% 0.0% 14.8% 8.3% 0.0% 0.0% 0.0% 0.0%
2 1.84 55.3% 0.0% 32.3% 12.4% 0.0% 0.0% 0.0% 0.0%
3 1.77 64.2% 0.0% 25.8% 10.0% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 1.64 61.9% 0.0% 24.7% 13.4% 0.0% 0.0% 0.0% 0.0%
Memory: 7536408K (1574760K) real, 8322076K (1965248K) virtual, 3184220K free Page# 1/16
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
1 ? 5536 root 241 20 1716K 152K run 674:04 91.35 91.20 yes
What can be the reason ?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:04 AM
01-26-2006 08:04 AM
Re: YES process using 99% utilization.
It may be that someone was using 'yes' in a script and it ran away from them.
Do a 'man yes' for more details on the yes command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:06 AM
01-26-2006 08:06 AM
Re: YES process using 99% utilization.
Yes. The 'yes' command infinitely produces output of "yes". It is used to provide responses in a non-interactive environment.
It is stopped by killing it or otherwise sending it an interrupt.
See the manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:09 AM
01-26-2006 08:09 AM
Re: YES process using 99% utilization.
root 5536 1 255 23:49:34 ? 681:43 /usr/bin/yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:13 AM
01-26-2006 08:13 AM
Re: YES process using 99% utilization.
file /usr/bin/yes.
if that is a ascii/awk just cat that file and see what is that script.
Else, kill the process and mv that file as yes.org or so.
Chan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:20 AM
01-26-2006 08:20 AM
Re: YES process using 99% utilization.
Moving /usr/bin/yes to something else is not. If you can find out who/what invoked it (probably a big challenge at this point) you can caution them on its use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:29 AM
01-26-2006 08:29 AM
Re: YES process using 99% utilization.
do ..
#ps -ef |grep 5536
see the output. u can see what process running..
do..
#finger
u can find the actual user(owner) of this process. Inform him.if u get the permission, u can kill the process
#kill 5536
cheers
indrajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:39 AM
01-26-2006 08:39 AM
Re: YES process using 99% utilization.
I kept one for troubleshooting.
As said, it is difficult to dig the source.
------------------------
root@hp00001:/var/opt/perf# finger 5536
Login name: 5536 In real life: ???
root@hp00001:/var/opt/perf#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:48 AM
01-26-2006 08:48 AM
Re: YES process using 99% utilization.
The user is root who owns the pid..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 09:03 AM
01-26-2006 09:03 AM
SolutionAt this point, I can't think of a whole lot to do to see what called yes initially.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 09:41 AM
01-26-2006 09:41 AM
Re: YES process using 99% utilization.
Normally, scripts and processes that call yes only need the program for a few iterations and then the program is terminated. Somehow, the calling program left the program running into a bit bucket. For example:
yes > /dev/null 2>&1
will run yes forever and it will consume 100% of one CPU. So you'll probably have to watch the start time for a runaway yes and try to correlate it with process schedules. Since yes is often used in scripts, some grep's through cron jobs and other scripts may narrow down the choices.
Bill Hassell, sysadmin