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:
> hibernate-dev mailing list
hibernate-dev mailing list