?
Solved

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

Posted on 2011-02-23
2
Medium Priority
?
916 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 47

Accepted Solution

by:
for_yan earned 1000 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 1000 total points
ID: 34967864
you can use lsof or netstat for that
0

Featured Post

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn different types of Android Layout and some basics of an Android App.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month10 days, 2 hours left to enroll

762 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