Site TIPS PAGE🔎   UP ONE LEVEL
 OJB's Web Site. V 2.1.tip tips mac owen2 
Tip

Up to OJB's Mac Tips List

Terminal: Fixing a Hang

Sometimes your Mac might stop responding to the mouse or keyboard or only respond slowly. For example, it might take a long time for a program to launch, menus or windows might re-draw slowly, or things might seem to completely stop. Unless you see the kernel panic screen, telling you to restart, the system hasn't really crashed so you could try some of the techniques mentioned here.

Try to launch the terminal. Even if the machine is slow, be patient. Display the processes using most of the CPU by using "top -u 10". After a few seconds it should be obvious which process is "hogging" the CPU. Make a note of its process number (the first number in the PID column) and its name (second column).

If the process is a program you are running and the program isn't doing something that is really CPU intensive (for example, calculating stats for a couple of million numbers or something) try quitting it normally. If it won't respond try command-option-escape and force quit it. If this doesn't work try the kill command in the terminal. Try "kill -9 x", where x is the process ID number you found above.

If the machine is so unresponsive that you can't run terminal you could try checking it over the network (or Internet) from another computer. The remote login must be already set up on the problem machine for this to work. See the Remote Secure Login tip in this area for details. Use "ssh name@computer" from a working computer, where "name" is the short name of the administrator of the problem machine and "computer" is the domain name or IP address of the problem machine. Enter the administrator's password then use the commands in the tips section here ("top" and "kill") to terminate the problem process.

When you figure out which process is causing the problem you should try to fix the error. If the process is network related (eg inetd) there might be something happening on your network (a packet storm or denial of service attack, for example). If the process is a driver (for example for a scanner) you might want to check connections, update the driver, or use the device without a driver, if possible.



My latest blog post: Manufactured Outrage: We might be beginning to win some battles, but the war is far from over. (posted 2024-12-17). My latest podcast: OJB's Podcast 2024-12-04 Avoid Microsoft.
 ©2024 by OJBBlogMS Free ZoneMac Made
T: 13. H: 216,614,831
Features: RSS Feeds Feedback LogMod: 07 Jun 2024