Skip to content

Performance Issue in JDK 21 #347

@afattahi54

Description

@afattahi54

Recently we have upgrade the struts 6.7.0 project from JDK 1.8 to JDK 21. ( The struts is using ognl 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 the Ognl.getValue may have performance issues.

I tried to dig in Ognl.getValue code and the only thing that I guess is the the reflection mechanism which have changed from 1.8 to 21 may cause issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions