(On OS X 10.11.3) I'm having a problem starting a java process that needs to listen on port 8040. Getting a BindException. So seems like somebody else is already listening on it. A quick check confirms that:
lsof -i TCP| fgrep LISTEN | grep 8040 jspawnhel 13566 alon 255u IPv6 0x2a5edc8fe0a093d7 0t0 TCP *:8040 (LISTEN) jspawnhel 14482 alon 255u IPv6 0x2a5edc8fe0a093d7 0t0 TCP *:8040 (LISTEN) jspawnhel 81770 alon 255u IPv6 0x2a5edc8fe0a093d7 0t0 TCP *:8040 (LISTEN) So, I'm trying to figure out what these processes are, but I don't understand what ps is showing me:
ps ax | grep "13566\|14482\|81770" 13566 ?? U 0:00.00 313:316 14482 ?? U 0:00.00 324:327 81770 ?? U 0:00.00 301:304 what does the "??" mean? what is 313:316 in this context?
I can't kill it either, even with -9:
kill -9 13566 ps ax | grep 13566 13566 ?? U 0:00.00 313:316 Tried many times...
Any help is appreciated.