• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 923
  • Last Modified:

How to see which process open socket in Linux(Redhat)

Hi: I have an application which is written by Java and runs on a Linux machine. Redhat is OS. It seems that there is many socket open without being closed. How could I know from OS level which process has opened socket?

2 Solutions

I guess if your java appliaction running in java  virtual machine keeps open sockets on the system level you'll see it
as belonging to your  java command  - corresponding to the start of the virtual machine

you can use lsof or netstat for that
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now