Terminating Misbehaving Processes

Let’s say you notice the system running more slowly than you think it should; you use su to access root, fire up top, and look at the processes. Sure enough, you see something like what’s shown in Listing 15.4.

Listing 15.4. Output of top Showing a Possible Runaway Process
last pid: 67469; load averages: 8.32, 5.49, 2.47 up 53+01:04:22 20:34:42 90 processes: 1 running, 88 sleeping, 1 zombie CPU states: 93.2% user, 0.0% nice, 0.2% system, 0.8% interrupt, 5.8% idle Mem: 153M Active, 23M Inact, 60M Wired, 7252K Cache, 35M Buf, 5112K Free Swap: 500M Total, 44M Used, 456M Free, 8% Inuse PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 19460 frank 1 2 0 25908K 2816K poll 0 131:15 92.43% testprog 67468 root ...

Get FreeBSD6 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.