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

ASF subversion and git services commented on KARAF-5604:
--------------------------------------------------------

Commit 6d10058da48fe9846fb673aabd39a98dcadb2506 in karaf's branch 
refs/heads/master from [~nite]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=6d10058 ]

KARAF-5604: Speed up features-generate-descriptor

OpenDaylight uses features-generate-descriptor to process a rather
large set (~196) of features being used as dependencies of a generated
feature. These features also contain a large number of bundles.

This patch introduces an explicit SimplLRUCache based on LinkedHashMap,
and places it into both GenerateDescriptorMojo and Dependency31Helper.
The size of the two cache instances can be controlled via plugin configuration
and default to 256 and 1024 entries respectively.

Signed-off-by: Robert Varga <n...@hq.sk>


> karaf:features-generate-descriptor takes long when faced with complex feature 
> dependencies
> ------------------------------------------------------------------------------------------
>
>                 Key: KARAF-5604
>                 URL: https://issues.apache.org/jira/browse/KARAF-5604
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-tooling
>    Affects Versions: 4.1.3
>            Reporter: Robert Varga
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.2.0, 4.1.5
>
>
> Opendaylight's distribution-check jobs generate features which have complex 
> feature dependencies, which exposes scaling issues in 
> karaf:features-generate-descriptor.
> [https://github.com/opendaylight/integration-distribution/tree/master/features/singles/odl-integration-all]
>  takes ~270 seconds to generate:
> real 4m28.834s
> user 3m40.287s
> sys 1m23.629s
> [https://github.com/opendaylight/integration-distribution/tree/master/features/repos/index]
>  takes ~638 seconds to generate:
> real 10m38.859s
> user 7m55.004s
> sys 3m17.269s
> Running profiling shows that this time is dominated by short-lived 
> FileInputStreams being generated at a rate of 7K-8Kps – which are coming from 
> both feature reading and from artifact resolution.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to