Unix Technical Forum

Problem with "Open sockets"

This is a discussion on Problem with "Open sockets" within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hellow, I have two Aix 5.2 boxes. The first one run websphere 5.02 and the second one runs Oarcle ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 06:59 AM
mtfuri@fibimail.co.il
 
Posts: n/a
Default Problem with "Open sockets"

Hellow,
I have two Aix 5.2 boxes. The first one run websphere 5.02 and the
second one runs Oarcle 10. I know I have a bug in the application
running on the websphere side. Due to this bug sockets are not closed
an stay forever in close_wait situation. The socket can be seen only
from the webspher side. I have waited for some hourse
but the are stiil open
tcp4 0 0 WebsphereHost.33441 OracleHost.1521 CLOSE_WAIT
tcp4 0 0 WebsphereHost.33443 OracleHost.1521 CLOSE_WAIT
tcp4 0 0 WebsphereHost.33445 OracleHost.1521 CLOSE_WAIT

I know it is possible to say to which procees on the WebSphere
Side those processes belong to (lsof -i) but I dont want to kill this
Java process. My question is how to "kill" those sockets
or force them to disappear during the weakend....

TIA
Uri

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:00 AM
0xbeef
 
Posts: n/a
Default Re: Problem with "Open sockets"

mtfuri@fibimail.co.il wrote in news:1121433209.079175.320690
@g49g2000cwa.googlegroups.com:

> Hellow,
> I have two Aix 5.2 boxes. The first one run websphere 5.02 and the
> second one runs Oarcle 10. I know I have a bug in the application
> running on the websphere side. Due to this bug sockets are not closed
> an stay forever in close_wait situation. The socket can be seen only
> from the webspher side. I have waited for some hourse
> but the are stiil open
> tcp4 0 0 WebsphereHost.33441 OracleHost.1521 CLOSE_WAIT
> tcp4 0 0 WebsphereHost.33443 OracleHost.1521 CLOSE_WAIT
> tcp4 0 0 WebsphereHost.33445 OracleHost.1521 CLOSE_WAIT
>
> I know it is possible to say to which procees on the WebSphere
> Side those processes belong to (lsof -i) but I dont want to kill this
> Java process. My question is how to "kill" those sockets
> or force them to disappear during the weakend....


You cannot kill them, they are not processes but connections that the
kernel's TCP stack is aware of.

man no (network options command), relevant options are tcp_timewait,
tcp_keepidle and tcp_keepint.

You should look at changing the TCP_TIMEWAIT variable, I refer you to
http://publib.boulder.ibm.com/infoce...6r0/index.jsp?
topic=/com.ibm.websphere.base.doc/info/aes/ae/tprf_tuneaix.html.

no -o tcp_timewait = 1 # 15 seconds


0xbeef

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 07:03 AM
Frank Fegert
 
Posts: n/a
Default Re: Problem with "Open sockets"

mtfuri@fibimail.co.il wrote:
> Hellow,
> I have two Aix 5.2 boxes. The first one run websphere 5.02 and the
> second one runs Oarcle 10. I know I have a bug in the application
> running on the websphere side. Due to this bug sockets are not closed
> an stay forever in close_wait situation. The socket can be seen only
> from the webspher side. I have waited for some hourse
> but the are stiil open
> tcp4 0 0 WebsphereHost.33441 OracleHost.1521 CLOSE_WAIT
> tcp4 0 0 WebsphereHost.33443 OracleHost.1521 CLOSE_WAIT
> tcp4 0 0 WebsphereHost.33445 OracleHost.1521 CLOSE_WAIT
>
> I know it is possible to say to which procees on the WebSphere
> Side those processes belong to (lsof -i) but I dont want to kill this
> Java process. My question is how to "kill" those sockets
> or force them to disappear during the weakend....


Did you try rmsock? In some cases it worked for me. Still
this is not a good solution. Get your App. fixed as soon
as possible!

Regards,

Frank
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com