Sponsored Content
Full Discussion: Runaway Processes (I think)
Operating Systems AIX Runaway Processes (I think) Post 302554878 by juredd1 on Tuesday 13th of September 2011 09:24:31 AM
Old 09-13-2011
Runaway Processes (I think)

Folks I suck a lot of things and performance issue is one of them.

After upgrading from 5300-06-03 to 5300-12-04 we started seeing an issue with some runaway processes. It varies as some of these processes have a TTY accociated with them and some do not. If you could give me any idea of what to look for it would be most appreciated. I did contact IBM support and provided a perfpmr but all I have so far is your machine is CPU bound and here are the top processes contact your applications people. Well I kind of already knew that. Just expecting some guidance on what might have changed to cause it.

"ps aux" yeilds:

Code:
USER         PID %CPU %MEM   SZ  RSS    TTY STAT    STIME  TIME COMMAND
jufackle 1022780  7.7  0.0 2452 2624 pts/118 A    13:52:51 672:41 /4js/runtime2.0
jufackle   26936  7.3  0.0 2760 2932 pts/118 A    12:38:20 682:48 /4js/runtime2.0
jufackle 1289150  7.3  0.0 2760 2932 pts/118 A    12:38:17 679:46 /4js/runtime2.0
root        4128  3.6  0.0   12   12      - A      Sep 11 743:06 wait
root        3354  3.6  0.0   12   12      - A      Sep 11 734:55 wait
root        3096  3.5  0.0   12   12      - A      Sep 11 718:31 wait
root        4386  3.5  0.0   12   12      - A      Sep 11 714:56 wait
root        3612  3.3  0.0   12   12      - A      Sep 11 681:29 wait
root        3870  3.3  0.0   12   12      - A      Sep 11 672:54 wait
root        2838  2.9  0.0   12   12      - A      Sep 11 603:28 wait
root         516  2.9  0.0   12   12      - A      Sep 11 601:12 wait

Looking at specifics about the processes being run by this user.
Code:
root@foobar:/ $ ps -fu jufackle
     UID     PID    PPID   C    STIME    TTY  TIME CMD
jufackle   26936       1  98 12:38:20 pts/118 686:26 /4js/runtime2.02.10/lib/fglrun-bin initmenu.42r
jufackle  191378  194832   0   Sep 12 pts/118  0:00 /bin/ksh /usr/local/bin/spi_startup.ksh -c localhost 42639
jufackle  194832  192060   0   Sep 12      -  0:01 sshd: jufackle@pts/118
jufackle  195414  191378   0   Sep 12 pts/118  0:00 /usr/local/bin/apscnmenu.4ge
jufackle  268184 1283180   0 13:52:51 pts/118  0:00 /bin/sh /spi/spishare/men4.3/bin/use_132.sh /usr/users/jufackle/schedu
jufackle 1022780  268184  91 13:52:51 pts/118 676:19 /4js/runtime2.02.10/lib/fglrun-bin view_lib.42r /usr/users/jufackle/sc
jufackle 1283180       1   0 13:39:37 pts/118  0:00 /4js/runtime2.02.10/lib/fglrun-bin schd24 runmode=schedule
jufackle 1289150       1  93 12:38:17 pts/118 683:28 /4js/runtime2.02.10/lib/fglrun-bin initmenu.42r

There have been no new processes spun off by the main initmenu.42r process since yesterday at 13:39. I am thinking the user still has the session open on his/her computer but what is it doing to use that much CPU.

The second scenario with no TTY associated with the process looks like this.

Code:
USER        PID %CPU %MEM   SZ  RSS    TTY STAT    STIME  TIME COMMAND
willic   256790  4.0  0.0 1460  648      - A    12:05:32 192:42 /peifas/apscn/si
kathyg   305536  3.9  0.0 1560 1204      - A    13:58:03 171:55 /peifas/apscn/si
dfrankli  40808  3.7  0.0  640  572      - A    13:09:34 168:59 /usr/local/bin/a
jquast   326370  3.4  0.0  640  536      - A    11:43:10 167:41 /usr/local/bin/a
batesj   470148  2.9  0.0  640  236      - A    08:57:05 160:06 /usr/local/bin/a
crenuart 383470  2.8  0.0  640  316      - A    08:21:54 160:07 /usr/local/bin/a
montiem  404560  2.8  0.0  640  532      - A    08:26:16 159:15 /usr/local/bin/a

Code:
root@foobar:/dump/perfpmr $ ps -fu willic
     UID    PID   PPID   C    STIME    TTY  TIME CMD
  willic 256790      1 120 12:05:32      - 192:53 /peifas/apscn/sis/../sped/bin/sped.4ge

Thanks for any guidance you could provide or should I say will provide.Smilie

If I am missing some data you might need please let me know.

Justin
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Runaway process. Opinions needed

not too long ago, i wrote a very short script that will bring up 4 customized xterms. The script went completely abnormal simply because of an error I had made in a while loop. This script took control of the system and rendered everything useless. The system admin team which i was part of... (4 Replies)
Discussion started by: TRUEST
4 Replies

2. UNIX for Dummies Questions & Answers

Runaway processes killed (Really need help)

I got about more than 300 emails from root with the subject "Runaway processes killed" saying that "13146 12737 97.7 6 bash" . So what should I do? Any help would be appreciate (2 Replies)
Discussion started by: Micz
2 Replies

3. Shell Programming and Scripting

I need some example of Co-Processes

I want to know how to work the Co-Processes in kornshell scripts. So, I very need some script about Co-Processes! thanks ...:) (3 Replies)
Discussion started by: javalee
3 Replies

4. UNIX for Advanced & Expert Users

Monitoring Processes - Killing hung processes

Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go? Thank you Richard (4 Replies)
Discussion started by: ukndoit
4 Replies

5. Programming

Runaway SIGALRM signal handler

I have written a program to demonstrate a problem I have encountered when using BSD style asynchronous input using the O_ASYNC flag in conjunction with a real time interval timer sending regular SIGALRM signals to the program. The SIGIO handler obeys all safe practices, using only an atomic update... (8 Replies)
Discussion started by: stewartw
8 Replies

6. Solaris

Identifying and grouping OS processes and APP processes

Hi Is there an easy way to identify and group currently running processes into OS processes and APP processes. Not all applications are installed as packages. Any free tools or scripts to do this? Many thanks. (2 Replies)
Discussion started by: wilsonee
2 Replies

7. UNIX for Dummies Questions & Answers

Runaway process

Hello all, My hosting provider has contacted me in order to notify about a runaway process issue. Here it is: They have given me a list of those processes but I can neither analyze nor understand what I should do. DATE Fri Nov 21 21:32:29 GMT 2008 SINFO hostname:... (2 Replies)
Discussion started by: elwoodblues47
2 Replies

8. Shell Programming and Scripting

Runaway String Problem

Database.txt John:30:40 echo -n "New Title Please :" read NewTitle awk -F":" 'OFS = ":"{ $1 = "'$NewTitle'" ; print $0 } ' Database.txt> Database2.txt mv Database2.txt Database.txt what this does, is that when i input something into $NewTitle, it will update $1 which is "John" into... (3 Replies)
Discussion started by: gregarion
3 Replies

9. Shell Programming and Scripting

Finding the age of a unix process, killing old processes, killing zombie processes

I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time. Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies

10. Shell Programming and Scripting

How to solve awk: line 1: runaway string constant error?

Hi All ! I am just trying to print bash variable in awk statement as string here is my script n=1 for file in `ls *.tk |sort -t"-" -k2n,2`; do ak=`(awk 'FNR=='$n'{print $0}' res.dat)` awk '{print "'$ak'",$0}' OFS="\t" $file n=$((n+1)) unset ak doneI am getting following error awk:... (7 Replies)
Discussion started by: Akshay Hegde
7 Replies
All times are GMT -4. The time now is 02:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy