Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6E8592004F3 for ; Tue, 15 Aug 2017 21:51:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6B2A81673E5; Tue, 15 Aug 2017 19:51:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 88D3B1673E6 for ; Tue, 15 Aug 2017 21:51:06 +0200 (CEST) Received: (qmail 35483 invoked by uid 500); 15 Aug 2017 19:51:05 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 35348 invoked by uid 99); 15 Aug 2017 19:51:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2017 19:51:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DA08D1A00FA for ; Tue, 15 Aug 2017 19:51:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id xitvpJQ_rQtw for ; Tue, 15 Aug 2017 19:51:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 8C3955FAC8 for ; Tue, 15 Aug 2017 19:51:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E5926E0C0D for ; Tue, 15 Aug 2017 19:51:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 47B9C2140E for ; Tue, 15 Aug 2017 19:51:00 +0000 (UTC) Date: Tue, 15 Aug 2017 19:51:00 +0000 (UTC) From: "John Vines (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (MASSEMBLY-866) poor performance of jar-with-dependencies when run in same run as docbook MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 15 Aug 2017 19:51:07 -0000 [ https://issues.apache.org/jira/browse/MASSEMBLY-866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16120192#comment-16120192 ] John Vines edited comment on MASSEMBLY-866 at 8/15/17 7:50 PM: --------------------------------------------------------------- -Maven - seen on both 3.3.9 and 3.5.0 JDK - Openjdk 1.7.0.141, oracle 1.7.0_75, oracle 1.7.0_67 Yes, we are doing a maven job in jenkins Running test with 2.6 now ( will also run test with those overrides, wasn't sure if I could override plugins like that) 228M Which flags would you like? - Ugh, I apologize, I thought I had narrowed it down to my two modules (i.e. docbook + assembly) but turns out I had screwed up something context switching. It is slow, but it is under certain conditions that are not the ones laid out above, as well as those versions above. I can state for certain I've seen it occuring on {code}Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00) Maven home: /usr/share/maven Java version: 1.7.0_141, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.141-2.6.10.1.el7_3.x86_64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.10.0-514.16.1.el7.x86_64", arch: "amd64", family: "unix" {code} and {code}Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00) Maven home: /usr/local/Cellar/maven/3.5.0/libexec Java version: 1.7.0_67, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.12.3", arch: "x86_64", family: "mac" {code} I'm slowly going through iterations so I don't screw up my analysis again was (Author: vines): Maven - seen on both 3.3.9 and 3.5.0 JDK - Openjdk 1.7.0.141, oracle 1.7.0_75, oracle 1.7.0_67 Yes, we are doing a maven job in jenkins Running test with 2.6 now ( will also run test with those overrides, wasn't sure if I could override plugins like that) 228M Which flags would you like? > poor performance of jar-with-dependencies when run in same run as docbook > ------------------------------------------------------------------------- > > Key: MASSEMBLY-866 > URL: https://issues.apache.org/jira/browse/MASSEMBLY-866 > Project: Maven Assembly Plugin > Issue Type: Bug > Affects Versions: 3.0.0 > Reporter: John Vines > Labels: performance > > I apologize for the lack of information, but we have a large build environment which I cannot share, but I'll try to explain things as best I can. > In our full build path, we have 2 components that I've found have side effects. One is a doc build which uses the docbkx-maven-plugin (https://github.com/mimil/docbkx-tools) to generate documentation (and usually takes a while, ~27 minutes) and another which builds a jar-with-depends for our UI. Prior to upgrade the assembly plugin to 3.0.0 from 2.3 or 2.5 (I cannot recall) everything ran fine. After upgrading we found our jenkins builds taking about 40 more minutes, most of this change was in maven-assembly-plugin for that UI jar-with-dependencies > {code}assembly-plugin:3.0.0:single (make-assembly) @ sqrrl-web-dist-ui --- > 16:17:37 [INFO] Reading assembly descriptor: src/main/assembly/dist-ui.xml > 16:17:40 [INFO] Building jar: /var/lib/jenkins/workspace/sqrrl-master-build/web/dist-ui/target/sqrrl-web-dist-ui-2.8.0-SNAPSHOT-jar-with-dependencies.jar > 17:01:54 [INFO] {code} > Eventually I isolated to a case where just that doc and that jar-with-deps being built would cause the jar-with-deps to take ~40 minutes, but if I built it by itself (all other maven options being equal) it would take about 1.5 minutes. > I'm honestly not too familiar with the inner workings of this plugin, nor the maven docbook plugin, but my hunch was that the docbook plugin was 'corrupting' or otherwise altering the main maven jvm in such a way to cause this. It does use some really old plexus plugins, among others, afterall. However, I stumbled across MASSEMBLY-424 and tested forking maven-assembly-plugin:3.0.0 and updating plexus-archiver to 3.5, plexus-io to 3.0.0 and plexus-utils to 3.1.0 and ran my 2 module build with the custom plugin and it ran just as quick as being run standalone (1.5minutes). (To build it with those plugins I had to disable checkstyle and enforcer though since at least one of those plugins versions was java7) > One last datapoint is that in our jar-with-deps we are including bouncycastle's bcpix and bcprov and explicitly excluding them from the jar-with-depends also made that 2 module build faster (but not as fast), so I'm not 100% sure it's the docbook plugin was the catalyst there. -- This message was sent by Atlassian JIRA (v6.4.14#64029)