JarFile and ZipFile lock for just about anything. WildFly 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.
- causes
-
MODULES-289 Memory usage too large for path indexes
- Resolved
- clones
-
JBEAP-10943 (7.1.0) Performance problem in JarFileResourceLoader
- Closed
- is incorporated by
-
JBEAP-10518 (7.0.z) Upgrade jboss-modules from 1.5.3 to 1.5.4
- Closed
- is related to
-
MODULES-289 Memory usage too large for path indexes
- Resolved
- links to