-1

On a linux machine, am trying to start Glassfish server.

./startserv

This returns the following message:

There is a process already running using the admin port 4848 -- it is probably another instance of a Glassfish server

Have tried to identify which process this is with the following command:

lsof -t -i tcp:4848

On another machine on which Glassfish is running, this command returns the process id used by Glassfish. However, on the machine on which we are having the issue, nothing is returned.

What is the best way to identify and kill the process using port 4848, given that the lsof -t -i tcp:4848 is not helping?

Thanks

user1052610
  • 4,440
  • 13
  • 50
  • 101

1 Answers1

0

Try to run as root:

netstat -tlenp | grep ':4848'

In last column you have pid/name of process listening on port. Now you should be able to kill process identified by pid.

https://explainshell.com/explain?cmd=netstat+-tlenp

JFK
  • 56
  • 3