[GLASSFISH-5243] GlassFish can becomes unresponsible when the requests queue gets full Created: 01/Jul/08  Updated: 18/May/11  Resolved: 01/Oct/08

Status: Resolved
Project: glassfish
Component/s: grizzly-kernel
Affects Version/s: 9.1.1
Fix Version/s: 9.1.1_dev

Type: Bug Priority: Critical
Reporter: jfarcand Assignee: jfarcand
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: All

Attachments: Java Archive File issue5243_patch.jar    
Issuezilla Id: 5,243
Status Whiteboard:



GlassFish can becomes unresponsible when it's requests queue reach it's maximum.
By default, the max pending requests count is 4096. When queue size reach that
limit, GlassFish starts dropping requests automatically by sending an error page
to the user using its acceptor thread (SelectorThread).

If the user isn't reading the response fast enough, there is probability that
GlassFish can becomes unresponsitive for a short period of time (until the slow
client read the error page response).

The workaround is to increase the max-pending-count attribute of
connection-pool, but that will just delay the problem. The solution is to drop
the connection when the client isn't reading the response

Comment by jfarcand [ 01/Jul/08 ]

Created an attachment (id=1599)
Very simple fix which drop requests if the queue is full and the client cannot read the bytes

Comment by harpreet [ 03/Jul/08 ]

Approved for v2.1

Comment by jfarcand [ 07/Jul/08 ]


User: jfarcand
Date: 2008-07-04 01:59:59+0000


Fix for Issue https://glassfish.dev.java.net/issues/show_bug.cgi?id=5243
("GlassFish can becomes unresponsible when the requests queue gets full")

Drop connection without trying to write anything, as the thread used for
writing is the thread that accept the connection.

+ ALl QL passed

Reviewed by: Jan Luehe

File Changes:


File [changed]: LinkedListPipeline.java
Delta lines: +8 -5
— LinkedListPipeline.java 2007-06-01 14:52:54+0000 1.25
+++ LinkedListPipeline.java 2008-07-04 01:59:51+0000
@@ -37,6 +37,7 @@

Comment by praagggm [ 18/May/11 ]

Can you please let us know the patch application process

Generated at Tue Feb 28 13:05:18 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.