Hello - does anyone know an easy way to relate the Unix process ID (Linux) for an AOLServer thread back to the server.log file. Can TCL get the Unix process ID for a thread?
>From what I can tell, server.log entries say [PPID.xxx], where: [09/Aug/2003:11:38:33][23511.6151][-conn0-] Notice: get=tid0x84845a0, getid=6151, pid=23521 23511 is the parent process id 6151 is some internal thread ID The number I really want is the last one, 23521, so that if we see a process in "top" using tons of CPU time, we can figure out what that thread is running. But the only way I know to get the pid is: set unixpid [lindex [read [set fd [open /proc/self/stat r]]] 0] close $fd This seems like a lot of overhead, and we'd have to do it on every request. Any ideas? Thanks in advance! Jim -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
