[p4] How can I tell which machine a p4d process is talking to ?

Steve Smythe ssmythe at docent.com
Tue Dec 18 09:06:46 PST 2001


Keep in mind that you'll want to choose only the latest PID
in the log.  PIDs get reused many times a day on busy systems.
I added a "tail -1" after your grep...

Steve

-----Original Message-----
From: Brian Moyers [mailto:bmoyers at bea.com]
Sent: Tuesday, December 18, 2001 8:39 AM
To: kmac at apple.com; perforce-user at perforce.com
Subject: RE: [p4] How can I tell which machine a p4d process is talking
to?


Here is a little script that will show you the entries in your P4 log (if
you have -v1 or -v2 logging enabled) for processes that have been on cpu for
a while:

-------------------
#!/bin/sh
PIDS=`ps -ef |grep p4d |grep -v 0:00 | awk ' { print $2 } '`
PSP4LOG=/p4/p4.log

for i in $PIDS ; do
  grep "pid $i" $PSP4LOG | tail -1
done

--------------------

run it a few times in a row to see the real hogs.

Hope that helps

Brian Moyers
Sr. Software Engineer, Infrastructure
BEA Systems
(415) 402-7416
bmoyers at bea.com
-----Original Message-----
From: perforce-user-admin at perforce.com
[mailto:perforce-user-admin at perforce.com]On Behalf Of Karl Elvis MacRae
Sent: Monday, December 17, 2001 2:57 PM
To: perforce-user at perforce.com
Subject: [p4] How can I tell which machine a p4d process is talking to?



Once in a while I have a user do something disruptive like
delete a depot in the middle of the day (which seems to hang
perforce until the delete completes). I see, on my Solaris perforce server,
the p4d processes backing up while waiting for the server to respond.

But I can't tell, when this is happening, what host the hang is coming from.
So I can't tell who's issued a p4 depot -d (or whatever the command was).

Is there any way to identify which process is talking to which host?

If I can identify which host, I can track it to a user running a command
that may be hanging things up.


-Karl

--
Karl Elvis MacRae    VLSI CAD    Apple Computer    kmac at apple.com
408-974-0847 (voice) 408-313-5741 (cell)
_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user

_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user



More information about the perforce-user mailing list