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)

Comment From: rstoyanchev

I've edited your comment to improve the formatting. You might want to check out this Mastering Markdown guide for future reference.

Comment From: rstoyanchev

Do you really mean "after", or do you mean "during" (the performance test)? Can you try without "-p 0" as pipelining is not supported.

Comment From: kindywu

autocannon -c 20 http://localhost:8081/hello3 the same error occur,i guest it's about ReactiveRedisTemplate

Spring Spring WebFlux and ReactiveRedisTemplate high cpu usage after perfromance test

2019-04-10 14:24:10.949  INFO 5124 --- [   XNIO-1 I/O-5] io.lettuce.core.EpollProvider            : Starting without optional epoll library
2019-04-10 14:24:10.952  INFO 5124 --- [   XNIO-1 I/O-5] io.lettuce.core.KqueueProvider           : Starting without optional kqueue library
2019-04-10 14:24:24.328 ERROR 5124 --- [   XNIO-1 I/O-1] o.s.w.s.adapter.HttpWebHandlerAdapter    : [770bfd6a] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.332 ERROR 5124 --- [   XNIO-1 I/O-4] o.s.w.s.adapter.HttpWebHandlerAdapter    : [3de6b52f] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.334 ERROR 5124 --- [   XNIO-1 I/O-6] o.s.w.s.adapter.HttpWebHandlerAdapter    : [2982fcbf] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.339 ERROR 5124 --- [   XNIO-1 I/O-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [16385875] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.345 ERROR 5124 --- [   XNIO-1 I/O-7] o.s.w.s.adapter.HttpWebHandlerAdapter    : [63c81b5d] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.366 ERROR 5124 --- [   XNIO-1 I/O-6] o.s.w.s.adapter.HttpWebHandlerAdapter    : [787fbce1] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.421 ERROR 5124 --- [   XNIO-1 I/O-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [a5e8504] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.446 ERROR 5124 --- [   XNIO-1 I/O-4] o.s.w.s.adapter.HttpWebHandlerAdapter    : [33a2038c] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.453 ERROR 5124 --- [   XNIO-1 I/O-8] o.s.w.s.adapter.HttpWebHandlerAdapter    : [5f465850] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.457 ERROR 5124 --- [   XNIO-1 I/O-4] o.s.w.s.adapter.HttpWebHandlerAdapter    : [ea21288] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.461 ERROR 5124 --- [   XNIO-1 I/O-7] o.s.w.s.adapter.HttpWebHandlerAdapter    : [6d81bc9] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.469 ERROR 5124 --- [   XNIO-1 I/O-3] o.s.w.s.adapter.HttpWebHandlerAdapter    : [18a8309b] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.474 ERROR 5124 --- [   XNIO-1 I/O-8] o.s.w.s.adapter.HttpWebHandlerAdapter    : [319ef447] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.779 ERROR 5124 --- [   XNIO-1 I/O-8] o.s.w.s.adapter.HttpWebHandlerAdapter    : [5b0863af] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.868 ERROR 5124 --- [   XNIO-1 I/O-3] o.s.w.s.adapter.HttpWebHandlerAdapter    : [5c386d3d] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:24.873 ERROR 5124 --- [   XNIO-1 I/O-4] o.s.w.s.adapter.HttpWebHandlerAdapter    : [4eaeef9a] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:25.017 ERROR 5124 --- [   XNIO-1 I/O-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [419eb653] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:25.201 ERROR 5124 --- [   XNIO-1 I/O-8] o.s.w.s.adapter.HttpWebHandlerAdapter    : [433e22f5] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:25.215 ERROR 5124 --- [   XNIO-1 I/O-6] o.s.w.s.adapter.HttpWebHandlerAdapter    : [5d51d7da] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:25.323 ERROR 5124 --- [   XNIO-1 I/O-6] o.s.w.s.adapter.HttpWebHandlerAdapter    : [7f03670f] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:25.326 ERROR 5124 --- [   XNIO-1 I/O-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [7e2b6b0] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:25.776 ERROR 5124 --- [   XNIO-1 I/O-6] o.s.w.s.adapter.HttpWebHandlerAdapter    : [e290350] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:25.778 ERROR 5124 --- [   XNIO-1 I/O-3] o.s.w.s.adapter.HttpWebHandlerAdapter    : [9625c55] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:27.276 ERROR 5124 --- [   XNIO-1 I/O-8] o.s.w.s.adapter.HttpWebHandlerAdapter    : [6626648c] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:27.281 ERROR 5124 --- [   XNIO-1 I/O-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [5ad97326] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:27.285 ERROR 5124 --- [   XNIO-1 I/O-6] o.s.w.s.adapter.HttpWebHandlerAdapter    : [288aa9b8] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:27.288 ERROR 5124 --- [   XNIO-1 I/O-7] o.s.w.s.adapter.HttpWebHandlerAdapter    : [67329f2c] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:27.289 ERROR 5124 --- [   XNIO-1 I/O-4] o.s.w.s.adapter.HttpWebHandlerAdapter    : [6001a25a] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)
2019-04-10 14:24:29.829 ERROR 5124 --- [   XNIO-1 I/O-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [46423c2f] Error [org.xnio.channels.FixedLengthOverflowException] for HTTP GET "/hello3", but ServerHttpResponse already committed (200 OK)

Comment From: snicoll

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

Comment From: mp911de

This issue looks like a threading issue. Spring Data Redis by default uses a single connection and responses are returned on a single thread. Please consider configuring ClientOptions. publishOnScheduler to true which is a Lettuce setting. This option uses multiple threads for response processing and might address your issue.

Comment From: rstoyanchev

This might be related to #22467 but @kindywu, if you could please do try what @mp911de suggested.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

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.