-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Nashorn out of memory issue in adaptive script execution #5202
Conversation
759652d
to
c9899e4
Compare
PR builder started |
PR builder completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/6978647255
features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/identity.xml.j2
Outdated
Show resolved
Hide resolved
...plication/authentication/framework/config/model/graph/BaseThreadLocalScriptEngineHolder.java
Outdated
Show resolved
Hide resolved
...plication/authentication/framework/config/model/graph/BaseThreadLocalScriptEngineHolder.java
Outdated
Show resolved
Hide resolved
...plication/authentication/framework/config/model/graph/BaseThreadLocalScriptEngineHolder.java
Show resolved
Hide resolved
Add more description to the PR |
...plication/authentication/framework/config/model/graph/BaseThreadLocalScriptEngineHolder.java
Outdated
Show resolved
Hide resolved
...plication/authentication/framework/config/model/graph/BaseThreadLocalScriptEngineHolder.java
Outdated
Show resolved
Hide resolved
...y/application/authentication/framework/config/model/graph/ThreadLocalScriptEngineHolder.java
Outdated
Show resolved
Hide resolved
...plication/authentication/framework/config/model/graph/BaseThreadLocalScriptEngineHolder.java
Outdated
Show resolved
Hide resolved
9bb5a45
to
9cbea57
Compare
PR builder started |
PR builder completed |
PR builder started |
PR builder completed |
features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/identity.xml.j2
Outdated
Show resolved
Hide resolved
9cbea57
to
ad50ca4
Compare
PR builder started |
PR builder completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/7018309887
Purpose
Adaptive authentication scripts are executed using Nashorn Script Engine.
Instantiating a Nashorn Script Engine for each script execution results in memory growth and eventually OOM error due to a JDK bug[1].
This PR addresses the above issue with the following solution,
Related Issue:
[1] https://bugs.openjdk.org/browse/JDK-8229011