Hi Gautier,

> Have you tried to increase maven's memory?
> 
> |$ export MAVEN_OPTS="-Xmx3000m"|
> |||How much memory do you have? $ free -h If I recall correctly, I had issues 
> with maven 3.5.x, try to upgrade to maven 3.6.0. Let us know if it works in 
> this case, because the documentation will be out-dated. Regards |

I used this:

james-project$ export MAVEN_OPTS="-Xmx4g -Xss4g -XX:MetaspaceSize=2g 
-XX:MaxMetaspaceSize=4g -XX:+CMSClassUnloadingEnabled"

I think it should be enough.

I will try with Maven 3.6.0. Thanks for the suggestion!


Cheers,
=David


> On Oct 22, 2019, at 21:31, Gautier DI FOLCO <gdifo...@linagora.com> wrote:
> 
> 
> David Leangen wrotes:
>> Hi!
>> 
>> I am attempting to build James. This is my first experience with this 
>> project.
>> 
>> I have tried several JVM configurations, but on both branches 3.2.0 and 
>> 3.3.x, my build gets stuck on the project “ES metric reporter”. That project 
>> stalls for about 40 minutes or so before I get an OutOfMemoryError.
>> 
>> I am following the instructions on this page:
>> 
>> http://james.apache.org/server/quick-start-cassandra.html 
>> <http://james.apache.org/server/quick-start-cassandra.html>
>> 
>> Using this command:
>> 
>> mvn package -DskipTests --also-make --projects 
>> server/container/guice/cassandra-guice
>> 
>> 
>> My system:
>> 
>> mvn -version
>> Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 
>> 2018-06-18T03:33:14+09:00)
>> Maven home: /Users/dleangen/.sdkman/candidates/maven/current
>> Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: 
>> /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre
>> Default locale: en_JP, platform encoding: UTF-8
>> OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"
>> 
>> 
>> Any hints?
>> 
>> Thank you!
>> =David
>> 
>> 
> Hello David,
> 
> Have you tried to increase maven's memory?
> 
> |$ export MAVEN_OPTS="-Xmx3000m"|
> |||How much memory do you have? $ free -h If I recall correctly, I had issues 
> with maven 3.5.x, try to upgrade to maven 3.6.0. Let us know if it works in 
> this case, because the documentation will be out-dated. Regards |
> 
> -- 
> Gautier DI FOLCO
> 

Reply via email to