Java limiting resource usage

前端 未结 3 806
借酒劲吻你
借酒劲吻你 2021-02-19 04:48

Is there a way to limit both the number of cores that java uses?

And in that same vein, is it possible to limit how much of that core is being used?

3条回答
  •  渐次进展
    2021-02-19 05:46

    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.

提交回复
热议问题