LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-30-2008, 07:15 AM   #1
barunva
LQ Newbie
 
Registered: Mar 2007
Location: Bangalore
Posts: 4

Rep: Reputation: 0
Question which port number is heavily accessed


Hi,

I would like to know which port number is heavily loaded/accessed in the unix system. Is there any command to check the usability of particular port number?

For example, if i want to check the port number 80, in the following scenarios,
how many users are accessing and their usage of the resource?

Regards,
Arun
 
Old 10-30-2008, 08:37 AM   #2
ddaemonunics
Member
 
Registered: May 2008
Location: Romania
Distribution: Debian
Posts: 242

Rep: Reputation: 41
You should look at this from the software perspective..the software that listens at port 80.
Because you will find for sure.. lets say that apache is listening on port 80..some utilities that will show you the load on apache..diferent users that are accessing the server etc..cpu load generated by apache, memory usage for apache processes
just my 2 cents..

if you know what process listens on some port you could use utilities like top.

Last edited by ddaemonunics; 10-30-2008 at 08:40 AM.
 
Old 10-30-2008, 08:49 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
You can get a decent snapshot summary of open ports with
Code:
lsof | grep IPv
This will show the names of the programs using the ports, as well as the users and PIDs. Some port numbers will be displayed in name format, and you can refer to /etc/services to look up their numeric values, if that is more useful.

--- rod.

Last edited by theNbomr; 10-30-2008 at 08:51 AM.
 
Old 10-30-2008, 07:04 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Also for Apache, look at the access_log.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
internal LAN IPs to get accessed from Internet ( not through port forwarding ) edywas Linux - Networking 4 10-26-2007 03:30 PM
USB to serail port adaptor COM port number areftaidi Linux - Software 2 09-25-2007 01:05 AM
Port number.... help rajsun Programming 2 04-12-2005 09:20 AM
Ip and port number Alien18 Linux - Networking 1 09-13-2004 09:40 PM
kdeinit process running heavily cbb Linux - Software 0 09-10-2004 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration