jira-importer opened a new issue, #1307: URL: https://github.com/apache/httpcomponents-core/issues/1307
**[Sajinie Kavindya](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER293031)** opened **[HTTPCORE-721](https://issues.apache.org/jira/browse/HTTPCORE-721?redirect=false)** and commented Hi, In HTTPCoreNIO {**}4.4.15{**}, for JDK 8_261 and above, we can observe a high CPU usage for the following scenario. * Client behavior: sends POST/PUT requests with a payload greater than the buffer size. Should be a load test at least with two requests. * Server behavior: responds with the Connection: keep-alive header and immediately closes the connection using the connection close method. Please note that for JDK version < JDK 8_261, this is not reproducible. In order to reproduce the issue, I have written a test server and a JMeter script to act as a client. Reproducible steps: 1. **TestServer.java** - Run this main class, which starts the server on port 8253. (I have only changed the “{_}completeResponse{_}” method to close the connection at line `#753`). 2. **HTTPClient.jmx** - Start this JMeter script, which sends two POST requests to the server with a large payload. Please let us know the validity of this scenario. For now, I am creating this as a Bug as high CPU usage is observed. Thanks & Regards, Sajinie --- **Affects:** 4.4.15 **Attachments:** - [HTTPClient.jmx](https://issues.apache.org/jira/secure/attachment/13047238/HTTPClient.jmx) (_113.66 kB_) - [HttpCoreNIOTestServer.zip](https://issues.apache.org/jira/secure/attachment/13047239/HttpCoreNIOTestServer.zip) (_181.93 kB_) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
