yum install libcgroup
sudo service cgconfig start
sudo vim /etc/cgconfig.conf
Add the samza group (https://gist.github.com/dnishimura/79d1e97ec064e3f79805ebc1d23161f2) to the conf file
sudo service cgconfig restart
sudo cgcreate -t <username>:<group> -a <username>:<group> -g memory,cpuset:/samza
Run the unit tests:
cgexec -g memory,cpuset:samza ./gradlew clean build
Note: Everytime you run sudo service cgconfig restart
, you have to run the cgcreate
command above afterwards.