[
https://jira.codehaus.org/browse/MDEP-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=334898#comment-334898
]
Daniel Beaulieu commented on MDEP-421:
--------------------------------------
I am seeing this behavior on many different version combinations. In practice
we are on maven version 2.2 running with a 1.6 jdk. I've tried all combinations
including maven 3.1, 1.7 jdk, and different versions (including 2.6 and 2.8) of
the maven-dependency-plugin. The zip I am trying to extract takes about 6
seconds to extract using the unzip command. It takes over 30 seconds to
complete the unpack via maven. I have a hunch your illustration is using sample
data that is too small to reproduce the problem. For instance, my archive is
90MB compressed, and the reporters is 240MB, while the guava artifact is only
~2MB.
$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.6.0_18
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux" version: "2.6.32-5-amd64" arch: "amd64" Family: "unix"
$ ~/apache-maven-3.1.0/bin/mvn -version
Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-27
22:15:32-0400)
Maven home: /home/dbeaulie/apache-maven-3.1.0
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk1.7.0_25/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "2.6.32-5-amd64", arch: "amd64", family: "unix"
> Unpack Incredibly Slow for
> ---------------------------
>
> Key: MDEP-421
> URL: https://jira.codehaus.org/browse/MDEP-421
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: unpack-dependencies
> Affects Versions: 2.8
> Reporter: Mike Gilbode
>
> I've got a zipfile that is 240MB and has ~84k entries. I'm trying to use
> unpack-dependencies and it is taking an inordinate amount of time such that
> it is basically unusable. It seems that it's eagerly trying to read through
> every zip file entry before actually unpacking. This takes roughly 15
> minutes where using the maven antrun plugin / unzip task takes less than a
> minute.
> java.lang.Thread.State: RUNNABLE
> at java.util.Hashtable.put(Hashtable.java:549)
> - locked <0x00000007e160ea18> (a java.util.Hashtable)
> at
> org.codehaus.plexus.archiver.zip.ZipFile.resolveLocalFileHeaderData(ZipFile.java:451)
> at org.codehaus.plexus.archiver.zip.ZipFile.<init>(ZipFile.java:153)
> at
> org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:138)
> at
> org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:120)
> at
> org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:315)
> at
> org.apache.maven.plugin.dependency.fromDependencies.UnpackDependenciesMojo.doExecute(UnpackDependenciesMojo.java:91)
> at
> org.apache.maven.plugin.dependency.AbstractDependencyMojo.execute(AbstractDependencyMojo.java:167)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira