Operating System - HP-UX
1837097 Members
2216 Online
110112 Solutions
New Discussion

Re: wrong established connections in netstat

 
Antonio Cardoso_1
Trusted Contributor

wrong established connections in netstat

Hi,

On a HP-UX 11.11, looking at netstat or lsof, I find several TCP connections with ESTABLISHED status that no more exist on the remote host.
For example:
tcp 0 0 192.168.10.10.6121 192.168.10.20.1204 ESTABLISHED
tcp 0 0 192.168.10.10.5101 192.168.10.20.4690 ESTABLISHED
tcp 0 0 192.168.10.10.5001 192.168.10.20.1201 ESTABLISHED

192.168.10.10 is my HP server, with processes still having ESTABLISHED connections to 192.168.10.20.
On 192.168.10.20, none of these connections exist.
All of these connections are Corba connections opened by applications running Java 1.4.2_04 / Jacorb 1.4.1.12

Is this caused by some applicative incorrect behavior?
Are you aware of some system parameter that would detect/close these "ghost" connections?

thanks.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: wrong established connections in netstat

Shalom Antonio,

This is caused usually by poor code in the java server.

Make sure its completely patched and the applicaiton itself checked as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: wrong established connections in netstat

It seems that the applications is not closing correctly the connection. Your applications should be checked.

You may want to try enabling tcp keepalive.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=974906
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Antonio Cardoso_1
Trusted Contributor

Re: wrong established connections in netstat

Hi SEP and Ivan,

I audited with HPJConfig recently and found no missing patch on server side.

The tcp_keep_alive is configured with system default settings (2 hours):
root # ndd -get /dev/tcp tcp_keepalive_interval
=> 7200000
but this doesn't seem to detect anything...

Connections are controlled by ORB, so I will look for some discussions in JacORB forums.
Antonio Cardoso_1
Trusted Contributor

Re: wrong established connections in netstat

Found a jacorb property, and will check if
setting jacorb.connection.server.keepalive=on changes something...