[ https://issues.apache.org/jira/browse/BROOKLYN-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15671176#comment-15671176 ]
ASF GitHub Bot commented on BROOKLYN-382: ----------------------------------------- Github user aledsage commented on a diff in the pull request: https://github.com/apache/brooklyn-server/pull/423#discussion_r88295185 --- Diff: core/src/main/java/org/apache/brooklyn/core/catalog/internal/BasicBrooklynCatalog.java --- @@ -1115,4 +1170,24 @@ private synchronized void loadSerializer() { serializer = new CatalogXmlSerializer(); } + private static class SpecCache { + private final Map<String, AbstractBrooklynObjectSpec<?,?>> cache = Maps.newLinkedHashMap(); --- End diff -- Good point! Have wrapped in `Collections.synchronizedMap(...)` > Catalog takes long time to load in web-console > ---------------------------------------------- > > Key: BROOKLYN-382 > URL: https://issues.apache.org/jira/browse/BROOKLYN-382 > Project: Brooklyn > Issue Type: Improvement > Affects Versions: 0.9.0 > Reporter: Aled Sage > > Using Brooklyn 0.10.0-SNAPSHOT (but also reproducible with 0.9.0)... > When there are many (yaml) catalog items, the Brooklyn web-console is very > slow to show the "add application" dialog, or to show a list of the catalog > items in the catalog view. > Looking at the REST api timings, the bulk of the time is spent calling > {{/catalog/entities}} and/or {{/catalog/applications}}. > A customer with approximately 100 (large) things in their catalog reported > that it took 15 seconds to show the "add application" dialog. In my testing > with approx 100 small catalog items, it took approx 5 seconds. -- This message was sent by Atlassian JIRA (v6.3.4#6332)