[hibernate-dev] Problems building Core
Adam Warski
adam at warski.org
Tue Dec 22 02:25:12 EST 2009
Hello,
> turns out that MAVEN_OPTS does not help in this case at all. The surefire
> plugin per default uses the forkMode 'once', meaning a new JVM gets created
> for running the tests. Command line arguments passed via MAVEN_OPTS only apply
> for the JVM running the build.
>
> To increase the heap size for surefire you have to pass the JVM options in
> the plugin configuration. See http://opensource.atlassian.com/projects/hibernate/browse/HHH-4728
Ah, didn't know that, thanks a lot for finding this out and fixing :)
> I added -Xmx1024 globally in the parent pom of Core. I think that's better than
> just adding it to Envers alone.
>
> I have no idea why no-one else has experienced this issue. Might be some JVM specific
> thing.
One reason for weird OOMs that I encountered a couple of times was running on a 64-bit JVM. So maybe that's your case.
--
Adam
More information about the hibernate-dev
mailing list