Say, \"run myApp.jar with cpu=800 and memory=1024\"
Ive been doing java programming for many years and it is an embarrasment to ask this question. I don\'t even know
https://github.com/haosdent/jcgroup jcgroup is your best choice. You could use this library to limit the CPU shares, Disk I/O speed, Network bandwidth and etc.