Re: Help with my perl script
- From: stephen@xxxxxxxxxxxxxx (Stephen Carville)
- Date: Wed, 23 Aug 2006 13:26:33 -0700
joe bayer wrote:
Group,
I am trying to write a load testing script.
The script goes like this: ++++++++++++++++++++++++++++++++++ my $j =
0; while ($j < 300) { $dbh[$j] = DBI->connect (
"dbi:Oracle:$instance[$i]", "$username[$i]", "$passwd[$i]", { PrintError => 1, RaiseError => 1, AutoCommit => 1 } ) || die
"Database Connection not made $DBI::errstr" ;# Create a Database #do
some random, endless select statement here. $j++; } ++++++++++++++++++++++++++++++++++++++++++
What I want is 300 session do the select statement simultaneously.
But this script will do one session after another.
Do I REALLY have to start 300 perl script in order to this testing,
or there is some way in perl that one script can start up 300
session and do their invidual select simultaneously?
Check out Parallel::ForkManager.
Thanks for your help.
Joe
--------------------------------- All-new Yahoo! Mail - Fire up a
more powerful email and get things done faster.
--
Stephen Carville <stephen@xxxxxxxxxxxxxx>
Unix and Network Admin
Nationwide Totalflood
6033 W. Century Blvd
Los Angeles, CA 90045
310-342-3602
.
- Follow-Ups:
- Re: Help with my perl script
- From: Kevin Carothers
- Re: Help with my perl script
- References:
- Help with my perl script
- From: Joe Bayer
- Help with my perl script
- Prev by Date: Re: possible leak in 1.52
- Next by Date: Re: Help with my perl script
- Previous by thread: RE: Help with my perl script
- Next by thread: Re: Help with my perl script
- Index(es):
Relevant Pages
|
|