users@glassfish.java.net

Re: Glassfish Stops responding on https 8181

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 19 May 2009 11:56:02 -0400

Salut,

all thread are blocked:

> Thread "httpSSLWorkerThread-8181-3" thread-id 44,303 thread-stateRUNNABLERunning in native
> at: java.net.SocketInputStream.socketRead0(Native Method)
> at: java.net.SocketInputStream.read(SocketInputStream.java:129)
> at: com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
> at: com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
> at: com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:782)
> at: com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:739)
> at: com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
> at: java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at: java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
> at: java.io.BufferedInputStream.read(BufferedInputStream.java:313)
> at: sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:681)
> at: sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:626)
> at: sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:957)
> at: java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
> at: sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)

You should increase the thread-count number to a little bit more, say
20. In 2.1 you cannot changes that value for SSL, but in v3 the SSL
value will not be 5 to prevent such scenario.

Thanks!

-- Jeanfrancois


glassfish_at_javadesktop.org wrote:
> Hi,
>
> looking at the ThreadDump you can see that you have 5 threads starting with "httpsslworkerthread-8181". IIRC, by default you only have 5 HTTP worker threads configured in the domain.xml.
> Maybe you have a leak somewhere so that your servlet never gets closed and thus the thread never is released.
>
> Cheers
> Chris.
> [Message sent by forum member 'chrjohn' (chrjohn)]
>
> http://forums.java.net/jive/thread.jspa?messageID=346645
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>