Re: Help with my perl script



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
.



Relevant Pages

  • 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)
  • IndiaTimes.com - Email - Session hijacking and Inbox Blocking
    ... IndiaTimes.com - Email - Session hijacking and Inbox Blocking ... The script allows user to embed HTML and also javascript in the mail. ...
    (Bugtraq)
  • Re: Not able to establish session--Help
    ... when i run it on my local webserver it ... > never create session means it validate the user but still displays u ... > But when i run this script on my website it runs successfully.. ... > BuntyIndia ...
    (alt.php)
  • Re: Managing concurrency due to multiple submits
    ... PHP script which would not get aborted by the second click do to my ... This will mean I have to write out the session ... Which will never be true with the default file session handler because sessions are single threaded. ... So the second script will wait for the first one's session to end. ...
    (comp.lang.php)
  • Re: Session losing variables?
    ... I have a script start.php and a second script proceed.php ... // Store these vars in the SESSION array. ... // Strings match, so open logfile, exit if this fails. ... Wether they've disabled cookies? ...
    (comp.lang.php)