https://bz.apache.org/bugzilla/show_bug.cgi?id=60615

            Bug ID: 60615
           Summary: 20% CPU use while check for modified resource
           Product: Tomcat 9
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: elghayani.yass...@gmail.com
  Target Milestone: -----

When context is configured to auto reload web resources, the call to:
org.apache.catalina.loader.WebappClassLoaderBase#modified consume huge
resources (up to 10%~20%)

after investigation it seem that the algorithm of this method isn't optimized,
we think that instead of looping throughout all loaded classes
(resourceEntries.entrySet() : almost classes come from jars =~ 11000 classes)
would be better if we loop only throughout classes come from DirResource
(WEB-INF/classes =~300 classes).


for more details thanks to mailing me.

Thx.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to