You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2018/08/20 15:44:00 UTC
[jira] [Closed] (FLINK-10082) Initialize StringBuilder in
Slf4jReporter with estimated size
[ https://issues.apache.org/jira/browse/FLINK-10082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chesnay Schepler closed FLINK-10082.
------------------------------------
Resolution: Fixed
Fix Version/s: 1.5.4
1.7.0
1.6.1
master: 7ae291c1ab3a394998aa08b1047726897aad45d4
1.6: e0ab8f6b9913eea8bb8cbddb56334d0e3051b73c
1.5: 3200bf9e438ae017fd92ac1718d6a4ca7de7e322
> Initialize StringBuilder in Slf4jReporter with estimated size
> -------------------------------------------------------------
>
> Key: FLINK-10082
> URL: https://issues.apache.org/jira/browse/FLINK-10082
> Project: Flink
> Issue Type: Improvement
> Components: Metrics
> Affects Versions: 1.5.2, 1.6.0
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.6.1, 1.7.0, 1.5.4
>
>
> The {{Slf4jReporter}} uses a StringBuilder to generate the report that is later logged. Currently we don't pass the initial size, which for large deployments can result in frequent resizing of the backing array.
> We could either estimate the expected size based on the # of metrics, or store the size of the last report (given that the total metrics space is fairly constant).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)