Limiting java application's memory and cpu usage

后端 未结 8 643
南笙
南笙 2020-12-18 21:45

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

8条回答
  •  有刺的猬
    2020-12-18 22:26

    In this scenario it might help to run the app on a Mobile emulator (E.g. Android).

    With this you can emulate a mobile device with specific CPU/Memory. So, you should get performance this is comparable to a device that has slower CPU and lesser RAM.

    Android / Nokia emulator are free and available for download from developer sections of Nokia/Google sites.

提交回复
热议问题