- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: port is not released properly when server appl...
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
11-04-2002 07:24 PM
11-04-2002 07:24 PM
port is not released properly when server application is down
This application has run smoothly for long time, but recently, odd things happens. Some time we bring down the server, wait 5 miutes, but cannot restart it because there is an error "The port xxx is being used".
We have check system by netstat, this port is not there, and no other application use this port. We also check our client application is not running, and no connection to the server on this port.
appreciated if anybody can help me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 08:02 PM
11-04-2002 08:02 PM
Re: port is not released properly when server application is down
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
Here's how to use it.
To which files are open for a given process id (pid)
# lsof -p
To see all the open files associated with a particular command.
# lsof -c midaemon
User name
# lsof -u
# lsof -u
processes being used via a socket.
# lsof -i tcp:23
# lsof -i udp:123
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 09:04 PM
11-04-2002 09:04 PM
Re: port is not released properly when server application is down
you can get the lsof for 64 bit from
ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/binaries/hpux/B.11.00/vxfs/64/9000_800/
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 09:42 PM
11-04-2002 09:42 PM
Re: port is not released properly when server application is down
the trick is getting 64 bit binary version of lsof from the site:
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/
download and run like
lsof | grep the port no the app is saying then u can go and kill the processe associated with it
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 11:02 AM
11-06-2002 11:02 AM
Re: port is not released properly when server application is down
you might try taking a tusc trace of the startup of the server and just make sure that it is indeed failing on a bind() call, and also make sure that it is making a setsockopt() call to set SO_REUSEADDR.
tusc from ftp.cup.hp.com under dist/networking/tools/
if the server deamonizes, make sure you set tusc to follow forks. also, you should probably do a verbose trace (-v)
of course, the usual song and dance about being up on the latest Transport patches applies :)