Discussion:
[jira] [Created] (MJAVADOC-543) Archiving to jar is very slow
Claes Nordmark (JIRA)
2018-11-13 14:28:00 UTC
Permalink
Claes Nordmark created MJAVADOC-543:
---------------------------------------

Summary: Archiving to jar is very slow
Key: MJAVADOC-543
URL: https://issues.apache.org/jira/browse/MJAVADOC-543
Project: Maven Javadoc Plugin
Issue Type: Bug
Affects Versions: 3.0.1
Environment: Redhat7
Reporter: Claes Nordmark


Doing a stackdump while "maven-javadoc-plugin:3.0.1:jar (attach-javadoc)" shows thread spending a lot of time in UnixNativeDispatcher.getgrgid.

This was not visible in java 8 and javadoc plugin version 2.4.

Our previous build time has been increased from 5min to 3h 30min.

Tested version Java 11 and 3.0.1 of maven-javadoc-plugin

maven config:


 
{code:java}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>{code}
 

{{java.lang.Thread.State: RUNNABLE}}
{{ at sun.nio.fs.UnixNativeDispatcher.getgrgid(***@11/Native Method)}}
{{ at sun.nio.fs.UnixUserPrincipals.fromGid(***@11/UnixUserPrincipals.java:129)}}
{{ at sun.nio.fs.UnixFileAttributes.group(***@11/UnixFileAttributes.java:208)}}
{{ - locked <0x00000006a2fe0f40> (a sun.nio.fs.UnixFileAttributes)}}
{{ at sun.nio.fs.UnixFileAttributeViews$Posix.addRequestedPosixAttributes(***@11/UnixFileAttributeViews.java:214)}}
{{ at sun.nio.fs.UnixFileAttributeViews$Unix.readAttributes(***@11/UnixFileAttributeViews.java:362)}}
{{ at sun.nio.fs.AbstractFileSystemProvider.readAttributes(***@11/AbstractFileSystemProvider.java:94)}}
{{ at java.nio.file.Files.readAttributes(***@11/Files.java:1996)}}
{{ at org.codehaus.plexus.components.io.attributes.FileAttributes.<init>(FileAttributes.java:67)}}
{{ at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.addResources(PlexusIoFileResourceCollection.java:156)}}
{{ at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:250)}}
{{ at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:506)}}
{{ at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:257)}}
{{ at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:235)}}
{{ at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:987)}}
{{ at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:649)}}
{{ at org.apache.maven.plugins.javadoc.JavadocJar.generateArchive(JavadocJar.java:300)}}
{{ at org.apache.maven.plugins.javadoc.JavadocJar.doExecute(JavadocJar.java:205)}}
{{ at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute(AbstractJavadocMojo.java:1912)}}
{{ at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)}}
{{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)}}
{{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)}}
{{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)}}
{{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)}}
{{ at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:200)}}
{{ at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:196)}}
{{ at java.util.concurrent.FutureTask.run(***@11/FutureTask.java:264)}}
{{ at java.util.concurrent.Executors$RunnableAdapter.call(***@11/Executors.java:515)}}
{{ at java.util.concurrent.FutureTask.run(***@11/FutureTask.java:264)}}
{{ at java.util.concurrent.ThreadPoolExecutor.runWorker(***@11/ThreadPoolExecutor.java:1128)}}
{{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(***@11/ThreadPoolExecutor.java:628)}}
{{ at java.lang.Thread.run(***@11/Thread.java:834)}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Robert Scholte (JIRA)
2018-11-23 10:03:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16696611#comment-16696611 ]

Robert Scholte commented on MJAVADOC-543:
-----------------------------------------

This is hard to compare. The jump from both plugin-2.4 to 3.0.1 (15+releases) and JDK 8 to 11 can all have effect.

Please narrow it down first.
Post by Claes Nordmark (JIRA)
Archiving to jar is very slow
-----------------------------
Key: MJAVADOC-543
URL: https://issues.apache.org/jira/browse/MJAVADOC-543
Project: Maven Javadoc Plugin
Issue Type: Bug
Affects Versions: 3.0.1
Environment: Redhat7
Reporter: Claes Nordmark
Priority: Major
Doing a stackdump while "maven-javadoc-plugin:3.0.1:jar (attach-javadoc)" shows thread spending a lot of time in UnixNativeDispatcher.getgrgid.
This was not visible in java 8 and javadoc plugin version 2.4.
Our previous build time has been increased from 5min to 3h 30min.
Tested version Java 11 and 3.0.1 of maven-javadoc-plugin
 
{code:java}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>{code}
 
{{java.lang.Thread.State: RUNNABLE}}
{noformat}
- locked <0x00000006a2fe0f40> (a sun.nio.fs.UnixFileAttributes)
at org.codehaus.plexus.components.io.attributes.FileAttributes.<init>(FileAttributes.java:67)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.addResources(PlexusIoFileResourceCollection.java:156)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:250)
at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:506)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:257)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:235)
at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:987)
at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:649)
at org.apache.maven.plugins.javadoc.JavadocJar.generateArchive(JavadocJar.java:300)
at org.apache.maven.plugins.javadoc.JavadocJar.doExecute(JavadocJar.java:205)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute(AbstractJavadocMojo.java:1912)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:200)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:196)
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Robert Scholte (JIRA)
2018-11-23 10:00:01 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated MJAVADOC-543:
------------------------------------
Description:
Doing a stackdump while "maven-javadoc-plugin:3.0.1:jar (attach-javadoc)" shows thread spending a lot of time in UnixNativeDispatcher.getgrgid.

This was not visible in java 8 and javadoc plugin version 2.4.

Our previous build time has been increased from 5min to 3h 30min.

Tested version Java 11 and 3.0.1 of maven-javadoc-plugin

maven config:

 
{code:java}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>{code}
 

{{java.lang.Thread.State: RUNNABLE}}
{noformat}
at sun.nio.fs.UnixNativeDispatcher.getgrgid(***@11/Native Method)
at sun.nio.fs.UnixUserPrincipals.fromGid(***@11/UnixUserPrincipals.java:129)
at sun.nio.fs.UnixFileAttributes.group(***@11/UnixFileAttributes.java:208)
- locked <0x00000006a2fe0f40> (a sun.nio.fs.UnixFileAttributes)
at sun.nio.fs.UnixFileAttributeViews$Posix.addRequestedPosixAttributes(***@11/UnixFileAttributeViews.java:214)
at sun.nio.fs.UnixFileAttributeViews$Unix.readAttributes(***@11/UnixFileAttributeViews.java:362)
at sun.nio.fs.AbstractFileSystemProvider.readAttributes(***@11/AbstractFileSystemProvider.java:94)
at java.nio.file.Files.readAttributes(***@11/Files.java:1996)
at org.codehaus.plexus.components.io.attributes.FileAttributes.<init>(FileAttributes.java:67)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.addResources(PlexusIoFileResourceCollection.java:156)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:250)
at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:506)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:257)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:235)
at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:987)
at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:649)
at org.apache.maven.plugins.javadoc.JavadocJar.generateArchive(JavadocJar.java:300)
at org.apache.maven.plugins.javadoc.JavadocJar.doExecute(JavadocJar.java:205)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute(AbstractJavadocMojo.java:1912)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:200)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:196)
at java.util.concurrent.FutureTask.run(***@11/FutureTask.java:264)
at java.util.concurrent.Executors$RunnableAdapter.call(***@11/Executors.java:515)
at java.util.concurrent.FutureTask.run(***@11/FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(***@11/ThreadPoolExecutor.java:1128)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(***@11/ThreadPoolExecutor.java:628)
at java.lang.Thread.run(***@11/Thread.java:834)
{noformat}

was:
Doing a stackdump while "maven-javadoc-plugin:3.0.1:jar (attach-javadoc)" shows thread spending a lot of time in UnixNativeDispatcher.getgrgid.

This was not visible in java 8 and javadoc plugin version 2.4.

Our previous build time has been increased from 5min to 3h 30min.

Tested version Java 11 and 3.0.1 of maven-javadoc-plugin

maven config:


 
{code:java}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>{code}
 

{{java.lang.Thread.State: RUNNABLE}}
{{ at sun.nio.fs.UnixNativeDispatcher.getgrgid(***@11/Native Method)}}
{{ at sun.nio.fs.UnixUserPrincipals.fromGid(***@11/UnixUserPrincipals.java:129)}}
{{ at sun.nio.fs.UnixFileAttributes.group(***@11/UnixFileAttributes.java:208)}}
{{ - locked <0x00000006a2fe0f40> (a sun.nio.fs.UnixFileAttributes)}}
{{ at sun.nio.fs.UnixFileAttributeViews$Posix.addRequestedPosixAttributes(***@11/UnixFileAttributeViews.java:214)}}
{{ at sun.nio.fs.UnixFileAttributeViews$Unix.readAttributes(***@11/UnixFileAttributeViews.java:362)}}
{{ at sun.nio.fs.AbstractFileSystemProvider.readAttributes(***@11/AbstractFileSystemProvider.java:94)}}
{{ at java.nio.file.Files.readAttributes(***@11/Files.java:1996)}}
{{ at org.codehaus.plexus.components.io.attributes.FileAttributes.<init>(FileAttributes.java:67)}}
{{ at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.addResources(PlexusIoFileResourceCollection.java:156)}}
{{ at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:250)}}
{{ at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:506)}}
{{ at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:257)}}
{{ at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:235)}}
{{ at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:987)}}
{{ at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:649)}}
{{ at org.apache.maven.plugins.javadoc.JavadocJar.generateArchive(JavadocJar.java:300)}}
{{ at org.apache.maven.plugins.javadoc.JavadocJar.doExecute(JavadocJar.java:205)}}
{{ at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute(AbstractJavadocMojo.java:1912)}}
{{ at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)}}
{{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)}}
{{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)}}
{{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)}}
{{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)}}
{{ at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:200)}}
{{ at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:196)}}
Post by Claes Nordmark (JIRA)
Archiving to jar is very slow
-----------------------------
Key: MJAVADOC-543
URL: https://issues.apache.org/jira/browse/MJAVADOC-543
Project: Maven Javadoc Plugin
Issue Type: Bug
Affects Versions: 3.0.1
Environment: Redhat7
Reporter: Claes Nordmark
Priority: Major
Doing a stackdump while "maven-javadoc-plugin:3.0.1:jar (attach-javadoc)" shows thread spending a lot of time in UnixNativeDispatcher.getgrgid.
This was not visible in java 8 and javadoc plugin version 2.4.
Our previous build time has been increased from 5min to 3h 30min.
Tested version Java 11 and 3.0.1 of maven-javadoc-plugin
 
{code:java}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>{code}
 
{{java.lang.Thread.State: RUNNABLE}}
{noformat}
- locked <0x00000006a2fe0f40> (a sun.nio.fs.UnixFileAttributes)
at org.codehaus.plexus.components.io.attributes.FileAttributes.<init>(FileAttributes.java:67)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.addResources(PlexusIoFileResourceCollection.java:156)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:250)
at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:506)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:257)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:235)
at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:987)
at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:649)
at org.apache.maven.plugins.javadoc.JavadocJar.generateArchive(JavadocJar.java:300)
at org.apache.maven.plugins.javadoc.JavadocJar.doExecute(JavadocJar.java:205)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute(AbstractJavadocMojo.java:1912)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:200)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:196)
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Claes Nordmark (JIRA)
2018-11-23 13:24:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16697125#comment-16697125 ]

Claes Nordmark commented on MJAVADOC-543:
-----------------------------------------

Narrowed down to [https://github.com/codehaus-plexus/plexus-io/pull/17] :) made a push for a fix to plexus-io
Post by Claes Nordmark (JIRA)
Archiving to jar is very slow
-----------------------------
Key: MJAVADOC-543
URL: https://issues.apache.org/jira/browse/MJAVADOC-543
Project: Maven Javadoc Plugin
Issue Type: Bug
Affects Versions: 3.0.1
Environment: Redhat7
Reporter: Claes Nordmark
Priority: Major
Doing a stackdump while "maven-javadoc-plugin:3.0.1:jar (attach-javadoc)" shows thread spending a lot of time in UnixNativeDispatcher.getgrgid.
This was not visible in java 8 and javadoc plugin version 2.4.
Our previous build time has been increased from 5min to 3h 30min.
Tested version Java 11 and 3.0.1 of maven-javadoc-plugin
 
{code:java}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>{code}
 
{{java.lang.Thread.State: RUNNABLE}}
{noformat}
- locked <0x00000006a2fe0f40> (a sun.nio.fs.UnixFileAttributes)
at org.codehaus.plexus.components.io.attributes.FileAttributes.<init>(FileAttributes.java:67)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.addResources(PlexusIoFileResourceCollection.java:156)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:250)
at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:506)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:257)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:235)
at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:987)
at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:649)
at org.apache.maven.plugins.javadoc.JavadocJar.generateArchive(JavadocJar.java:300)
at org.apache.maven.plugins.javadoc.JavadocJar.doExecute(JavadocJar.java:205)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute(AbstractJavadocMojo.java:1912)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:200)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:196)
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Robert Scholte (JIRA)
2018-12-09 17:36:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MJAVADOC-543.
-----------------------------------
Resolution: Fixed
Assignee: Robert Scholte

Fixed in [aceadd711651833de882f82eee7d55fb1db99af0|https://gitbox.apache.org/repos/asf?p=maven-javadoc-plugin.git;a=commit;h=aceadd711651833de882f82eee7d55fb1db99af0]
Post by Claes Nordmark (JIRA)
Archiving to jar is very slow
-----------------------------
Key: MJAVADOC-543
URL: https://issues.apache.org/jira/browse/MJAVADOC-543
Project: Maven Javadoc Plugin
Issue Type: Bug
Affects Versions: 3.0.1
Environment: Redhat7
Reporter: Claes Nordmark
Assignee: Robert Scholte
Priority: Major
Doing a stackdump while "maven-javadoc-plugin:3.0.1:jar (attach-javadoc)" shows thread spending a lot of time in UnixNativeDispatcher.getgrgid.
This was not visible in java 8 and javadoc plugin version 2.4.
Our previous build time has been increased from 5min to 3h 30min.
Tested version Java 11 and 3.0.1 of maven-javadoc-plugin
 
{code:java}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>{code}
 
{{java.lang.Thread.State: RUNNABLE}}
{noformat}
- locked <0x00000006a2fe0f40> (a sun.nio.fs.UnixFileAttributes)
at org.codehaus.plexus.components.io.attributes.FileAttributes.<init>(FileAttributes.java:67)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.addResources(PlexusIoFileResourceCollection.java:156)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:250)
at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:506)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:257)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:235)
at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:987)
at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:649)
at org.apache.maven.plugins.javadoc.JavadocJar.generateArchive(JavadocJar.java:300)
at org.apache.maven.plugins.javadoc.JavadocJar.doExecute(JavadocJar.java:205)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute(AbstractJavadocMojo.java:1912)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:200)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:196)
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
Hudson (JIRA)
2018-12-09 17:54:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/MJAVADOC-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16714044#comment-16714044 ]

Hudson commented on MJAVADOC-543:
---------------------------------

Build succeeded in Jenkins: Maven TLP » maven-javadoc-plugin » master #87

See https://builds.apache.org/job/maven-box/job/maven-javadoc-plugin/job/master/87/
Post by Claes Nordmark (JIRA)
Archiving to jar is very slow
-----------------------------
Key: MJAVADOC-543
URL: https://issues.apache.org/jira/browse/MJAVADOC-543
Project: Maven Javadoc Plugin
Issue Type: Bug
Affects Versions: 3.0.1
Environment: Redhat7
Reporter: Claes Nordmark
Assignee: Robert Scholte
Priority: Major
Doing a stackdump while "maven-javadoc-plugin:3.0.1:jar (attach-javadoc)" shows thread spending a lot of time in UnixNativeDispatcher.getgrgid.
This was not visible in java 8 and javadoc plugin version 2.4.
Our previous build time has been increased from 5min to 3h 30min.
Tested version Java 11 and 3.0.1 of maven-javadoc-plugin
 
{code:java}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<failOnError>false</failOnError>
</configuration>
</execution>
</executions>
</plugin>{code}
 
{{java.lang.Thread.State: RUNNABLE}}
{noformat}
- locked <0x00000006a2fe0f40> (a sun.nio.fs.UnixFileAttributes)
at org.codehaus.plexus.components.io.attributes.FileAttributes.<init>(FileAttributes.java:67)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.addResources(PlexusIoFileResourceCollection.java:156)
at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:250)
at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:506)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:257)
at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:235)
at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:987)
at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:649)
at org.apache.maven.plugins.javadoc.JavadocJar.generateArchive(JavadocJar.java:300)
at org.apache.maven.plugins.javadoc.JavadocJar.doExecute(JavadocJar.java:205)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute(AbstractJavadocMojo.java:1912)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:200)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:196)
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Loading...