I reproduced the problem:

  1. Install Jenkins 1.565.1
  2. Install git-plugin and restart
  3. Go to Manage Jenkins > Configure System
    • Add a valid JDK (I tested with jdk1.7.0_45)
    • Add a valid Maven (I tested with auto-installed maven 3.2.1
  4. Create a maven 2/3 project
  5. Run a build

Result:

  • The build hangs with following output in console.
    Exception in thread "Channel reader thread: channel" java.lang.OutOfMemoryError: PermGen space
    
    • There are cases that log is not output till abort the build (first abort). It looks that the log is buffered.
    • The child java process still remains.
  • Aborting the build does not work for the first time.
    • The child java process still remains.
  • Aborting the build again works.


I attached console logs and outputs:

  • Console text when the build hangs: hangingConsoleText.txt
  • Thread dump (copied from the output from /threadDump) when the build hangs: hangingConsoleText.txt
  • Thread dump when the build does not hang (launched without -XX:MaxPermSize): correctThreaddump.txt
  • Output when launched maven in console: launchedFromConsole.log
    • The process doesn't hang. (the control was returned)
    • I launched it as following:
      set MAVEN_OPTS=-XX:MaxPermSize=16m
      mvn -DforkMode=never test
      
Change By: ikedam (21/Aug/14 11:56 PM)
Summary: Maven project build fails to terminate hanging build process OutOfMemoryError cause maven projects hang
Labels: remoting
Attachment: hangingConsoleText.txt
Attachment: hangingThreadDump.txt
Attachment: correctThreaddump.txt
Attachment: launchedFromConsole.log
Environment: Jenkins 1.565.1, SLES 11.3
Reproduced Jenkins 1.565.1, maven-plugin 2.3, Java 1.7, Windows 8 (64bits)
Component/s: maven
Component/s: core
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

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to