Enhance application performance - #152
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several important improvements to memory management, resource cleanup, and protocol cache handling in the HTTP plugin. The main changes address memory leaks and resource retention issues by ensuring buffers and caches are properly released or capped, and by adding explicit cache management methods. These updates help prevent excessive memory usage and improve the stability of long-running or high-throughput tests.
Memory and Buffer Management:
HTTP2FutureResponseListenerto avoid retaining unnecessary copies of response bodies and request graphs, preventing memory leaks after sample materialization, cancellation, or failed/raced requests. [1] [2] [3] [4] [5] [6]HTTP2JettyClientto cap the pooled buffer memory by introducing a configurable maximum for theArrayByteBufferPool, and provided a method to clear the buffer pool. [1] [2] [3]Protocol Cache Management:
Compression and Decoder Resource Handling:
InflaterPooland other compression-related resources to prevent retention of large pools per thread. [1] [2]Transaction Sample Lifecycle Improvements:
TestCompilermap after listeners and assertions have run, mirroring upstream JMeter fixes and preventing retention of large sample trees.Async Sample Cleanup: