- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I find a "hung port" on a server?
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
Discussions
Discussions
Discussions
Forums
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
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-27-2004 05:28 AM
тАО01-27-2004 05:28 AM
How can I find a "hung port" on a server?
Their Oracle Applications Web Server won't start, and one of the things that Oracle told them to look for was "hung ports".
I asked him for a list of ports to check, which he gave me. (7070, 8070, 8170, etc..)
So I wrote a script that did something like this:
..netstat -a | grep $PORT
..lsof -i TCP:$PORT
but what exactly should I look for?
..I see a lot of "ESTABLISHED"
................."LISTEN
I saw a few "FIN_WAIT_2", which I know is a bad thing, and we are researching them.
How do you "search for hung ports"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2004 05:37 AM
тАО01-27-2004 05:37 AM
Re: How can I find a "hung port" on a server?
There isn't any way to check if a port is hung or not. A port will be hung if the corresponding process is hung on the system.
One way is to do a 'telnet localhost port_number" to see if you get a response.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2004 05:39 AM
тАО01-27-2004 05:39 AM
Re: How can I find a "hung port" on a server?
If you know what port to look for, then attempting to find out what process(es) are using it, or if it is in a hung state gets MUCH simpler...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2004 05:42 AM
тАО01-27-2004 05:42 AM
Re: How can I find a "hung port" on a server?
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.70/
Then use it to find out what has the port(s) open:
# lsof -i tcp:7070
# lsof -i udp:7070
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2004 05:44 AM
тАО01-27-2004 05:44 AM
Re: How can I find a "hung port" on a server?
(I must learn to read more carefully)
lsof should show you the PIDs.
I don't know what else you could need.
If a port is open at all, it's unusable for another process.
So kill the process using the port, or have the DBA's
use different ports, if the process currently using it
is one that you don't want to kill or change ports on.