[
https://issues.apache.org/jira/browse/KNOX-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17192631#comment-17192631
]
ASF subversion and git services commented on KNOX-2408:
-------------------------------------------------------
Commit fdcc6d4c57c72d5ae6d7600094119b8c6957525e in knox's branch
refs/heads/master from Sandor Molnar
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=fdcc6d4 ]
KNOX-2408 - Improved AliasBasedTokenState service and house-keeping (#371)
> Improve AliasBasedTokenState service performance
> ------------------------------------------------
>
> Key: KNOX-2408
> URL: https://issues.apache.org/jira/browse/KNOX-2408
> Project: Apache Knox
> Issue Type: Task
> Components: Server
> Affects Versions: 1.4.0
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Major
> Fix For: 1.5.0
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> While working on KNOX-2402 there were some performance issues related to
> {{AliasBasedTokenStateService}} which the new tool revealed during the test
> phase:
> {{AliasBasedTokenStateService}}:
> - {{updateExpiration()}} goes directly to alias service rather than updating
> it locally and let the background thread does its job
> - {{getTokens}} goes directly to alias service
> {{DefaultTokenStateService}}:
> - we should start using {{ConcurrentHashMap}} instead of {{HashMap}} for
> {{tokenExpirations}} and {{maxTokenLifetimes}} -> many of the synchronization
> blocks could be get rid of (CHM gives better performance anyway)
> - review {{getTokens()}} usage
> - eviction: needs to consider the case when Gateway was restarted -> nothing
> found in memory -> eviction is extremely slow
--
This message was sent by Atlassian Jira
(v8.3.4#803005)