- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Network usage of processes - any easy way?
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
07-12-2005 12:25 AM
07-12-2005 12:25 AM
Network usage of processes - any easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 12:34 AM
07-12-2005 12:34 AM
Re: Network usage of processes - any easy way?
lsof | grep lan
Other than this, I would like to know if anyone has any elaborate solution to this myself too.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 12:50 AM
07-12-2005 12:50 AM
Re: Network usage of processes - any easy way?
However if it creates a socket then LISTENs for connections, then you can monitor inbound traffic like this.
Create a virtual interface with a different IP e.g. ifconfig lan1:1 unused_ip netmask.
Tell the clients of this one application to connect to the IP of the virtual interface instead of the usual one.
Then monitor the traffic using netstat -i
It only helps you one way but its better than nothing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 01:00 AM
07-12-2005 01:00 AM
Re: Network usage of processes - any easy way?
lsof -i tcp
to find the PROCESS-ID, then you can monitor
the process using Glance and also lsof -p
also, for udp:
lsof -i udp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 02:52 AM
07-13-2005 02:52 AM
Re: Network usage of processes - any easy way?
If you are curious about a specific application, and you've learned its "network" file descriptors via lsof, you could I suppose use tusc to trace the system calls involving those file descriptors, and parse things like the return values from read and write to see how much data that application is exchanging. The overhead is probably non-trivial.
Or, if you know you are interested in a specific port number (because you know that connections involving application foo involve that port number) you could use tcpdump or perhaps ethereal to trace the actual traffic. That too can give you bytes per second (when parsed at least) and can also give packets per second - CPU overhead of networking is a much governed by packets per second as it is bytes per second.
Finally, some of the logging features of ipfiler may be able to give you something akin to what you want. I've not tried it myself, but seem to recall seeing posts elsewhere to that effect.