Bug 1449932

Summary: [GSS](6.4.z) Performance problem in JarFileResourceLoader
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: tmiyargi
Component: MSCAssignee: Radovan STANCEL <rstancel>
Status: CLOSED CURRENTRELEASE QA Contact: Jiří Bílek <jbilek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.12CC: bmaxwell, david.lloyd, jbaesner, jbilek, rstancel
Target Milestone: CR1   
Target Release: EAP 6.4.16   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-22 09:21:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1434495, 1448486, 1465995    

Description tmiyargi 2017-05-11 07:59:48 UTC
JarFile and ZipFile lock for just about anything. EAP deployment iterates many shared modules, all of which are backed by JAR files. Deploying many archives in parallel can cause massive contention on these JAR files from iteration operations.
We don't need to iterate the JarFile every time; we can just grab a snapshot copy of the list of regular files in the JAR and traverse that instead.

Comment 1 tmiyargi 2017-05-11 08:02:15 UTC
Upstream https://issues.jboss.org/browse/MODULES-284

Comment 4 Jiří Bílek 2017-06-19 10:13:26 UTC
A speed of deploying was increased -> Verified with EAP 6.4.16.CP.CR1

The fix causes increase of memory usage by cca 10MB.

Comment 5 Petr Penicka 2017-06-22 09:21:05 UTC
Released on June 20 2017 as part of the EAP 6.4.16 maintenance release.