Recently add autoscaling to pass platform, according to the load situation of the server autoscaling, in order to test this function with stress this pressure test tool, this tool is quite useful. The specific installation method will not say. Record how this tool is used.
Parameter interpretation
-? Display Help information
-V Show version number
-Q does not display run information
-n shows the completed instruction condition
-T--timeout n specifies to stop after n seconds
--backoff n waits for n subtlety to start running
-c generates n processes each process repeatedly calculates the square root of a random number
-I generates n processes each process calls sync () repeatedly, and sync () is used to write the contents of the memory to the hard disk
-M--VM n produces n processes, and each process constantly calls memory allocations for malloc and memory release free functions
--vm-bytes B Specifies the number of bytes of memory at malloc (default 256MB)
--vm-hang N Specifies the number of seconds in free money
-D--hadd N produces n processes that execute write and unlink functions
-hadd-bytes B Specifies the number of bytes written
--hadd-noclean not unlink
Example
Generates 13 CPU processes 4 IO processes stop running after 1 minutes
Stress-c 13-i 4--verbose--timeout 1m
Linux Stress test Tool stress