You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Alireza Fattahi (Jira)" <ji...@apache.org> on 2025/01/01 15:37:00 UTC
[jira] [Commented] (WW-5505) Struts 7.0.0 - JSP rendering is taking 3X time compare to struts 6.3.0.2
[ https://issues.apache.org/jira/browse/WW-5505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17909140#comment-17909140 ]
Alireza Fattahi commented on WW-5505:
-------------------------------------
I think you have jdk update too. If so we have faced some how same performance issue.
We switch from `jdk 1.8` to `jdk 21` on the version `6.7.0` ( We do not changed struts version and only upgrade jdk) . The performance of application drops by this upgrade. Both the cpu and memory usages increased. Even the simple jsp pages take long time to download.
I have not done any profiling yet. But it may its is because of jdk upgrade. ( which of course I don't know why )
> Struts 7.0.0 - JSP rendering 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: Improvement
> Affects Versions: 7.0.0
> Reporter: Yogesh Patel
> Priority: Major
> Fix For: 7.1.0
>
> 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)