On May 3, 2010, at 3:31 PM, cad wrote:

MDD ---- OSX.4.11
Activity monitor running, down the list of running processes, Python shows up with a red 'not responding' comment.

Starting immediately after booting, Python is OK, shortly after starting 'Mail' it shows up as 'Not Responding'.

Doesn't seem to be causing a problem, but it's a nagging question --- Why??

The appropriate question is 'what Python script is running'. Python in and of itself, should not be running, unless some script is running. Click the Python instance in Activity Monitor, click inspect and see what the parent process is.

If that doesn't give you a clue, open a Terminal window and run the command:

sudo lsof

And you will eventually get a long list of open files and the process that has them open. This way you can track the Python instance to the script that's hung up.

you can do

sudo lsof > openfiles.txt

and when it's done, open up openfiles.txt and search it.


lsof stands for 'LiSt Open Files' and does exactly what it implies it lists all open files on the system and the process that has opened them. It takes a long time, but eventually you get a VERY diagnostic list of open files:

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME launchd 1 root cwd DIR 14,2 1836 2 / launchd 1 root txt REG 14,2 304208 23062556 /sbin/launchd launchd 1 root txt REG 14,2 1059792 23070170 /usr/lib/dyld launchd 1 root txt REG 14,2 146624512 30185974 /private/var/db/dyld/dyld_shared_cache_i386 launchd 1 root 0r CHR 3,2 0t0 68410884 /dev/null launchd 1 root 1w CHR 3,2 0t0 68410884 /dev/null launchd 1 root 2w CHR 3,2 0t246 68410884 /dev/null launchd 1 root 3u KQUEUE count=0, state=0x1 launchd 1 root 4u systm 0x4148604 0t0 [1:1:0] launchd 1 root 5u unix 0x41d5bb0 0t0 /var/tmp/launchd/sock launchd 1 root 6r REG 14,2 710 30532296 /Library/Preferences/SystemConfiguration/ com.apple.smb.server.plist

and on and on and on.

The stuff above is just the basic 'OSX is running' things. The interesting stuff (from your point of view) is further down, search that for 'python' or '.py' and see what you can find
--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs


--
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/g3-5-list

Reply via email to