OutOfMemory happened with Lettuce Redis #2382
Unanswered
TestIssueReporter
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using spring data Redis Reactive(with lettuce). Application instance freezed with OutOfMemory Error. Analysis of the heap dump shows that 128 instances of DefaultEventExecutor occupied the maximum of the heap space (DefaultEventExecutor.taskQueue holds the io.lettuce.core.RedisPublisher$OnComplete instances). How to fix it?
Below is the thread pool configuration
clientConfigurationBuilder
.clientResources(ClientResources.builder().ioThreadPoolSize(128).computationThreadPoolSize(128).build())
.clientOptions(ClientOptions.builder().publishOnScheduler(true).build());
Note: Spring web flux is also being used in the same project.
Beta Was this translation helpful? Give feedback.
All reactions