This page is no longer maintained — Please continue to the home page at www.scala-lang.org

RE: Trouble with build - maven build hangs and CPU uasge for java 100%!

4 replies
Darren Hague
Joined: 2009-03-16,
User offline. Last seen 42 years 45 weeks ago.

I'm not sure what the problem is, but I noticed the same thing. I left my PC to it, and eventually the build completed successfully.

I suspect there may be some kind of issue with the Scala compiler, and have therefore cross-posted this message to the Scala list.

To the Scala list: the issue occurs when trying to build the Apache Incubator's ESME project - the source can be accessed via SVN at http://svn.apache.org/repos/asf/incubator/esme/trunk/server and built with a "mvn compile". We'd be glad of any pointers as to why the build nails the CPU at 100% for so long...

Cheers,
Darren

>>I just did a fresh svn update of the source and now am having trouble
>>with the build. The maven build hangs and then java usage goes to 100 %
>>CPU usage. I know darren committed code last night - could that somehow
>>be the cause of the problem?
>>
>>Is anyone else having the same problem?
>>
>>Here is where it hangs .....
>>
>>[WARNING]
>>[WARNING] def actionFunc = _perform(is) match {
>>[WARNING] ^
>>[WARNING] D:\temp\Delete
>>me\esme\trunk\server\src\main\scala\org\apache\esme\mod
>>el\Action.scala:209: warning: match is not exhaustive!
>>[WARNING] missing combination Failure
>>[WARNING] missing combination Error
>>[WARNING]
>>[WARNING] def testFunc = testExpr(is) match {
>>[WARNING] ^
>>[WARNING] D:\temp\Delete
>>me\esme\trunk\server\src\main\scala\org\apache\esme\mod
>>el\Action.scala:233: warning: match is not exhaustive!
>>[WARNING] missing combination Failure
>>[WARNING] missing combination Error
>>[WARNING]
>>[WARNING] def regularActions: List[RegularAction] = testExpr(testText)
>>match {
>>
>>[WARNING]
>>
>>D. ^
>>
>
>
>

Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: RE: Trouble with build - maven build hangs and CPU uasge f
If you run maven with -X and see the command-line output, could you try the scalac command directly and see if it's also pegging your CPU?

On Mon, Mar 16, 2009 at 7:18 AM, Darren Hague <dhague@fortybeans.com> wrote:
I'm not sure what the problem is, but I noticed the same thing. I left my PC to it, and eventually the build completed successfully.

I suspect there may be some kind of issue with the Scala compiler, and have therefore cross-posted this message to the Scala list.

To the Scala list: the issue occurs when trying to build the Apache  Incubator's ESME project - the source can be accessed via SVN at  http://svn.apache.org/repos/asf/incubator/esme/trunk/server and built with a "mvn compile". We'd be glad of any pointers as to why the build nails the CPU at 100% for so long...

Cheers,
Darren

>>I just did a fresh svn update of the source and now am having trouble
>>with the build. The maven build hangs and then java usage goes to 100 %
>>CPU usage. I know darren committed code last night - could that somehow
>>be the cause of the problem?
>>
>>Is anyone else having the same problem?
>>
>>Here is where it hangs .....
>>
>>[WARNING]
>>[WARNING]     def actionFunc = _perform(is) match {
>>[WARNING]                      ^
>>[WARNING] D:\temp\Delete
>>me\esme\trunk\server\src\main\scala\org\apache\esme\mod
>>el\Action.scala:209: warning: match is not exhaustive!
>>[WARNING] missing combination        Failure
>>[WARNING] missing combination          Error
>>[WARNING]
>>[WARNING]     def testFunc = testExpr(is) match {
>>[WARNING]                    ^
>>[WARNING] D:\temp\Delete
>>me\esme\trunk\server\src\main\scala\org\apache\esme\mod
>>el\Action.scala:233: warning: match is not exhaustive!
>>[WARNING] missing combination        Failure
>>[WARNING] missing combination          Error
>>[WARNING]
>>[WARNING]   def regularActions: List[RegularAction] = testExpr(testText)
>>match {
>>
>>[WARNING]
>>
>>D.                                             ^
>>
>
>
>
>--
>darren.hague@fortybeans.com



--
darren.hague@fortybeans.com

david.bernard
Joined: 2009-01-08,
User offline. Last seen 1 year 27 weeks ago.
Re: RE: Trouble with build - maven build hangs and CPU uasge f

use -Dmaven.scala.displayCmd=true instead of -X (less verbose, only
the commande line)

On Mon, Mar 16, 2009 at 13:04, Josh Suereth wrote:
> If you run maven with -X and see the command-line output, could you try the
> scalac command directly and see if it's also pegging your CPU?
>
> On Mon, Mar 16, 2009 at 7:18 AM, Darren Hague wrote:
>>
>> I'm not sure what the problem is, but I noticed the same thing. I left my
>> PC to it, and eventually the build completed successfully.
>>
>> I suspect there may be some kind of issue with the Scala compiler, and
>> have therefore cross-posted this message to the Scala list.
>>
>> To the Scala list: the issue occurs when trying to build the Apache
>>  Incubator's ESME project - the source can be accessed via SVN at
>>  http://svn.apache.org/repos/asf/incubator/esme/trunk/server and built with
>> a "mvn compile". We'd be glad of any pointers as to why the build nails the
>> CPU at 100% for so long...
>>
>> Cheers,
>> Darren
>>
>> >>I just did a fresh svn update of the source and now am having trouble
>> >>with the build. The maven build hangs and then java usage goes to 100 %
>> >>CPU usage. I know darren committed code last night - could that somehow
>> >>be the cause of the problem?
>> >>
>> >>Is anyone else having the same problem?
>> >>
>> >>Here is where it hangs .....
>> >>
>> >>[WARNING]
>> >>[WARNING]     def actionFunc = _perform(is) match {
>> >>[WARNING]                      ^
>> >>[WARNING] D:\temp\Delete
>> >>me\esme\trunk\server\src\main\scala\org\apache\esme\mod
>> >>el\Action.scala:209: warning: match is not exhaustive!
>> >>[WARNING] missing combination        Failure
>> >>[WARNING] missing combination          Error
>> >>[WARNING]
>> >>[WARNING]     def testFunc = testExpr(is) match {
>> >>[WARNING]                    ^
>> >>[WARNING] D:\temp\Delete
>> >>me\esme\trunk\server\src\main\scala\org\apache\esme\mod
>> >>el\Action.scala:233: warning: match is not exhaustive!
>> >>[WARNING] missing combination        Failure
>> >>[WARNING] missing combination          Error
>> >>[WARNING]
>> >>[WARNING]   def regularActions: List[RegularAction] = testExpr(testText)
>> >>match {
>> >>
>> >>[WARNING]
>> >>
>> >>D.                                             ^
>> >>
>> >
>> >
>> >
>> >--
>> >darren.hague@fortybeans.com
>>
>>
>>
>> --
>> darren.hague@fortybeans.com
>
>

Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.
Re: RE: Trouble with build - maven build hangs and CPU uasge f

I gave it a go:

Missing:
----------
1) net.sf.jsr107cache:jsr107cache:jar:1.0

Try downloading the file manually from:
http://maven.apache.org

Then, install it using the command:
mvn install:install-file -DgroupId=net.sf.jsr107cache
-DartifactId=jsr107cache -Dversion=1.0 -Dpackaging=jar
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=net.sf.jsr107cache
-DartifactId=jsr107cache -Dversion=1.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.apache.esme:esme-server:war:0.2.3-SNAPSHOT
2) org.openid4java:openid4java:jar:0.9.3
3) net.sf.ehcache:ehcache:jar:1.3.0
4) net.sf.jsr107cache:jsr107cache:jar:1.0

----------
1 required artifact is missing.

for artifact:
org.apache.esme:esme-server:war:0.2.3-SNAPSHOT

from the specified remote repositories:
compass-project.org (http://repo.compass-project.org),
scala-tools.org (http://scala-tools.org/repo-releases),
scala-tools.org.snapshots (http://scala-tools.org/repo-snapshots),
internal (http://192.168.106.29:8080/archiva/repository/internal)

2009/3/16 Darren Hague :
> I'm not sure what the problem is, but I noticed the same thing. I left my PC to it, and eventually the build completed successfully.
>
> I suspect there may be some kind of issue with the Scala compiler, and have therefore cross-posted this message to the Scala list.
>
> To the Scala list: the issue occurs when trying to build the Apache  Incubator's ESME project - the source can be accessed via SVN at  http://svn.apache.org/repos/asf/incubator/esme/trunk/server and built with a "mvn compile". We'd be glad of any pointers as to why the build nails the CPU at 100% for so long...
>
> Cheers,
> Darren
>
>>>I just did a fresh svn update of the source and now am having trouble
>>>with the build. The maven build hangs and then java usage goes to 100 %
>>>CPU usage. I know darren committed code last night - could that somehow
>>>be the cause of the problem?
>>>
>>>Is anyone else having the same problem?
>>>
>>>Here is where it hangs .....
>>>
>>>[WARNING]
>>>[WARNING]     def actionFunc = _perform(is) match {
>>>[WARNING]                      ^
>>>[WARNING] D:\temp\Delete
>>>me\esme\trunk\server\src\main\scala\org\apache\esme\mod
>>>el\Action.scala:209: warning: match is not exhaustive!
>>>[WARNING] missing combination        Failure
>>>[WARNING] missing combination          Error
>>>[WARNING]
>>>[WARNING]     def testFunc = testExpr(is) match {
>>>[WARNING]                    ^
>>>[WARNING] D:\temp\Delete
>>>me\esme\trunk\server\src\main\scala\org\apache\esme\mod
>>>el\Action.scala:233: warning: match is not exhaustive!
>>>[WARNING] missing combination        Failure
>>>[WARNING] missing combination          Error
>>>[WARNING]
>>>[WARNING]   def regularActions: List[RegularAction] = testExpr(testText)
>>>match {
>>>
>>>[WARNING]
>>>
>>>D.                                             ^
>>>
>>
>>
>>
>>--
>>darren.hague@fortybeans.com
>
>
>
> --
> darren.hague@fortybeans.com
>

Darren Hague
Joined: 2009-03-16,
User offline. Last seen 42 years 45 weeks ago.
Re: Trouble with build - maven build hangs and CPU uasge for jav

Thanks, David - this POM change cut the Maven build elapsed time from 2'45" to 1'22" for me.

Cheers,
Darren

>Richard,
>
>I just committed up a fix to the pom.xml file that allocates 1024M to the
>scalac subprocess. This cut compilation time from 1m34s to 1m.
>
>Thanks,
>
>David
>
>On Mon, Mar 16, 2009 at 7:41 AM, Hirsch, Richard > wrote:
>
>> With the Maven options set the build works but takes about 3 minutes longer
>> than before.
>>
>> Thanks.
>>
>> D.
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: David Pollak [mailto:feeder.of.the.bears@gmail.com]
>> Gesendet: Montag, 16. März 2009 15:19
>> An: esme-dev@incubator.apache.org
>> Betreff: Re: Trouble with build - maven build hangs and CPU uasge for java
>> 100%!
>>
>> On Mon, Mar 16, 2009 at 7:15 AM, Bertrand Delacretaz <
>> bdelacretaz@apache.org
>> > wrote:
>>
>> > On Mon, Mar 16, 2009 at 3:11 PM, David Pollak
>> > wrote:
>> > > ...I'll put this on my "back in the office" to do list this morning and
>> > dig up
>> > > the maven settings for increasing heap size....
>> >
>> > The MAVEN_OPTS environment variable sets options for the JVM used to
>> > run Maven, for example:
>> >
>> > export MAVEN_OPTS=-Xmx256M
>>
>>
>> Try
>>
>> export MAVEN_OPTS=-Xmx2048M on Linux and MAVEN_OPTS=-Xmx1200M on Windows
>>
>>
>> >
>> > -Bertrand
>> >
>>
>>
>>
>> --
>> Lift, the simply functional web framework http://liftweb.net
>> Beginning Scala http://www.apress.com/book/view/1430219890
>> Follow me: http://twitter.com/dpp
>> Git some: http://github.com/dpp
>>
>
>
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland