Skip to content

Optimize loading of multirelease JAR files in a WAR #3669

@OndroMih

Description

@OndroMih

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

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions