[ 
https://issues.apache.org/jira/browse/MNG-6598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16776141#comment-16776141
 ] 

Lars Borup Jensen commented on MNG-6598:
----------------------------------------

Thanks alot, [~hboutemy] and [~michael-o] . I cloned your 1.16.x repo and build 
it locally and compared it against the maven 3.6.0 version (1.17.1) and even 
though I did feel like I saw a difference, it was very minor so I added a small 
test to the AnsiMain class like this 
{code:java}
private static void perfTestAnsi(boolean stderr) {
 @SuppressWarnings( "resource" )
 PrintStream s = stderr ? System.err : System.out;
 long startTime = System.currentTimeMillis();
 for (int i=0;i<1000;i++) {
 for(Ansi.Color c: Ansi.Color.values()) {
 s.print(" " + ansi().bold().fg(c) + c + ansi().reset());
 }
 s.println();
 }
 long endTime = System.currentTimeMillis();
 System.out.println("Total time " + (endTime - startTime) + "ms");
 }{code}
 

and added the call to the try-catch block

 
{code:java}
testAnsi(false);
 testAnsi(true);
 perfTestAnsi(false);
if (args.length == 0) {
 
{code}
 

and here are the numbers

 

Jansi-1.16.1 Run#1 3364ms
Jansi-1.16.1 Run#2 3415ms
Jansi-1.16.1 Run#3 3065ms
Jansi-1.16.1 Run#4 3357ms
Jansi-1.16.1 Run#5 3125ms


Jansi-1.18-SNAPSHOT Run#1 5488ms
Jansi-1.18-SNAPSHOT Run#2 6687ms
Jansi-1.18-SNAPSHOT Run#3 7095ms
Jansi-1.18-SNAPSHOT Run#4 6385ms
Jansi-1.18-SNAPSHOT Run#5 5697ms

 

1.16.1 is the new branch you created, Hervé - and Jansi 1.18-SNAPSHOT is just 
current master and as you can see for 1000 lines there are notifceable 
performance differences and many of our builds output many many more lines than 
one thousand. I cannot tell if it is in the native part or the java-part. 

 

 

 

> Maven 3.6.0 and Surefire problem
> --------------------------------
>
>                 Key: MNG-6598
>                 URL: https://issues.apache.org/jira/browse/MNG-6598
>             Project: Maven
>          Issue Type: Task
>          Components: General
>    Affects Versions: 3.6.0
>         Environment: windows 7, 64bit Oracle jdk 1.8 (see stacktrace)
>            Reporter: Lars Borup Jensen
>            Priority: Critical
>
> We've been using 3.5.2 for a longer period of time and just recently upgraded 
> to 3.6.0 and then the problems started.
> First we experienced way longer build times when running the absolutely same 
> build in 3.6.0 than 3.5.2. Using -B when running locally does seem to improve 
> build time but still not quite the same.
> The main issue and one that is really causing us headaches is that Surefire 
> 2.22.0 suddently started failing to create forks when running tests - setting 
> forkCount does help on this, but then we come back to the above mentioned 
> problem: build time, which then becomes painfully slow. 
> So our discovery is: same source, same POM (same versions of plugins etc) 
> fails to build on 3.6.0 but works on 3.5.2 (and even faster) - do you have 
> any pointers for us, what to look for?
> Stacktrace from Maven
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on 
> project myproj: There are test failures.
> [ERROR]
> [ERROR] Please refer to C:\projects\myproj\proj\target\surefire-reports for 
> the individual test results.
> [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, 
> [date].dumpstream and [date]-jvmRun[N].dumpstream.
> [ERROR] The forked VM terminated without properly saying goodbye. VM crash or 
> System.exit called?
> [ERROR] Command was cmd.exe /X /C "C:\tools\oracle\jdk\1.8.0_192\jre\bin\java 
> -javaagent:C:\\tools\\apache\\maven\\m2repository\\org\\jacoco\\org.jacoco.agent\\0.8.2\\org.jacoco.agent-0.8.2-runtime.jar=destfile=C:\\projects\\myproj\\proj\\target\\jacoco.exec,append=true,excludes=*_javassist_*:**/com/**/*:**/dk/company/schemas/**/*:**/dk/oio/**/*:**/net/companynet/**/*:**/dk/othercompany/**/*:**/dk/othercompany/integration/**/*:**/dk/company/stub/**/*
>  -jar 
> C:\Users\someuser\AppData\Local\Temp\surefire1255787583870225582\surefirebooter6297886391209366508.jar
>  C:\Users\someuser\AppData\Local\Temp\surefire1255787583870225582 
> 2019-02-22T09-01-49_197-jvmRun1 surefire7364437855153295156tmp 
> surefire_13521419335267356208tmp"
> [ERROR] Process Exit Code: 0
> [ERROR] Crashed tests:
> [ERROR] dk.company.proj.persistence.RepositoryTest
> [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The 
> forked VM terminated without properly saying goodbye. VM crash or System.exit 
> called?
> [ERROR] Command was cmd.exe /X /C "C:\tools\oracle\jdk\1.8.0_192\jre\bin\java 
> -javaagent:C:\\tools\\apache\\maven\\m2repository\\org\\jacoco\\org.jacoco.agent\\0.8.2\\org.jacoco.agent-0.8.2-runtime.jar=destfile=C:\\projects\\myproj\\proj\\target\\jacoco.exec,append=true,excludes=*_javassist_*:**/com/**/*:**/dk/company/schemas/**/*:**/dk/oio/**/*:**/net/companynet/**/*:**/dk/othercompany/**/*:**/dk/othercompany/integration/**/*:**/dk/company/stub/**/*
>  -jar 
> C:\Users\someuser\AppData\Local\Temp\surefire1255787583870225582\surefirebooter6297886391209366508.jar
>  C:\Users\someuser\AppData\Local\Temp\surefire1255787583870225582 
> 2019-02-22T09-01-49_197-jvmRun1 surefire7364437855153295156tmp 
> surefire_13521419335267356208tmp"
> [ERROR] Process Exit Code: 0
> [ERROR] Crashed tests:
> [ERROR] dk.company.proj.persistence.RepositoryTest
> [ERROR] at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:671)
> [ERROR] at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)
> [ERROR] at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:278)
> [ERROR] at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:244)
> {noformat}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to