10

Tomcat won't start, and it has worked perfectly before. I suspect something else is running on port 8080. I am running Windows Vista. How do I check that nothing else is using port 8080?

I have recently downloaded several versions of Jetty. Could this be the problem? I am not running them concurrently so I can't see how.

1

7 Answers 7

18

Open up a command prompt and run

netstat -ano | findstr 8080

Rightmost column is PID

In task manager you can add column for PID then find the app that is using the port.

1
  • use | findstr 8080 or | findstr LISTENING to filter the netstat output
    – radius
    Jul 21, 2009 at 16:48
1

I think you can run cmd as administrator and use netstat command to see if port 8080 is being used. Use netstat /? for help with netstat command. I do not know any GUI based approach for the same.

1

In addition to netstat you can also use Process Hacker or ActivePorts to view open ports in real-time (ok, specific refresh intervals...)

0

This can be done easily using the netstat utility.

0

use NETSTAT in a command prompt.

Wikipedia also lists the parameters.

0

Try this command:

netstat -aon | findstr "8080"

This command will give process ID's. Then go to task manager and stop the process with this process id and then restart tomcat.

-1
telnet localhost 8080

If you can connect, then something's listening on the port.

2
  • Tomcat could be listening just on internal / external interface and not on all / loopback interface. This test is not perfect. Jul 21, 2009 at 16:42
  • also, a port is not necessarily available just because there is no application properly accepting connections. Jul 21, 2009 at 16:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .