You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I 've built a spring cloud gateway application, gateway version 2.2.9.RELEASE.
And I have created a filter to get request body size.
The filter 'RequestBodySizeFilter' to get request body size:
I monitor the direct memory by getting value from PlatformDependent#DIRECT_MEMORY_COUNTER.
I have sent some request with file or large body, the direct memory is always increase.
But the direct memory in Gateway without RequestBodySizeFilter will not increase when sending large body request(picture left part).
We add -Dio.netty.allocator.type=unpooled and direct memory will release with RequestBodySizeFilter.
I'm not sure if this is the right way to get request body size, can anyone give me some advice. Thank you!
The text was updated successfully, but these errors were encountered:
I 've built a spring cloud gateway application, gateway version 2.2.9.RELEASE.
And I have created a filter to get request body size.
The filter 'RequestBodySizeFilter' to get request body size:
I monitor the direct memory by getting value from PlatformDependent#DIRECT_MEMORY_COUNTER.
I have sent some request with file or large body, the direct memory is always increase.
But the direct memory in Gateway without RequestBodySizeFilter will not increase when sending large body request(picture left part).
We add
-Dio.netty.allocator.type=unpooled
and direct memory will release withRequestBodySizeFilter
.I'm not sure if this is the right way to get request body size, can anyone give me some advice. Thank you!
The text was updated successfully, but these errors were encountered: