As a system admin, these kind of scenario is very common where we need to find a PID of one process which is running on a specified port. In JBoss administration this comes very handy.
In this case, consider jboss is not started up due to the error , Port already in use 51315
You need to find the PID of the process which used the port 51315 and kill so that Jboss can have a clean start.
lsof is a command which help you here, with option -i and hostname:port.
lsof -i @testjbsuat75:51315
Here testjbsuat75 is the hostname and port is 51315
Now we get the PID and you can Kill it using Kill -9 command.
You can find the process which are running by
netstat -ia | grep 513