Site TIPS PAGE🔎 SEARCH  Ξ INDEX  MAIN MENU  UP ONE LEVEL
 OJB's Web Site. Version 2.1. Mac Tip.You are here: 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.



I usually write a blog post about once a week. The latest post can be viewed here: Garbage: Democracy dies in darkness, especially when it is buried in garbage! (posted 2024-11-01 at 12:31:14). I do podcasts too!. You can listen to my latest podcast, here: OJB's Podcast 2024-08-22 Stirring Up Trouble: Let's just get every view out there and fairly debate them..
 Site ©2024 by OJBWeb ServerMicrosoft Free ZoneMade & Served on Mac 
Site Features: Blog RSS Feeds Podcasts Feedback Log07 Jun 2024. Hits: 149,413,688
Description: Mac TipKeywords: Macintosh,Computers,Fixing Problems,TipsLoad Timer: 11ms