hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yunjiong zhao (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-6285) Add option to set max limit on ResourceManager for ApplicationClientProtocol.getApplications
Date Tue, 14 Mar 2017 00:04:41 GMT

    [ https://issues.apache.org/jira/browse/YARN-6285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15923241#comment-15923241
] 

yunjiong zhao commented on YARN-6285:
-------------------------------------

I used below code for testing replace and substring, replace took 28107ms, and substring took
563ms.
I below above change definitely can improve the performance.
{code}
    private  static void testReplace() {
        long s = System.currentTimeMillis();
        for (int i = 0; i < 100000000; i++) {
            "LOG_disable".replace("LOG_", "");
        }
        System.out.println(System.currentTimeMillis() - s);
    }

    private static void testSubstring() {
        long s = System.currentTimeMillis();
        for (int i = 0; i < 100000000; i++) {
            "LOG_disable".substring(4);
        }
        System.out.println(System.currentTimeMillis() - s);
    }
{code}

> Add option to set max limit on ResourceManager for ApplicationClientProtocol.getApplications
> --------------------------------------------------------------------------------------------
>
>                 Key: YARN-6285
>                 URL: https://issues.apache.org/jira/browse/YARN-6285
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: yunjiong zhao
>            Assignee: yunjiong zhao
>         Attachments: YARN-6285.001.patch, YARN-6285.002.patch, YARN-6285.003.patch
>
>
> When users called ApplicationClientProtocol.getApplications, it will return lots of data,
and generate lots of garbage on ResourceManager which caused long time GC.
> For example, on one of our RM, when called rest API " http://<rm http address:port>/ws/v1/cluster/apps"
it can return 150MB data which have 944 applications.
> getApplications have limit parameter, but some user might not set it, and then the limit
will be Long.MAX_VALUE.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message