'How can I build an web client of the default codecs' maxInMemorySize(3GB)?
I saw usually developers used buffer as just a few MB.
However, I think I need to use buffer as more than 1 GB or even 3 ~ 4GB
So I built a web client in source as the example below
WebClient
.builder()
.codecs(
configurer ->
configurer.defaultCodecs().maxInMemorySize(1024 * 1024 * 1024 * 3)
) // 3GB
.build();
And now I got to know that value as the argument will be an overflown value
How can I use more memory in this case? I want to restrict it anyway not as infinity, I don't know there is the substantial restriction or not though like max integer value.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|