ibanix has asked for the wisdom of the Perl Monks concerning the following question:
As you can see, the script forks a number of children and calls out to wget to handle the dirty work (this was needed in a hurry, ok?).#!/usr/bin/perl -w use strict; my $runs = 100; while ($runs) { my $pid = fork; # Parent if ($pid) { $runs--; } # Child if ($pid == 0) { my $output = `wget -S http://www.mysitegoeshere.org -O + /dev/null 2> /dev/null`; exit; } }
edited: Sun Jan 5 00:26:29 2003 by jeffa - title change (was: Limitation: perl, my code, or something else?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stress testing a web server
by tachyon (Chancellor) on Jan 05, 2003 at 00:14 UTC | |
|
Re: Stress testing a web server
by atcroft (Abbot) on Jan 04, 2003 at 23:00 UTC | |
|
Re: Stress testing a web server
by Aristotle (Chancellor) on Jan 05, 2003 at 01:38 UTC | |
|
Re: Stress testing a web server
by fokat (Deacon) on Jan 05, 2003 at 02:04 UTC | |
|
Re: Stress testing a web server
by IlyaM (Parson) on Jan 05, 2003 at 11:50 UTC | |
|
Re: Stress testing a web server
by pg (Canon) on Jan 05, 2003 at 00:59 UTC | |
by ibanix (Hermit) on Jan 05, 2003 at 03:45 UTC | |
by tachyon (Chancellor) on Jan 05, 2003 at 09:40 UTC | |
by pg (Canon) on Jan 05, 2003 at 04:33 UTC | |
|
•Re: Stress testing a web server
by merlyn (Sage) on Jan 05, 2003 at 03:48 UTC | |
|
Re: Stress testing a web server
by osama (Scribe) on Jan 05, 2003 at 21:16 UTC | |
|
Re: Stress testing a web server
by ibanix (Hermit) on Jan 05, 2003 at 03:11 UTC |