Forum Discussion
ASM Too many concurrent long requests
- Aug 09, 2023
I think K8292 defines it all as well as you're going to find anywhere, to be honest.
In ASM, a long request is simply any request (headers and content) which is larger than the request_buffer_size (10Kb by default). As soon as the buffered content reaches that size, ASM allocates a "long request buffer" (roughly 10Mb) from the pool and moves the entire request there (freeing the original request buffer)
On any modern (supported!) version the maximum number of long request buffers (10Mb each, remember) is a function of how much memory is available to ASM overall (the calculation is in K01235989 but you can ignore that as your system has already told you 298 is the number it allows).
For each (long) request, the long request buffer is only going to be freed once ASM has processed the transaction and handed it off to the back end system, so what this means is that you had 298 "long" requests (over 10Kb) in flight at that moment and the 299th request that came in was 5Mb in length. The fact that ASM knew that up front implies this wasn't a chunked request or headers (which ASM can only caculate the length of at the end of buffering, after it has allocated the long_request_buffer) but rather body content with a defined Content-Length.
That only applies for that specific request, though - for all we know the other 298 were, as you suggest, GET requests with enormous headers. You'd need logging or captures to figure that part out, unfortunately.
Is this something we can move to the Technical Forum? Or does it need to stay inside the MVP group?
- lnxgeekAug 11, 2023MVP
It should be general available as it turns out.
I wasn't sure if there were any nda related information hidden in my question, so I played it safe 🙂
Can you move the thread or should I just repost it with somewhere public?
- LiefZimmermanAug 11, 2023Admin
Always better to be safe than sorry. Thanks lnxgeek.
I'll move it over.
Then - if you get the chance - mark Aaron's answer as solved? That would be great.Thanks.
- lnxgeekAug 12, 2023MVP
Done 🙂
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com