users@glassfish.java.net

Re: GF v2.1: TCP conn hanging with CLOSE_WAIT

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 06 Apr 2009 20:45:43 -0400

Salut,

glassfish_at_javadesktop.org wrote:
> Hello Jeanfrancois,
> Thank you very much for taking time to respond to our inquiry.

You are welcome!

> In fact, the given option+value are currently commented out in our domain.xml.
> We will add the option. However, we are not quite sure:
> 1) what the option does.

See:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=5321

> 2) how it may relate to our issue (is it related to bugs listed in http://markmail.org/message/mf56jpd2atgy4n73?)
> Would you know the answers/know where we may find further documentation? We searched documentation onlin for the given option but couldn't quite find firm answers to our above two questions. We just wanted to understand it a bit more so we won't be impacting something else inadvertently.

No it has no impact. GlassFish 2.1 disabled that mechanism by default.
Are you using 2.1 by any chance? If yes, then no need to add the property.


>
> Regarding your questions:
> "Is your application opening connection or reading file?"
> - all it does is user post http request to our web app served by GF, then read/write some data from database via jdbc connection.

And are you 100% sure those JDBC connection are closed properly?


> "Can you take snapshot of the file descriptor like every day?"
> - I'm afraid that I do not quite understand your question ("snapshot of FD like every day")... Would you please elaborate on it?

Can you count the number of file_decriptor with state CLOSE_WAIT to see
if that number grow on ever request? Are they showing for your http port
or for another port?


> "As far as I can tell we never leaked socket when ASQuickStartup is false."
> - As I mentioned above, it is not currently included in the list of jvm options in domain.xml and I assume the default is 'true' (?). Are you indicating that absence of the given configuration could lead to connection leak?
> "Are you enabling Comet by any chance?"

It depends which version of GlassFish you are using. If 2.1, then the
issue is different.


> - No we are not enabling Comet.
>
> We very much appreciate your help/insights!!!

A+

- Jeanfrancois

> Best regards.
> [Message sent by forum member 'ur_afroinu' (ur_afroinu)]
>
> http://forums.java.net/jive/thread.jspa?messageID=340866
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>