Skip to content

Commit

Permalink
Change ring buffer default length to 3
Browse files Browse the repository at this point in the history
3 is the Micrometer default, 1024 is way
to big and results in excessive memory usage.
  • Loading branch information
stuartwdouglas committed Jun 11, 2021
1 parent 7e88bf8 commit e29b69a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class JsonConfigGroup implements MicrometerConfig.CapabilityEnabled {
* samples. Samples are accumulated to such statistics in ring buffers which rotate after
* the expiry, with this buffer length.
*/
@ConfigItem(defaultValue = "1024")
@ConfigItem(defaultValue = "3")
public Integer bufferLength;

/**
Expand Down

0 comments on commit e29b69a

Please sign in to comment.