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
For CPU you can try my new lib :).
https://github.com/dyorgio/cpu-watcher
Example of use:
// Limit process by PID to 25% of host cpu usage CpuWatcher cpuWatcher = new CpuWatcher(pid, 25f); cpuWatcher.start();