UPDATE: To get your 2G heap space you can use this:

export SBT_OPTS=”-Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=2G -Xss2M -Duser.timezone=GMT”

Edit the bash_profile to add the SBT_OPTS to the environment variable

gmedasani-MBP:flume-sink gmedasani$ cat ~/.bash_profile | grep SBT
export SBT_OPTS=”-Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=2G -Xss2M -Duser.timezone=CST”

gmedasani-MBP:flume-sink gmedasani$ source ~/.bash_profile

gmedasani-MBP:flume-sink gmedasani$ env | grep -i SBT
SBT_OPTS=-Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=2G -Xss2M -Duser.timezone=CST

Advertisements