From 7a0b80cb9d662c4971c631b53c2ca9bb60ac30ab Mon Sep 17 00:00:00 2001 From: Ludovic Orban Date: Tue, 14 Jun 2022 17:50:42 +0200 Subject: [PATCH] #8161 add mod and xml config to configure RetainableByteBufferPool Signed-off-by: Ludovic Orban --- .../etc/jetty-retainablebytebufferpool.xml | 17 ++++++++++ .../modules/retainablebytebufferpool.mod | 31 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 jetty-server/src/main/config/etc/jetty-retainablebytebufferpool.xml create mode 100644 jetty-server/src/main/config/modules/retainablebytebufferpool.mod diff --git a/jetty-server/src/main/config/etc/jetty-retainablebytebufferpool.xml b/jetty-server/src/main/config/etc/jetty-retainablebytebufferpool.xml new file mode 100644 index 000000000000..e7ac808f2688 --- /dev/null +++ b/jetty-server/src/main/config/etc/jetty-retainablebytebufferpool.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/jetty-server/src/main/config/modules/retainablebytebufferpool.mod b/jetty-server/src/main/config/modules/retainablebytebufferpool.mod new file mode 100644 index 000000000000..0199f061f808 --- /dev/null +++ b/jetty-server/src/main/config/modules/retainablebytebufferpool.mod @@ -0,0 +1,31 @@ +[description] +Configures the RetainableByteBufferPool used by ServerConnectors. + +[tags] +retainableByteBufferPool + +[xml] +etc/jetty-retainablebytebufferpool.xml + +[ini-template] +## Minimum capacity of a single ByteBuffer. +#jetty.retainableByteBufferPool.minCapacity=0 + +## Maximum capacity of a single ByteBuffer. +## Requests for ByteBuffers larger than this value results +## in the ByteBuffer being allocated but not pooled. +#jetty.retainableByteBufferPool.maxCapacity=65536 + +## Bucket capacity factor. +## ByteBuffers are allocated out of buckets that have +## a capacity that is multiple of this factor. +#jetty.retainableByteBufferPool.factor=1024 + +## Maximum size for each bucket. +#jetty.retainableByteBufferPool.maxBucketSize=2147483647 + +## Maximum heap memory retainable by the pool (0 for heuristic, -1 for unlimited). +#jetty.retainableByteBufferPool.maxHeapMemory=0 + +## Maximum direct memory retainable by the pool (0 for heuristic, -1 for unlimited). +#jetty.retainableByteBufferPool.maxDirectMemory=0