Hi Ahmed, That file is for the nameserver. You also need to change the JAVA_OPTS for the broker. Look at the fine `bin/runbroker.sh`.
Thanks, Sohaib On Tue, Mar 6, 2018 at 7:41 PM, Ahmed Ifhaam <ahmedifha...@gmail.com> wrote: > I tried the way you asked me to do, actually values were 4g only even > without changing but ichanged it back to 2gb also and tried no effect its > taking 8 gb. > I changed it in the file > "distribution/target/apache-rocketmq/bin/runserver.sh" is it the right > file > to change ? > > Thank you > > On Tue, Mar 6, 2018 at 12:00 PM, Ahmed Ifhaam <ahmedifha...@gmail.com> > wrote: > > > THANK YOU > > > > On Tue, Mar 6, 2018 at 11:22 AM, yukon <yu...@apache.org> wrote: > > > >> Hi, > >> > >> Change this line: > >> > >> ``` > >> JAVA_OPT="${JAVA_OPT} -server -Xms8g -Xmx8g -Xmn4g" > >> ``` > >> > >> to: > >> > >> ``` > >> JAVA_OPT="${JAVA_OPT} -server -Xms4g -Xmx4g -Xmn2g" > >> ``` > >> > >> It's a Java application, broker will only generate a 4G heap now~ > >> > >> Regards, > >> yukon > >> > >> On Tue, Mar 6, 2018 at 1:14 PM, Ahmed Ifhaam <ahmedifha...@gmail.com> > >> wrote: > >> > >> > hi yukon, > >> > As you said its taking 8gb almost thats why my system is getting stuck > >> > mostly. I read the scripts in the bin folder i didn't find a place to > >> > adjust the memory needed. I have only 8GB of ram and my hard disk is > >> not an > >> > ssd so i need to work without swap as much as possible can you help me > >> on > >> > this please . > >> > > >> > Thank you > >> > > >> > On Mon, Mar 5, 2018 at 5:02 PM, yukon <yu...@apache.org> wrote: > >> > > >> > > Hi, > >> > > > >> > > The start script will consume 8GB mem, you could adjust the script > >> before > >> > > running broker[1]. > >> > > > >> > > Also please try the current rocketmq console for reference[2]. > >> > > > >> > > Let us know if you have any question. > >> > > > >> > > [1]. > >> > > https://github.com/apache/rocketmq/blob/master/ > >> > > distribution/bin/runbroker.sh > >> > > [2]. > >> > > https://github.com/apache/rocketmq-externals/tree/ > >> > master/rocketmq-console > >> > > > >> > > Regards, > >> > > yukon > >> > > > >> > > On Mon, Mar 5, 2018 at 5:33 PM, Ahmed Ifhaam < > ahmedifha...@gmail.com> > >> > > wrote: > >> > > > >> > > > Hi all, > >> > > > > >> > > > I'm Ahmed Ifhaam from Sri Lanka. I'm interested in participating > >> GSOC > >> > > 2018. > >> > > > For my project i'm willing to take ROCKETMQ-380 > >> > > > <https://issues.apache.org/jira/browse/ROCKETMQ-380> issue. Since > >> i'm > >> > > new > >> > > > to the product. Where can i start ? Please help me on this. I > tried > >> > > running > >> > > > Rocket-MQ but it is taking a lot of memory which results my system > >> to > >> > > hang. > >> > > > I'm looking for the proper way to start solving this issue. > >> > > > > >> > > > Thank you. > >> > > > > >> > > > -- > >> > > > *Ahmed Ifhaam * > >> > > > University of Kelaniya | MIT '19 > >> > > > Tel :- 94662244937 | Mob :- 94776699609 > >> > > > ahmedifha...@gmail.com <e-mail-ahmedifha...@gmail.com> > >> > > > > >> > > > >> > > >> > > >> > > >> > -- > >> > *Ahmed Ifhaam * > >> > University of Kelaniya | MIT '19 > >> > Tel :- 0662244937 | Mob :- 0776699609 > >> > ahmedifha...@gmail.com <e-mail-ahmedifha...@gmail.com> > >> > > >> > > > > > > > > -- > > *Ahmed Ifhaam * > > University of Kelaniya | MIT '19 > > Tel :- 0662244937 | Mob :- 0776699609 > > ahmedifha...@gmail.com <e-mail-ahmedifha...@gmail.com> > > > > > > -- > *Ahmed Ifhaam * > University of Kelaniya | MIT '19 > Tel :- 0662244937 | Mob :- 0776699609 > ahmedifha...@gmail.com <e-mail-ahmedifha...@gmail.com> >