Skip to content
Discussion options

You must be logged in to vote

You likely are constraining the memory too much, with your command line options, for the request rate you are imposing.

You can configure Jetty's buffer pool with: ArrayByteBufferPool.setStatisticsEnabled(true), and after a while you can take a server dump as explained here:
https://jetty.org/docs/jetty/12.1/programming-guide/troubleshooting/component-dump.html

The dump will detail how the buffer pool is being used.

Furthermore, you can constrain the memory usage of the buffer pool by specifying the max amount of direct memory that the buffer pool will retain, using this constructor
https://javadoc.jetty.org/jetty-12.1/org/eclipse/jetty/io/ArrayByteBufferPool.html#%3Cinit%3E(int,int,int,i…

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@terryyrliang
Comment options

@terryyrliang
Comment options

Answer selected by terryyrliang
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #13815 on October 21, 2025 07:46.