Solved

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

Posted on 2011-02-23
2
912 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VPS for routing recomendations 3 66
servlet example 17 52
spring jars download 1 35
throw exception 21 58
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

829 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