[ https://jira.codehaus.org/browse/MDEP-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=332654#comment-332654
]
Kristian Rosenvold commented on MDEP-421:
-----------------------------------------
There is an abundance of platform-specific/jdk version specific solutions in this area. Just
to illustrate:
{panel}
$ time mvn -q -B org.apache.maven.plugins:maven-dependency-plugin:2.6:unpack -Dartifact=com.google.guava:guava:15.0
real 0m2.110s
user 0m0.091s
sys 0m0.076s
$ time mvn -q -B org.apache.maven.plugins:maven-dependency-plugin:2.8:unpack -Dartifact=com.google.guava:guava:15.0
real 0m2.111s
user 0m0.060s
sys 0m0.090s
{panel}
This kind of performance regression is usually due to file attribute handling, which was handled
by forks for java versions prior to jdk7.
We need exact platform and java versions for this issue. You may also want to give 2.9-SNAPSHOT
a quick spin since it uses the latest version
of "everything".
> 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
|