One of my program(A) got binded with an UDP port (20500) which should be assigned to another program(B), here are the steps for trace down where A binded this port:
1. start the process with strace log:
strace -f -s 128 -o proxy.strace ./pxyserverapp_redhat
2. Find out the PID of the process, also check whether the port was taken.
netstat -anp | grep pxy
3. show socket handle list created by this process
cd /proc/28803/fd Continue reading “Using strace for troubleshoot an UDP port issue”