Help with my perl script



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?

Thanks for your help.

Joe


---------------------------------
All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.

Relevant Pages

  • Re: Help with my perl script
    ... I am trying to write a load testing script. ... 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, ...
    (perl.dbi.users)
  • Re: Help with my perl script
    ... On 8/23/06, Stephen Carville wrote: ... > I am trying to write a load testing script. ... > But this script will do one session after another. ... and a single Perl script to "lower the flag" - causing the 300 ...
    (perl.dbi.users)
  • [NEWS] IBM Informix Web DataBlade Local Root by Design
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... that ease development of "intelligent", interactive, Web-enabled database ... person who has access to change the Perl script. ...
    (Securiteam)
  • Re: stupid IE7 question
    ... closer look on session handling. ... Obscure methods like hiding an URI always ... rewrites itself to another script of yours with the session key as the ... I am currently testing a proprietary secure web based ...
    (Pen-Test)
  • Re: (Sloppy correction) Re: session management with database: optimal parameters in php.ini
    ... looking then another script read N! ... make it so simple that there are obviously no deficiencies, ... but I never used their db session management ... I avoid MySQL since I consider it an inferior db. ...
    (alt.php)