File tree 2 files changed +7
-1
lines changed
src/main/java/com/rabbitmq/stream/perf
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -803,7 +803,7 @@ public Integer call() throws Exception {
803
803
overridePropertiesWithEnvironmentVariables ();
804
804
Codec codec = createCodec (this .codecClass );
805
805
806
- ByteBufAllocator byteBufAllocator = ByteBufAllocator . DEFAULT ;
806
+ ByteBufAllocator byteBufAllocator = Utils . byteBufAllocator () ;
807
807
808
808
CompositeMeterRegistry meterRegistry = new CompositeMeterRegistry ();
809
809
meterRegistry .config ().commonTags (this .metricsTags );
Original file line number Diff line number Diff line change 26
26
import io .micrometer .core .instrument .dropwizard .DropwizardConfig ;
27
27
import io .micrometer .core .instrument .dropwizard .DropwizardMeterRegistry ;
28
28
import io .micrometer .core .instrument .util .HierarchicalNameMapper ;
29
+ import io .netty .buffer .ByteBufAllocator ;
30
+ import io .netty .buffer .PooledByteBufAllocator ;
29
31
import java .io .PrintWriter ;
30
32
import java .lang .reflect .Constructor ;
31
33
import java .lang .reflect .Field ;
@@ -186,6 +188,10 @@ static String formatByte(double bytes) {
186
188
return String .format ("%.1f %cB" , bytes / 1000.0 , ci .current ());
187
189
}
188
190
191
+ static ByteBufAllocator byteBufAllocator () {
192
+ return PooledByteBufAllocator .DEFAULT ;
193
+ }
194
+
189
195
static long physicalMemory () {
190
196
try {
191
197
return TOTAL_MEMORY_SIZE_SUPPLIER .getAsLong ();
You can’t perform that action at this time.
0 commit comments