simulate high cpu load for java development

烂漫一生 提交于 2019-12-02 11:10:32

Well, the thing is if you write a script that will open another process in your machine, loading your machine with many processes is not a good option to check thread safety as multithreading on diffrent processes is handled by the kernel.

What you want id to check the threading into only your process... don't know but if you have web app ,Apache benchmark is best option for you ... in general you can check with http://jmeter.apache.org/ this can do better load testing.

CorbinMc

Use BES to throttle your CPU for that specific prcocess.

I would highly recommend you limiting your memory usage for the exact same purpose.

See this post for a very easy way to pass in a maximum memory usage when you execute the compiled file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!