[
https://issues.apache.org/jira/browse/RANGER-4905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17921240#comment-17921240
]
Abhishek Kumar commented on RANGER-4905:
----------------------------------------
Merged in [ranger-2.6|https://github.com/apache/ranger/commit/a740901]
> Reduce memory needed to create Ranger policy engine
> ---------------------------------------------------
>
> Key: RANGER-4905
> URL: https://issues.apache.org/jira/browse/RANGER-4905
> Project: Ranger
> Issue Type: Improvement
> Components: Ranger
> Reporter: Abhay Kulkarni
> Assignee: Abhay Kulkarni
> Priority: Major
> Fix For: 3.0.0, 2.6.0
>
>
> Ranger policy engine creates a RangerPolicyResourceMatcher object for every
> resource specified either in policy or in a tag association.
> PolicyResourceMatcher, for the services that have more than one level in
> their resource hierarchy, consists of RangerResourceMatcher objects for each
> level in the resource-level hierarchy for the resource. In many cases, this
> leads to creation of multiple RangerResourceMatchers with identical resource
> specification.
> This Jira avoids creation of multiple RangerResourceMatcher objects by
> maintaining a cache of them in the RangerPluginContext object associated with
> the Ranger policy engine, thereby reducing policy engine's memory needs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)