You are viewing limited content. For full access, please sign in.

Question

Question

The request queue limit of the session is exeeded

asked on April 18, 2022

I am seeing the following error message on one of our Forms servers. I wanted to bounce this off of the community. I see it is referencing a lookup, but what queue limit is it referring to?

Log Name:      Application
Source:        ASP.NET 4.0.30319.0
Date:          4/18/2022 7:05:21 AM
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      XXXX.XXXX.XXX
Description:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 4/18/2022 7:05:21 AM 
Event time (UTC): 4/18/2022 2:05:21 PM 
Event ID: 0403397728a541c18f0a4ab2bfbd8513 
Event sequence: 12105 
Event occurrence: 210 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/ROOT/Forms-1-132947511613946197 
    Trust level: Full 
    Application Virtual Path: /Forms 
    Application Path: C:\Program Files\Laserfiche\Laserfiche Forms\Forms\ 
    Machine name: XXXXXXXXX
 
Process information: 
    Process ID: 6136 
    Process name: w3wp.exe 
    Account name: XXXXX\XXXXXXX 
 
Exception information: 
    Exception type: HttpException 
    Exception message: The request queue limit of the session is exceeded.
   at System.Web.SessionState.SessionStateModule.QueueRef()
   at System.Web.SessionState.SessionStateModule.PollLockedSession()
   at System.Web.SessionState.SessionStateModule.GetSessionStateItem()
   at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)
   at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
 
Request information: 
    Request URL: https://xxxxxx.xxxx.xxx.xxx:443/Forms/form/lookup?formId=14 
    Request path: /Forms/form/lookup 
    User host address: xxx.xxx.xxx.xxx
    User: xxxx\xxxx 
    Is authenticated: True 
    Authentication Type: LaserficheForms 
    Thread account name: xxxx\xxxxx 
 
Thread information: 
    Thread ID: 47 
    Thread account name: xxxx\xxxx 
    Is impersonating: False 
    Stack trace:    at System.Web.SessionState.SessionStateModule.QueueRef()
   at System.Web.SessionState.SessionStateModule.PollLockedSession()
   at System.Web.SessionState.SessionStateModule.GetSessionStateItem()
   at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)
   at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details: 

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 4.0.30319.0" />
    <EventID Qualifiers="32768">1309</EventID>
    <Level>3</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2022-04-18T14:05:21.139257200Z" />
    <EventRecordID>264286</EventRecordID>
    <Channel>Application</Channel>
    <Computer>XXXXXX.XXXXX.XXX</Computer>
    <Security />
  </System>
  <EventData>
    <Data>3005</Data>
    <Data>An unhandled exception has occurred.</Data>
    <Data>4/18/2022 7:05:21 AM</Data>
    <Data>4/18/2022 2:05:21 PM</Data>
    <Data>0403397728a541c18f0a4ab2bfbd8513</Data>
    <Data>12105</Data>
    <Data>210</Data>
    <Data>0</Data>
    <Data>/LM/W3SVC/1/ROOT/Forms-1-132947511613946197</Data>
    <Data>Full</Data>
    <Data>/Forms</Data>
    <Data>C:\Program Files\Laserfiche\Laserfiche Forms\Forms\</Data>
    <Data>XXXXXXX</Data>
    <Data>
    </Data>
    <Data>6136</Data>
    <Data>w3wp.exe</Data>
    <Data>xxxxx\xxxxxx</Data>
    <Data>HttpException</Data>
    <Data>The request queue limit of the session is exceeded.
   at System.Web.SessionState.SessionStateModule.QueueRef()
   at System.Web.SessionState.SessionStateModule.PollLockedSession()
   at System.Web.SessionState.SessionStateModule.GetSessionStateItem()
   at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)
   at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)

</Data>
    <Data>https://xxxxx.xxxxx.xxx:443/Forms/form/lookup?formId=14</Data>
    <Data>/Forms/form/lookup</Data>
    <Data>xxx.xxx.xxx.xxx</Data>
    <Data>xxxxx\xxxxx</Data>
    <Data>True</Data>
    <Data>LaserficheForms</Data>
    <Data>TOSCO\utllaserfiche</Data>
    <Data>47</Data>
    <Data>xxxxx\xxxxx</Data>
    <Data>False</Data>
    <Data>   at System.Web.SessionState.SessionStateModule.QueueRef()
   at System.Web.SessionState.SessionStateModule.PollLockedSession()
   at System.Web.SessionState.SessionStateModule.GetSessionStateItem()
   at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)
   at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)
</Data>
  </EventData>
</Event>

 

0 0

Replies

replied on April 19, 2022

Hi Blake,

This is an ASP.NET error. I found explanation in https://stackoverflow.com/questions/59938410/the-request-queue-limit-of-the-session-is-exceeded.

Could you try increase value of RequestQueueLimitPerSession in Forms/web.config as a workaround?

 

For further investigation, reviewing IIS logs and event logs may help find which specific request was slow and caused large request queue.

0 0
replied on April 20, 2022 Show version history

I have made the change in the Forms/web.config file.

I also took a look at the IIS logs and event logs. In the event logs I found a mention of a user account so I searched for that user account in the IIS logs for the same time (a newer event was recorded today) as what was in the event logs. I found the following repeated 107 times, one after the other.

2022-04-20 13:06:32 10.96.8.72 POST /Forms/form/lookup formId=13 443 XXXXX\xxxx.xxxxx 11.11.1.11 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/100.0.4896.75+Safari/537.36 https://xxxxx.xxxxx.com/Forms/form/avsubmission?RemoveHead=true&clientHandlesRedirect=true&routingResumeId=9fb92162-b30b-4f97-81b8-dd7d31347a49&submissionId=&readonly=false&hideHeader=true 500 0 0 109

It doesn't give specifics as to what lookup is causing the slowness though. Any ideas on how to narrow that down?

0 0
replied on April 21, 2022

The log shows the lookup request fails (500) in pretty short time (109ms), which is not slow. What is the detailed error of the response? You can review lookup rules/custom JS of form with id 13 to see whether any design may cause a lookup burst.

 

However, to me it seems unlikely that those requests will be queued up even if they are sent repeatedly within short time period. My guess is that there was a long-run request being processed which caused lookup requests from same session blocked, so one would try trigger lookup rules for several times as lookup results weren't returned.

So I also suggest to review requests before error time (e.g. within 2 hours) to see whether there is any long-run request (executed for minutes). One method I use is to import IIS log to Excel then sort by 'time-taken' column in descending order, and check long-run request around error time.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.