Solved

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

Posted on 2011-02-23
2
902 Views
Last Modified: 2012-05-11
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?

0
Comment
Question by:JianJunShen
2 Comments
 
LVL 47

Accepted Solution

by:
for_yan earned 250 total points
ID: 34967859

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

http://www.tech-recipes.com/rx/227/find-out-which-process-is-holding-which-socket-open/
0
 
LVL 92

Assisted Solution

by:objects
objects earned 250 total points
ID: 34967864
you can use lsof or netstat for that
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This video teaches viewers about errors in exception handling.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now