Yogesh Patel created WW-5505:
--------------------------------
Summary: Struts 7.0.0 - Render JSP is taking 3X time compare to
struts 6.3.0.2
Key: WW-5505
URL: https://issues.apache.org/jira/browse/WW-5505
Project: Struts 2
Issue Type: Bug
Affects Versions: 7.0.0
Reporter: Yogesh Patel
Attachments: image-2024-12-24-20-30-41-434.png,
image-2024-12-24-20-49-55-814.png
After upgrading to version 7.0.0, the JSP rendering time has significantly
increased from around 500ms to approximately 1.5 seconds. Upon further
investigation, it was discovered that the increase in time is primarily due to
Ognl.getValue taking longer than it did in the previous version.
Datadog Profiling screenshot:
!image-2024-12-24-20-30-41-434.png!
Sample JSP & Java Code as below:
!image-2024-12-24-20-49-55-814.png!
We have added following constant in struts.xml
<constant name="struts.chaining.copyErrors" value="true" />
<constant name="struts.chaining.copyMessages" value="true" />
<constant name="struts.ui.checkbox.submitUnchecked" value="true"/>
<constant name="struts.ognl.expressionMaxLength" value=""/>
<constant name="struts.parameters.requireAnnotations" value="false"/>
<constant name="struts.allowlist.enable" value="false"/>
<constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
<constant name="struts.actionConfig.fallbackToEmptyNamespace" value="true"/>
Can you please help with this ?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)