Skip to content

Optimize loading of multirelease JAR files in a WAR #13

Description

@OndroMih

This issue is copied from piranhacloud/piranha#3669. Check out that issue for more information and comments from investigation of possible solutions.


Hi, I noticed that when a WAR file contains a multirelease JAR file, it takes an extremely long time to deploy even a simple application.

Here's an example application:
myapp.war.zip (source code here:
jsf-hello-world.zip

To reproduce, just run the Piranha Web Profile distribution with the app, like this:

java -jar piranha-dist-webprofile-24.2.0.jar --war-file myapp.war

I took a few thread dumps during deployment:
threaddumps.zip

On my computer, it took 96 seconds (1.5 minutes) to deploy the reproducer app (actually, deployment failed, but that's because of a classloading issue in my app with javax/jakarta package prefix, that's not very relevant in this case)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions