Spring WebFlux and ReactiveRedisTemplate high cpu usage after perfromance test

See original GitHub issue

autocannon -c 100 -p 10 http://localhost:8081/hello3

<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>2.1.4.RELEASE</version>
	<relativePath /> <!-- lookup parent from repository -->
</parent>
    @Autowired
    ReactiveRedisTemplate<String, String> rrt;

    @GetMapping("/hello3")
    public Mono<String> hello3() {
        Mono<String> value = rrt.opsForValue().get("abc");
        return value;
    }
2019-04-08 10:36:27.987 ERROR 8736 --- [ctor-http-nio-1] o.s.w.s.adapter.HttpWebHandlerAdapter    : [446cbe41] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:27.995 ERROR 8736 --- [ctor-http-nio-6] o.s.w.s.adapter.HttpWebHandlerAdapter    : [c48b4df4] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:27.999 ERROR 8736 --- [ctor-http-nio-8] o.s.w.s.adapter.HttpWebHandlerAdapter    : [bf90231a] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:27.998 ERROR 8736 --- [ctor-http-nio-5] o.s.w.s.adapter.HttpWebHandlerAdapter    : [f51d5763] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:27.999 ERROR 8736 --- [ctor-http-nio-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [ebded3b3] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:27.999 ERROR 8736 --- [ctor-http-nio-1] o.s.w.s.adapter.HttpWebHandlerAdapter    : [5a9e7799] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:28.001 ERROR 8736 --- [ctor-http-nio-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [c80755d3] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:28.002 ERROR 8736 --- [ctor-http-nio-6] o.s.w.s.adapter.HttpWebHandlerAdapter    : [0702de79] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:28.003 ERROR 8736 --- [ctor-http-nio-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [4bb382d2] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:28.006 ERROR 8736 --- [ctor-http-nio-5] o.s.w.s.adapter.HttpWebHandlerAdapter    : [3c72ea4c] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:28.007 ERROR 8736 --- [ctor-http-nio-5] o.s.w.s.adapter.HttpWebHandlerAdapter    : [6b0f0f9a] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:28.010 ERROR 8736 --- [ctor-http-nio-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [18580b15] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-08 10:36:28.011 ERROR 8736 --- [ctor-http-nio-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [52172f97] Error [java.io.IOException: 你的主机中的软件中止了一个已建立的连接。] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
snicollcommented, Apr 10, 2019

@kindywu I’ve edited your comment again to improve the formatting. Please consider reviewing this comment before contributing again.

0reactions
spring-projects-issuescommented, Apr 15, 2020

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

High CPU utilization in Spring Cloud Loadbalancer application
The dependency that generates the cpu consumption is Netty. As the webclient (webflux) is the only one to use reactor and Netty. –...
Read more >
lettuce-io/Lobby - Gitter
Hello all, I'm using Lettuce Reactive to connect to Redis from Spring webflux application using ReactiveRedisTemplate. I want to pipeline a bunch of ......
Read more >
Spring WebFlux and Spring Data Redis Reactive | by Eric Anicet
In this story, we'll implement a sample REST API that uses Spring WebFlux with Spring Data Redis Reactive. Redis is an open-source (BSD...
Read more >
JAVA springboot API showing sudden increase in CPU ...
We have an API (JAVA springboot) that shows sudden increase in CPU consumption from less than 10% to 60-70% after a few minutes...
Read more >
A Deep Dive Into Spring WebFlux Threading Model
You should also remember that Java is able to see the number of CPU cores inside Docker container since version 10. If you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found