[ 
https://issues.apache.org/jira/browse/WW-5630?focusedWorklogId=1025105&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1025105
 ]

ASF GitHub Bot logged work on WW-5630:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Jun/26 09:18
            Start Date: 14/Jun/26 09:18
    Worklog Time Spent: 10m 
      Work Description: sonarqubecloud[bot] commented on PR #1740:
URL: https://github.com/apache/struts/pull/1740#issuecomment-4701308065

   ## [![Quality Gate 
Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png
 'Quality Gate 
Passed')](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1740) 
**Quality Gate passed**  
   Issues  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 New 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=1740&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png
 '') [0 Accepted 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=1740&issueStatuses=ACCEPTED)
   
   Measures  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=1740&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1740&metric=new_coverage&view=list)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Duplication on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1740&metric=new_duplicated_lines_density&view=list)
  
     
   <!

Issue Time Tracking
-------------------

    Worklog Id:     (was: 1025105)
    Time Spent: 2h  (was: 1h 50m)

> Performance Issue SecurityMemberAccess
> --------------------------------------
>
>                 Key: WW-5630
>                 URL: https://issues.apache.org/jira/browse/WW-5630
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>         Environment: Payara 7
>            Reporter: Jose Miguel
>            Priority: Major
>             Fix For: 6.11.0, 7.2.0
>
>         Attachments: image-2026-05-20-16-37-00-000.png
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> The Security hardening introduced some performance issues in a system 
> multibranch (payara) where one single action is used to process thousand of 
> files per minute. The action is using exctly same calls, parameters, and 
> classes every call.
> Every call is loading classes, so, blocks the ClassLoader as can be seen in 
> JDK Mission Control.
> There's no way to avoid this issue, played with several confi parameters, 
> with no luck.
> Checking code, is not cached, it's suggested to cache The validation of 
> classes, to avoid validate again and again the same class. the  classes 
> mostly validated again and again are: java.lang.Process
> org.apache.struts2.ActionContext
> java.lang.Runtime
> java.lang.Thread
> java.lang.ThreadLocal
>  
> public static Set<Class<?>> validateClasses(Set<String> classNames, 
> ClassLoader validatingClassLoader) throws ConfigurationException {
> Set<Class<?>> classes = new HashSet<>();
> for (String className : classNames) {
> try {
> classes.add(validatingClassLoader.loadClass(className));
> } catch (ClassNotFoundException e) {
> throw new ConfigurationException("Cannot load class for exclusion/exemption 
> configuration: " + className, e);
> }
> }
> return classes;
> }
>  
> !image-2026-05-20-16-37-00-000.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to