For me the test suite would not even complete, it would hang after ~2500 tests with 0 CPU usage for ever without the --parallel-threads 1 option so it’s a matter of life and death for my setup ;) With that option, it runs in about 7 to 10 mins I think (I have a SSD and 16 GB of ram).
On 02 Jul 2014, at 21:43, Scott Marlow <smar...@redhat.com> wrote: > On 07/02/2014 02:36 PM, Scott Marlow wrote: >> On 06/30/2014 06:27 AM, Emmanuel Bernard wrote: >>> I had a lot of hurdles to make Hibernate ORM run and build on Mac OS X and >>> IntelliJ IDEA so here are a few tidbits: >>> >>> I give Gradle 1GB >>> >>> export GRADLE_OPTS="-Xmx1024M" >> >> Are you on master or an earlier ORM branch? I have >> GRADLE_OPTS="-Xmx1024m -Xms512m" and running the testsuite on Fedora >> takes all available CPU (feels like my ThinkPad is on its knees until >> the build completes). > > For me, when I run the testsuite on the master branch, my cpu gets pegged at > 100% utilization. > >> >> >>> >>> Gradle hangs on me after ~ 2300 to 2400 tests for hibernate-core subsystem. >>> Basically at least one of the worker hangs for ever. >>> To work around that I forced Gradle to use one thread >>> >>> ./gradlew -no-daemon --parallel-threads 1 clean test >> >> Thanks for the tip, I will try this. > > This (-no-daemon --parallel-threads 1) didn't help me. Eventually, the > testsuite will complete but it seems to take a long time (45 minutes or so). > I also tried setting GRADLE_OPTS="-Xmx1024M" but that didn't help. > >> >>> >>> IntelliJ IDEA does not import ORM properly on Mac OS X. I tried both to run >>> IDEA with Java 6 (default) and Java 7 (hacked). The way around that is to >>> use `./gradlew idea` and open the project in the IDE. You then have to >>> manually add the generated source directory in a few modules. >>> Things are explained here: >>> https://community.jboss.org/wiki/ContributingToHibernateUsingIntelliJ >>> >>> Emmanuel >>> _______________________________________________ >>> hibernate-dev mailing list >>> hibernate-dev@lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/hibernate-dev >>> >> >> _______________________________________________ >> hibernate-dev mailing list >> hibernate-dev@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/hibernate-dev >> > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev