microsoft / java-wdb

Windows Developer Box for Java Developers
MIT License
75 stars 1 forks source link

Dashboard on open ports and services #2

Open JurrianFahner opened 4 years ago

JurrianFahner commented 4 years ago

Summary

It would be nice if there would be an app on which you easily have an overview of the open ports and services started by the logged in user (without listing all the system apps). Sometimes you want to know which ports are open and by which process they are used.

Also resources consumption can be part of this dashboard.

We can do it by many different tools already, but some tool which combines this information can be useful.

brunoborges commented 4 years ago

@JurrianFahner how do you do that today? Is there a way? netstat for Windows?

crimsonvspurple commented 4 years ago

Something like this in the task manager would be really nice.

I have faced situations where somehow a zombie service is holding on the port and now a new service can't be started. Since all of them show up as java in taskman, have to go port hunting in netstat.

Another way is resmon. But even though you can find the process/PID from there by port, you can't kill it from that UI for some reason. Have to look up that PID in taskman again or resort to taskkill /pid

mkq commented 4 years ago

I sometimes use Sysinternals TCPView for that.

JurrianFahner commented 4 years ago

@brunoborges Nowadays you try to do ctrl-c and hope for the best. Netstat gives some info but is not so feature rich.

I think that he suggestion of @crimsonvspurple is quite nice to incorporate that in the taskmanager somehow. When I look at the windows terminal, I'm quite convinced that the taskmanager could be refurbished as well.

It would be nice if we have the following details available in the taskmanager:

  1. port of the program (if any)
  2. a nice plot of the memory usage of the process
  3. a nice plot of the cpu usage of the process
  4. path of the binary and the command line flags that are being used

But maybe also other information might be useful as well.

msaxer commented 4 years ago

When I run into the port-in-use issue I use Nirsoft's Currports to track down the culprit. Having this functionality built into Task Manager (as a user-selected column in the Details view perhaps?) would be great.