-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Performance Issue in JDK 21 #347
Comments
OGNL won't work on Java 21 because of SecurityManager which was removed in that version of Java. I already prepared a PR to deprecate support for SM in 3.4.x and then release a new 3.5.x version using Java 17 as minimum. |
Thanks for the comment. Looking forward to the PR Mean while, by "Don't work" that you have mentioned, I want to clarify that the we do not face any error or exception, the application works when the site load is low , but we face a drastic performance dropdown when the site load increases. Can you also help me with these ( I can ask them in struts 2 jira too )
|
This is wrong place to ask question about Struts. |
And I would recommend to use a Java profiler (VisualVM should good enough) to detect where the problem is - create a small app to reproduce the problem and profile it. |
Recently we have upgrade the
struts 6.7.0
project fromJDK 1.8
toJDK 21
. ( The struts is usingognl 3.3.5
). After upgrade we have faced performance issues on loading jsp files and running actions.While googling to find some hints, we have find that others also have same issues when switching to
struts 7.0
, which of course they had JDK upgrade too.A performance test at
https://issues.apache.org/jira/browse/WW-5505?jql=project%20%3D%20WW
mentioned that theOgnl.getValue
may have performance issues.I tried to dig in
Ognl.getValue
code and the only thing that Iguess
is the the reflection mechanism which have changed from1.8
to21
may cause issues.The text was updated successfully, but these errors were encountered: