Ds Arjun
Ds Arjun

Reputation: 459

How to perform stress test on existing linux application

I have a embedded system with linux platform and I want to perform Stress test and load test on each application. How can I do that?

If I use any bash script (as in below link) or stress tool it increases load on system not on single application

How to create a CPU spike with a bash command

Let me know how I can achieve on single application.

Upvotes: 2

Views: 2036

Answers (1)

mmelotti
mmelotti

Reputation: 346

If you know consume.exe from Windows, you can easily use the 'stress'. It's like an equivalent of the 'consume'. If you are having trouble using the example below, You can download and install the "stress", it will solve. use the following command:

./stress --cpu 3

It should give you something like >>> stress: info: [18472] dispatching hogs: 3 cpu, 0 io, 0 vm, 0 hdd

Ps: 'Stress' is the name o f the application that runs in Linux, equaly to 'consume' of windows

Upvotes: 2

Related Questions