- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: need help understanding netstat -a output
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 09:16 AM
01-06-2003 09:16 AM
need help understanding netstat -a output
Also, is there any limit on the number of connections spawned by a listening socket?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 09:54 AM
01-06-2003 09:54 AM
Re: need help understanding netstat -a output
When you write software for sockets you have the option of reusing the socket. If you do not allow socket reuse then the maximum is 1. If you do then your maximum can vary depending on the OS and the application and the amount of memory available on the system. Often an application will have a flexible limit on the maximum number of connections allowed in its config file.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 10:47 AM
01-06-2003 10:47 AM
Re: need help understanding netstat -a output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 02:20 PM
01-06-2003 02:20 PM
Re: need help understanding netstat -a output
Each connection requires some amount of memory for buffers, stacks etc. The application will also need to reserve some memory for each connection.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 02:38 PM
01-06-2003 02:38 PM
Re: need help understanding netstat -a output
sapgw81 is the service name as defined in your /etc/services file. If you do a netstat -an, you would see it as a corresponding port number. If it is in LISTEN state, then there is a corresponding process associated with the port that will respond to the connections to it.
When a connection is made to this port (for ex., myhost2 , the socket will spawn a new socket with it's properties and returns a new file descriptor that will be used during the connection with myhost2 through the arbitrary port 33555. The original socket (*.sapgw81) will remain open for incoming requests and that goes on.
Since this involves creation of file descriptors, all the file parameters such as maxfiles, nfile limit the number of socket connections.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2003 02:45 PM
01-06-2003 02:45 PM
Re: need help understanding netstat -a output
Look at this tutorial on socket programming. You don't need to understand the "code" part of it but theory part of it gives a good explanation of how the sockets work.
http://www.scit.wlv.ac.uk/~jphb/comms/sockets.html
-Sri