Skip to content

Spring WebFlux and ReactiveRedisTemplate high cpu usage after perfromance test  #22759

@kindywu

Description

@kindywu

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions