• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • sbt-plugin
    • None
    • Ubuntu 9.4
      Jenkins ver. 1.397
      SBT 0.7.4 + SBT 0.7.5.RC0
      Scala 2.8.1
      Lift 2.2

      When using the sbt Plugin i get the following OutOfMemoryError.

      If i buil with sbt via Shell Scripts, everything is fine.

      [info] == update == [info] :: retrieving :: com.sas#loadplan_2.8.0 [sync] [info] confs: [compile, runtime, test, provided, system, optional, sources, javadoc] [info] 0 artifacts copied, 41 already retrieved (0kB/84ms) [info] == update == [success] Successful. [info] [info] Total time: 4 s, completed 17.02.2011 14:31:07 [info] [info] == compile == [info] Source analysis: 31 new/modified, 0 indirectly invalidated, 0 removed. [info] Compiling main sources...
      [info] == compile ==
      java.lang.OutOfMemoryError: Java heap space at scala.collection.mutable.ListBuffer.$plus$eq(ListBuffer.scala:115) at scala.collection.mutable.ListBuffer.$plus$eq(ListBuffer.scala:42) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206) at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61) at scala.collection.immutable.List.foreach(List.scala:45) at scala.collection.TraversableLike$class.map(TraversableLike.scala:206) at scala.collection.immutable.List.map(List.scala:45) at scala.tools.nsc.symtab.Types$MethodType.paramTypes(Types.scala:1904) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:742) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:126) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61) at scala.collection.immutable.List.foreach(List.scala:45) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:148) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:100) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81)
      at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61) at scala.collection.immutable.List.foreach(List.scala:45) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:91) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61) at scala.collection.immutable.List.foreach(List.scala:45) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:91) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) Error during sbt execution: java.lang.OutOfMemoryError: Java heap space

          [JENKINS-8812] OutOfMemoryError when using sbt Plugin

          uzilan added a comment -

          Could you please attach the whole log so that I could see exactly which parameters you used and try to recreate the error? If not, could you please let me know which projects you were building (if it is publicly available) and the jvm and sbt argument and actions you defined in your project. Also, which version of this plugin did you use?

          Thanks,

          Uzi

          uzilan added a comment - Could you please attach the whole log so that I could see exactly which parameters you used and try to recreate the error? If not, could you please let me know which projects you were building (if it is publicly available) and the jvm and sbt argument and actions you defined in your project. Also, which version of this plugin did you use? Thanks, Uzi

          Hi,

          it is a customer project, so i cannot attach the code, basically it is a very small Lift Project (Lift Version 2.2).
          I used Version 1.2 of SBT Plugin.

          Here is the Log.

          Gestartet durch Benutzer anonymous
          Checkout:workspace / /var/lib/tomcat5.5/hudson/jobs/LoadPlan/workspace - hudson.remoting.LocalChannel@78fd5428
          Using strategy: Default
          Last Built Revision: Revision ee01d58a41f1c3b13c1dd83d9db666e6c38c3bad (origin/master)
          Checkout:workspace / /var/lib/tomcat5.5/hudson/jobs/LoadPlan/workspace - hudson.remoting.LocalChannel@78fd5428
          Fetching changes from the remote Git repository
          Fetching upstream changes from git@git.assembla....
          Commencing build of Revision ee01d58a41f1c3b13c1dd83d9db666e6c38c3bad (origin/master)
          Checking out Revision ee01d58a41f1c3b13c1dd83d9db666e6c38c3bad (origin/master)
          [workspace] $ java -Dsbt.log.noformat=true -jar /home/hudson/bin/sbt-launch-0.7.5.RC0.jar clean-plugins clean update compile test doc package publish-local
          [info] Building project loadplan 0.3-SNAPSHOT against Scala 2.8.0
          [info] using LoadPlanProject with sbt 0.7.5.RC0 and Scala 2.7.7
          [info]
          [info] == clean-plugins ==
          [info] == clean-plugins ==
          [success] Successful.
          [info]
          [info] Total time: 0 s, completed 17.02.2011 14:31:03
          [info]
          [info] == jetty-stop ==
          [info] == jetty-stop ==
          [info]
          [info] == clean ==
          [info] Deleting directory /var/lib/tomcat5.5/hudson/jobs/LoadPlan/workspace/target/scala_2.8.0
          [info] == clean ==
          [success] Successful.
          [info]
          [info] Total time: 0 s, completed 17.02.2011 14:31:03
          [info]
          [info] == update ==
          [info] :: retrieving :: com.sas#loadplan_2.8.0 [sync]
          [info] confs: [compile, runtime, test, provided, system, optional, sources, javadoc]
          [info] 0 artifacts copied, 41 already retrieved (0kB/84ms)
          [info] == update ==
          [success] Successful.
          [info]
          [info] Total time: 4 s, completed 17.02.2011 14:31:07
          [info]
          [info] == compile ==
          [info] Source analysis: 31 new/modified, 0 indirectly invalidated, 0 removed.
          [info] Compiling main sources...
          [info] == compile ==
          java.lang.OutOfMemoryError: Java heap space
          at scala.collection.mutable.ListBuffer.$plus$eq(ListBuffer.scala:115)
          at scala.collection.mutable.ListBuffer.$plus$eq(ListBuffer.scala:42)
          at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
          at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
          at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
          at scala.collection.immutable.List.foreach(List.scala:45)
          at scala.collection.TraversableLike$class.map(TraversableLike.scala:206)
          at scala.collection.immutable.List.map(List.scala:45)
          at scala.tools.nsc.symtab.Types$MethodType.paramTypes(Types.scala:1904)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:742)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:126)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81)
          at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
          at scala.collection.immutable.List.foreach(List.scala:45)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:81)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:148)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:100)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81)
          at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
          at scala.collection.immutable.List.foreach(List.scala:45)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:81)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:91)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81)
          at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
          at scala.collection.immutable.List.foreach(List.scala:45)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:81)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:91)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81)
          at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81)
          Error during sbt execution: java.lang.OutOfMemoryError: Java heap space

          Jan Blankenhorn added a comment - Hi, it is a customer project, so i cannot attach the code, basically it is a very small Lift Project (Lift Version 2.2). I used Version 1.2 of SBT Plugin. Here is the Log. Gestartet durch Benutzer anonymous Checkout:workspace / /var/lib/tomcat5.5/hudson/jobs/LoadPlan/workspace - hudson.remoting.LocalChannel@78fd5428 Using strategy: Default Last Built Revision: Revision ee01d58a41f1c3b13c1dd83d9db666e6c38c3bad (origin/master) Checkout:workspace / /var/lib/tomcat5.5/hudson/jobs/LoadPlan/workspace - hudson.remoting.LocalChannel@78fd5428 Fetching changes from the remote Git repository Fetching upstream changes from git@git.assembla.... Commencing build of Revision ee01d58a41f1c3b13c1dd83d9db666e6c38c3bad (origin/master) Checking out Revision ee01d58a41f1c3b13c1dd83d9db666e6c38c3bad (origin/master) [workspace] $ java -Dsbt.log.noformat=true -jar /home/hudson/bin/sbt-launch-0.7.5.RC0.jar clean-plugins clean update compile test doc package publish-local [info] Building project loadplan 0.3-SNAPSHOT against Scala 2.8.0 [info] using LoadPlanProject with sbt 0.7.5.RC0 and Scala 2.7.7 [info] [info] == clean-plugins == [info] == clean-plugins == [success] Successful. [info] [info] Total time: 0 s, completed 17.02.2011 14:31:03 [info] [info] == jetty-stop == [info] == jetty-stop == [info] [info] == clean == [info] Deleting directory /var/lib/tomcat5.5/hudson/jobs/LoadPlan/workspace/target/scala_2.8.0 [info] == clean == [success] Successful. [info] [info] Total time: 0 s, completed 17.02.2011 14:31:03 [info] [info] == update == [info] :: retrieving :: com.sas#loadplan_2.8.0 [sync] [info] confs: [compile, runtime, test, provided, system, optional, sources, javadoc] [info] 0 artifacts copied, 41 already retrieved (0kB/84ms) [info] == update == [success] Successful. [info] [info] Total time: 4 s, completed 17.02.2011 14:31:07 [info] [info] == compile == [info] Source analysis: 31 new/modified, 0 indirectly invalidated, 0 removed. [info] Compiling main sources... [info] == compile == java.lang.OutOfMemoryError: Java heap space at scala.collection.mutable.ListBuffer.$plus$eq(ListBuffer.scala:115) at scala.collection.mutable.ListBuffer.$plus$eq(ListBuffer.scala:42) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206) at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61) at scala.collection.immutable.List.foreach(List.scala:45) at scala.collection.TraversableLike$class.map(TraversableLike.scala:206) at scala.collection.immutable.List.map(List.scala:45) at scala.tools.nsc.symtab.Types$MethodType.paramTypes(Types.scala:1904) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:742) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:126) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61) at scala.collection.immutable.List.foreach(List.scala:45) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:148) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:100) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61) at scala.collection.immutable.List.foreach(List.scala:45) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:91) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61) at scala.collection.immutable.List.foreach(List.scala:45) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase.gen(GenICode.scala:91) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun$gen$1.apply(GenICode.scala:81) Error during sbt execution: java.lang.OutOfMemoryError: Java heap space

          uzilan added a comment -

          Hi,

          Usually, when setting up sbt (look at http://code.google.com/p/simple-build-tool/wiki/Setup) you're configuring sbt to run with some jvm arguments like -Xmx512M, so that when your run sbt in your command prompt they are implicit.

          Since I cannot see any jvm arguments in you log file, I wonder if you could check your sbt setup to see which jvm arguments are used and specify them in your Jenkins project as well. Maybe the problem is simply that you need to specify a bigger -Xmx?

          It would also be interesting if you could simply run:
          %java -Dsbt.log.noformat=true -jar /home/hudson/bin/sbt-launch-0.7.5.RC0.jar clean-plugins clean update compile test doc package publish-local
          as opposed to running
          %sbt clean-plugins clean update compile test doc package publish-local
          from your command prompt and see if you get the same problem.

          uzilan added a comment - Hi, Usually, when setting up sbt (look at http://code.google.com/p/simple-build-tool/wiki/Setup ) you're configuring sbt to run with some jvm arguments like -Xmx512M, so that when your run sbt in your command prompt they are implicit. Since I cannot see any jvm arguments in you log file, I wonder if you could check your sbt setup to see which jvm arguments are used and specify them in your Jenkins project as well. Maybe the problem is simply that you need to specify a bigger -Xmx? It would also be interesting if you could simply run: %java -Dsbt.log.noformat=true -jar /home/hudson/bin/sbt-launch-0.7.5.RC0.jar clean-plugins clean update compile test doc package publish-local as opposed to running %sbt clean-plugins clean update compile test doc package publish-local from your command prompt and see if you get the same problem.

          Hi,

          it was fixed after adding -Xmx512M as JVM Flag.

          Maybe it would be good to add this to the documentation.

          Thanks for the help

          Jan Blankenhorn added a comment - Hi, it was fixed after adding -Xmx512M as JVM Flag. Maybe it would be good to add this to the documentation. Thanks for the help

            uzilan uzilan
            blankenhorn Jan Blankenhorn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: