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