jira-importer opened a new issue, #1489:
URL: https://github.com/apache/httpcomponents-core/issues/1489

   
**[Sandeep_gaur](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER300839)**
 opened 
**[HTTPCORE-751](https://issues.apache.org/jira/browse/HTTPCORE-751?redirect=false)**
 and commented
   
   After upgrading from version 5.1 to 5.2.1 of the HttpClient library for 
HTTP/2 communication, we encountered an issue. When connecting to any endpoint 
exposed by ALB (Application Load Balancer), our application consumes a 
significant amount of memory and fails to release it efficiently, leading to 
increased time spent on garbage collection (GC).
   
    
   
   Some analysis already done:- 
   
   This is what happens: both endpoints, the client and server, transmit their 
settings approximately at about the same time. The client states it can handle 
64K frames at max, whereas the server states it can handle 16MB frames. The 
client ACKs the server settings because its MAX_FRAME_SIZE is lesser than that 
of the server. The server, however, just ACKs the client settings without 
re-sending its settings with a smaller MAX_FRAME_SIZE. I suppose what means is 
the server acknowledges the client settings including the limit and states its 
intent to respect it and the client can be reasonably sure it will never get 
hit with a frame greater than 64K, but I have to got to revisit the HTTP/2 
specification to be sure.
   
    
   
   For more details please follow below link:
   
   
https://stackoverflow.com/questions/76439023/memory-consumption-and-gc-performance-issues-with-httpclient-5-2-1-in-http-2-com
   
   
   ---
   
   **Affects:** 5.2.1
   


-- 
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]

Reply via email to