File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/main/java/com/rabbitmq/stream/perf Expand file tree Collapse file tree 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 {
803803 overridePropertiesWithEnvironmentVariables ();
804804 Codec codec = createCodec (this .codecClass );
805805
806- ByteBufAllocator byteBufAllocator = ByteBufAllocator . DEFAULT ;
806+ ByteBufAllocator byteBufAllocator = Utils . byteBufAllocator () ;
807807
808808 CompositeMeterRegistry meterRegistry = new CompositeMeterRegistry ();
809809 meterRegistry .config ().commonTags (this .metricsTags );
Original file line number Diff line number Diff line change 2626import io .micrometer .core .instrument .dropwizard .DropwizardConfig ;
2727import io .micrometer .core .instrument .dropwizard .DropwizardMeterRegistry ;
2828import io .micrometer .core .instrument .util .HierarchicalNameMapper ;
29+ import io .netty .buffer .ByteBufAllocator ;
30+ import io .netty .buffer .PooledByteBufAllocator ;
2931import java .io .PrintWriter ;
3032import java .lang .reflect .Constructor ;
3133import java .lang .reflect .Field ;
@@ -186,6 +188,10 @@ static String formatByte(double bytes) {
186188 return String .format ("%.1f %cB" , bytes / 1000.0 , ci .current ());
187189 }
188190
191+ static ByteBufAllocator byteBufAllocator () {
192+ return PooledByteBufAllocator .DEFAULT ;
193+ }
194+
189195 static long physicalMemory () {
190196 try {
191197 return TOTAL_MEMORY_SIZE_SUPPLIER .getAsLong ();
You can’t perform that action at this time.
0 commit comments