[Dev] Java heap space Error
Hi all, I'm building carbon mediation and product-esb from source and getting an error [ERROR] Java heap space -> [Help 1] My bashrc file looks like this export MAVEN_OPTS="-Xmx4096m -Xms1024m -XX:PremSize=1024m -XX:MaxPermSize=1024m" export JVM_ARGS="-Xmx4096m -XX:MaxPermSize=2048m" Can any one suggest with the correct value to use here. -- *S.Elilmatha* Associate Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile 0779842221. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Java heap space Error
Hi Elimantha, Did you check those options are set correctly when you run the build? If they already set successfully, then it might be because still the allocation is not enough. But probably your current allocation looks enough. Anyway you can try to increase and build again. Thanks On Tue, Apr 28, 2015 at 11:27 AM, Elilmatha Sivanesan wrote: > > Hi all, > > I'm building carbon mediation and product-esb from source and getting an > error > > [ERROR] Java heap space -> [Help 1] > > My bashrc file looks like this > export MAVEN_OPTS="-Xmx4096m -Xms1024m -XX:PremSize=1024m > -XX:MaxPermSize=1024m" > export JVM_ARGS="-Xmx4096m -XX:MaxPermSize=2048m" > > Can any one suggest with the correct value to use here. > > -- > *S.Elilmatha* > Associate Software Engineer, > > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > Mobile 0779842221. > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Thusitha Dayaratne Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com Abouthttp://about.me/thusithathilina ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Java heap space Error
Hi Elilmatha, Did you verified if the MAVEN_OPTS set properly? you can check it with this command[1]. If it's not set properly reload bashrc with this command[2]. [1] echo $MAVEN_OPTS [2] source ~/.bashrc Regards, On Tue, Apr 28, 2015 at 11:32 AM, Thusitha Thilina Dayaratne < thusit...@wso2.com> wrote: > Hi Elimantha, > > Did you check those options are set correctly when you run the build? > If they already set successfully, then it might be because still the > allocation is not enough. But probably your current allocation looks enough. > Anyway you can try to increase and build again. > > Thanks > > On Tue, Apr 28, 2015 at 11:27 AM, Elilmatha Sivanesan > wrote: > >> >> Hi all, >> >> I'm building carbon mediation and product-esb from source and getting an >> error >> >> [ERROR] Java heap space -> [Help 1] >> >> My bashrc file looks like this >> export MAVEN_OPTS="-Xmx4096m -Xms1024m -XX:PremSize=1024m >> -XX:MaxPermSize=1024m" >> export JVM_ARGS="-Xmx4096m -XX:MaxPermSize=2048m" >> >> Can any one suggest with the correct value to use here. >> >> -- >> *S.Elilmatha* >> Associate Software Engineer, >> >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> Mobile 0779842221. >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Thusitha Dayaratne > Software Engineer > WSO2 Inc. - lean . enterprise . middleware | wso2.com > > Mobile +94712756809 > Blog alokayasoya.blogspot.com > Abouthttp://about.me/thusithathilina > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Java heap space Error
Hi Yes both values are set properly ,But still I get the heap space error. Thank you. On Tue, Apr 28, 2015 at 11:44 AM, Pumudu Ruhunage wrote: > Hi Elilmatha, > > Did you verified if the MAVEN_OPTS set properly? you can check it with > this command[1]. If it's not set properly reload bashrc with this > command[2]. > > [1] echo $MAVEN_OPTS > > [2] source ~/.bashrc > > > Regards, > > On Tue, Apr 28, 2015 at 11:32 AM, Thusitha Thilina Dayaratne < > thusit...@wso2.com> wrote: > >> Hi Elimantha, >> >> Did you check those options are set correctly when you run the build? >> If they already set successfully, then it might be because still the >> allocation is not enough. But probably your current allocation looks enough. >> Anyway you can try to increase and build again. >> >> Thanks >> >> On Tue, Apr 28, 2015 at 11:27 AM, Elilmatha Sivanesan > > wrote: >> >>> >>> Hi all, >>> >>> I'm building carbon mediation and product-esb from source and getting an >>> error >>> >>> [ERROR] Java heap space -> [Help 1] >>> >>> My bashrc file looks like this >>> export MAVEN_OPTS="-Xmx4096m -Xms1024m -XX:PremSize=1024m >>> -XX:MaxPermSize=1024m" >>> export JVM_ARGS="-Xmx4096m -XX:MaxPermSize=2048m" >>> >>> Can any one suggest with the correct value to use here. >>> >>> -- >>> *S.Elilmatha* >>> Associate Software Engineer, >>> >>> WSO2 Inc.; http://wso2.com >>> lean.enterprise.middleware >>> >>> Mobile 0779842221. >>> >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Thusitha Dayaratne >> Software Engineer >> WSO2 Inc. - lean . enterprise . middleware | wso2.com >> >> Mobile +94712756809 >> Blog alokayasoya.blogspot.com >> Abouthttp://about.me/thusithathilina >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Pumudu Ruhunage > Associate Software Engineer | WSO2 Inc > M: +94 779 664493 | http://wso2.com > -- *S.Elilmatha* Associate Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile 0779842221. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Java heap space Error
Hi, Those values should be enough. For example, I have: $ echo $MAVEN_OPTS -Xms512m -Xmx1536m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=256m When you run mvn clean install, run following command in another terminal. ps -ef | grep "clean install" You should see MAVEN_OPTS value in the process. Thanks! Best Regards, On Tue, Apr 28, 2015 at 11:27 AM, Elilmatha Sivanesan wrote: > > Hi all, > > I'm building carbon mediation and product-esb from source and getting an > error > > [ERROR] Java heap space -> [Help 1] > > My bashrc file looks like this > export MAVEN_OPTS="-Xmx4096m -Xms1024m -XX:PremSize=1024m > -XX:MaxPermSize=1024m" > export JVM_ARGS="-Xmx4096m -XX:MaxPermSize=2048m" > > Can any one suggest with the correct value to use here. > > -- > *S.Elilmatha* > Associate Software Engineer, > > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > Mobile 0779842221. > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Isuru Perera Associate Technical Lead | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware about.me/chrishantha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev