DavidYahalom.com is an IT knowledgebase dedicated to the world of databses and RDBMS systems by David Yahalom. Here you'll find articles, views, news, tips and in-depth analysis about Oracle, DB2 LUW, Sql Server and MySql. I hope you'll enjoy your stay.
23rd
JUL
Simulate load on your linux server using a one-liner
Posted by David Yahalom under Unix, Linux, General IT
Yesterday I needed a quick way to simulate load on a Linux sever. I wanted to find out that my monitoring system is working and sending alerts.
While there are many many tools that can do this, all I needed was a simple bash one-liner shell script that can make the CPUs beg for mercy.
What I ended up using is this:
dd if=/dev/zero bs=100M | gzip | gzip -d | gzip | gzip -d | gzip | gzip -d > /dev/null &
Send a few of these babies to the background and you’ll start seeing smoke coming from your server soon enough.
Leave a Reply
Post Meta
-
July 23, 2008 -
Unix, Linux, General IT -
No Comments
-
Comments Feed
DavidYahalom.com - Oracle, Databases, SQL, news, views, articles and in-depth analysis is powered by Wordpress. Designed by Free WordPress Themes.
