+
Skip to content

Intermittently latency issue with keycloak-policy-enforcer library #160

Open
@naresh-devassist

Description

@naresh-devassist

Describe the bug

Hello,

We are facing latency issues intermittently in our production environment during API authorization enforcement with keycloak-policy-enforcer library version 26.0.4. Below are few observations:

  • Latency time ranges from 15 minutes to 30 minutes.
  • We have set path cache max entries to 5000.
  • We suspect in PatchConfigMatcher.java line no:70 pathcache.get() call before invoking findByMatchingUri() is blocking the thread because of the below snippet from PathCache.java.

Image

I would appreciate any assistance regarding this issue at the earliest possible.

Thank you,
Naresh Kumar

Version

26.0.4

Expected behavior

Intermittently latency issue should not happen during API authorization enforcement with keycloak-policy-enforcer library version 26.0.4.

Actual behavior

PatchConfigMatcher.java line no:70 pathcache.get() call before invoking findByMatchingUri() is blocking the thread.

How to Reproduce?

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载