Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

7 Answers

up vote 4 down vote accepted

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.

share|improve this answer
    
use | findstr 8080 or | findstr LISTENING to filter the netstat output –  radius Jul 21 '09 at 16:48
add comment

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.

share|improve this answer
add comment

This can be done easily using the netstat utility.

share|improve this answer
add comment

use NETSTAT in a command prompt.

Wikipedia also lists the parameters.

share|improve this answer
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
add comment
telnet localhost 8080

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

share|improve this answer
    
Tomcat could be listening just on internal / external interface and not on all / loopback interface. This test is not perfect. –  Saurabh Barjatiya Jul 21 '09 at 16:42
    
also, a port is not necessarily available just because there is no application properly accepting connections. –  Jan Jungnickel Jul 21 '09 at 16:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.