08-11-2009
Port hang issue in AIX Version 5.3
On AIX platform we are having Weblogic 8.1 as the middleware for an application.
The application is deployed in Weblogic on AIX platform and the server is having 2 dedicated listening ports for any incoming requests.
Output for netstat -an command for the port 30001 is as follows:-
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.20501 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.47428 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.48077 ESTABLISHED
tcp 0 0 *.30001 *.* LISTEN
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.52664 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.53170 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55643 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55667 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55668 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55669 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55680 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55691 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55694 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55703 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55719 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55753 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55755 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55758 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55761 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55762 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Y.Y.Y.Y.55781 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.54436 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.54891 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.55333 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.31796 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.31979 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.32428 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.59195 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.59314 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.10405 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.59457 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.12872 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.12943 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.39168 ESTABLISHED
tcp4 0 0 X.X.X.X.30001 Z.Z.Z.Z.42803 ESTABLISHED
With time the no. of established connection get increased and as soon as the count reaches more than 300 the port gets hanged.
The only workaround as of now available to us is to bounce the application server to bring up the ports in listening status.
FYI, the ip's Y.Y.Y.Y and Z.Z.Z.Z can be connected through telnet.
Please suggest how to release these established ports without restarting the application.
Let me know if you require any further information.
Thank U in advance.
10 More Discussions You Might Find Interesting
1. AIX
Hello there!
I have a RS-6000 7043-140 machine with AIX version 4.1.5, that is
working for almost 8 years now. It has a tty monitor. My problem
started when I upgraded my machine to install a gxt250 graphics adapter
card together with a 15" AOC VGA Monitor, logitech keyboard and mouse, ... (2 Replies)
Discussion started by: bright_genius
2 Replies
2. AIX
Hi all,
My AIX machine desktop was hanged.
What to do.
please help me.
It's very urgent.
Thank's & regards,
Balaraju. (7 Replies)
Discussion started by: balarajum
7 Replies
3. UNIX for Advanced & Expert Users
Hi Guys,
Just wondering if I have a child process which is basically hanging and I can see that is on sleep or wait mode if I want to remove/terminate this process , the signal has to come from its parent I assume. The reason I'm asking this is because I'm facing a db2 hang situation and we... (3 Replies)
Discussion started by: hariza
3 Replies
4. Solaris
Hi,
I am facing some issues on Solaris 10 (SPARC 5.10 Generic_118833-36). The issue is when I try to connect/login through CDE it hangs (hangs at login screen). I tried connecting thourgh VNC client also but that also not helped. I had done no configuration change or modified any kernel... (2 Replies)
Discussion started by: kgupta
2 Replies
5. Solaris
I have a solaris10 zone running an oracle db in it. The zone hangs after some time the db is started and i 'm unable to log into the zone after that so i have to halt and restart the zone along with db .. but after few hrs again it hangs. What would be the reason for it. I did svcs -xv and got... (13 Replies)
Discussion started by: fugitive
13 Replies
6. AIX
Guy's
I have configured DNS like the below but I faced another issue !
nameserver 172.18.14.7
nameserver 172.18.14.8
domain domain.com
When I ping any Host from the server itself its replaying me the IP of that hosts that's mean DNS is working fain
but when I try to ftp or telnet... (8 Replies)
Discussion started by: Mr.AIX
8 Replies
7. AIX
hello all,
I'm newbie on AIX. Can any one tell why this happen ? I have expectation this error came because paging memory.
This is my error : ( I cann;t read this log and need your help)
---------------------------------------------------------------------------
LABEL: ... (7 Replies)
Discussion started by: Fandikurnia
7 Replies
8. Programming
Hi,
I ported a file system from Kernel version 2.6.18.* to 2.6.32.46 as VFS implementation has changed and prepare_write/commit_write are replaced by write_begin/write_end pairs.
Implemented the feature by writing a wrapper for write_begin and write_end and calling original functions for... (0 Replies)
Discussion started by: Praveen_218
0 Replies
9. Shell Programming and Scripting
i have one function block in the beginning of my script and there are some commands inside that function which will perform some operations.
And i am invoking that function from my main script by passing some values. Sometimes it is hanging in the middle for some value.
For example:
For 1st... (3 Replies)
Discussion started by: thomasraj87
3 Replies
10. AIX
Been trying to get a directory NFS-mounted with no success. I've tried both NFS v3 and v4, but currently trying v4. I can't figure out what's going on here.
server: sbkovwadmd01
sbkovwadmd01# chnfsdom
Current local domain: edw.dev
sbkovwadmd01# lssrc -a | grep nfs | grep active
nfsd ... (3 Replies)
Discussion started by: eckertd
3 Replies
LEARN ABOUT REDHAT
socket
socket(n) Tcl Built-In Commands socket(n)
__________________________________________________________________________________________________________________________________________________
NAME
socket - Open a TCP network connection
SYNOPSIS
socket ?options? host port
socket -server command ?options? port
_________________________________________________________________
DESCRIPTION
This command opens a network socket and returns a channel identifier that may be used in future invocations of commands like read, puts and
flush. At present only the TCP network protocol is supported; future releases may include support for additional protocols. The socket
command may be used to open either the client or server side of a connection, depending on whether the -server switch is specified.
CLIENT SOCKETS
If the -server option is not specified, then the client side of a connection is opened and the command returns a channel identifier that
can be used for both reading and writing. Port and host specify a port to connect to; there must be a server accepting connections on
this port. Port is an integer port number and host is either a domain-style name such as www.sunlabs.com or a numerical IP address such as
127.0.0.1. Use localhost to refer to the host on which the command is invoked.
The following options may also be present before host to specify additional information about the connection:
-myaddr addr
Addr gives the domain-style name or numerical IP address of the client-side network interface to use for the connection. This
option may be useful if the client machine has multiple network interfaces. If the option is omitted then the client-side interface
will be chosen by the system software.
-myport port
Port specifies an integer port number to use for the client's side of the connection. If this option is omitted, the client's port
number will be chosen at random by the system software.
-async The -async option will cause the client socket to be connected asynchronously. This means that the socket will be created immedi-
ately but may not yet be connected to the server, when the call to socket returns. When a gets or flush is done on the socket before
the connection attempt succeeds or fails, if the socket is in blocking mode, the operation will wait until the connection is com-
pleted or fails. If the socket is in nonblocking mode and a gets or flush is done on the socket before the connection attempt suc-
ceeds or fails, the operation returns immediately and fblocked on the socket returns 1.
SERVER SOCKETS
If the -server option is specified then the new socket will be a server for the port given by port. Tcl will automatically accept connec-
tions to the given port. For each connection Tcl will create a new channel that may be used to communicate with the client. Tcl then
invokes command with three additional arguments: the name of the new channel, the address, in network address notation, of the client's
host, and the client's port number.
The following additional option may also be specified before host:
-myaddr addr
Addr gives the domain-style name or numerical IP address of the server-side network interface to use for the connection. This
option may be useful if the server machine has multiple network interfaces. If the option is omitted then the server socket is
bound to the special address INADDR_ANY so that it can accept connections from any interface.
Server channels cannot be used for input or output; their sole use is to accept new client connections. The channels created for each
incoming client connection are opened for input and output. Closing the server channel shuts down the server so that no new connections
will be accepted; however, existing connections will be unaffected.
Server sockets depend on the Tcl event mechanism to find out when new connections are opened. If the application doesn't enter the event
loop, for example by invoking the vwait command or calling the C procedure Tcl_DoOneEvent, then no connections will be accepted.
CONFIGURATION OPTIONS
The fconfigure command can be used to query several readonly configuration options for socket channels: |
-error |
This option gets the current error status of the given socket. This is useful when you need to determine if an asynchronous connect |
operation succeeded. If there was an error, the error message is returned. If there was no error, an empty string is returned.
-sockname
This option returns a list of three elements, the address, the host name and the port number for the socket. If the host name cannot
be computed, the second element is identical to the address, the first element of the list.
-peername
This option is not supported by server sockets. For client and accepted sockets, this option returns a list of three elements; these
are the address, the host name and the port to which the peer socket is connected or bound. If the host name cannot be computed, the
second element of the list is identical to the address, its first element.
SEE ALSO
flush(n), open(n), read(n)
KEYWORDS
bind, channel, connection, domain name, host, network address, socket, tcp
Tcl 8.0 socket(n)