A user asked for recommendations on stress testing tools and generating high CPU/RAM/network usage. Suggestions offered included Notepad for increasing memory, CPUStress, LoadGen, SimLoads from eucscore, a PowerShell script for maxing out all but one of the CPU cores, and a Linux command to generate a single thread of stress. The G0-EUC team use LoadGen for their research and the post also provided a link to their testing methodology.
Read the entire ‘Stress Testing Tool Recommendations for Generating High Usage’ thread below:
i wand to do some stress testing in my lab and use for demos is there scripts or tools people can recommend
Like load generating tools?
yep
ibcreass cpu usage or ram usage
or generate ipos
or push the network usage
I used notepad as a demo for Performance Manager when I did my appsense demos.
Just open notepad and type some text. Copy that text and paste a bunch. Select all that and copy paste that a ton. Select all and copy paste that a ton. Pretty soon your well over a couple hundred MB.
I also used a tool called CPUStress for that demo.
cheers
cmd > powershell > while($true){}
Free CPU utilization
only a single core though
I found my old demo VMs. I’ll pull cpustress out.
8 years old, lol
Maybe you can get LoadGen going!?
Or grab some SimLoads by Benny over at eucscore.com.
Just start MS Teams
cheers
the load gen one looks interesting
The G0-EUC guys are using it for there researches…
https://www.go-euc.com/insight-in-the-testing-methodology-2020/
Here is a quick a dirty PowerShell script that will max out all but one of your CPU cores.
$NumberOfLogicalProcessors1 = Get-WmiObject win32_processor | Select-Object -ExpandProperty NumberOfLogicalProcessors
$NumberOfLogicalProcessors = $NumberOfLogicalProcessors1 – 1
ForEach ($core in 1..$NumberOfLogicalProcessors){
start-job -ScriptBlock{
$result = 1;
foreach ($loopnumber in 1..2147483647){
$result=1;
foreach ($loopnumber1 in 1..2147483647){
$result=1;
foreach($number in 1..2147483647){
$result = $result * $number
}
}
$result
}
}
}
Read-Host "Press any key to exit…"
Stop-Job *
For a quick and nasty stress on Linux I use
dd if=/dev/random of=/dev/null &
As it is a single threaded command you will need to repeat it for the number of cores in your processor .
kill %% is your friend when you want the madness to stop.
Continue reading and comment on the thread ‘Stress Testing Tool Recommendations for Generating High Usage in ControlUp’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers