I wrote a load-testing script that hits my Apache webapp with 100 serialized requests. The webapp works great that way. If I start multiple simultaneous instances of the load-testing script, the requests eventually fail.
This is my first time posting on this list. I'm not sure what information you'd need, so here's the whole source to the module: package Apache::XMLBridge; # Wraps a commercial Java Applet that returns # (incomplete) XML. Allows me to use Apache # to provide proper HTTP headers and # to use Apache's access control mechanisms. use strict; use LWP::UserAgent; use XML::DOM; # Set host here my $host = "http://127.0.0.1:8199"; #Main Handler Sub sub handler { my $r = shift; $r->content_type('text/xml'); $r->send_http_header; # Create user agent object my $ua = new LWP::UserAgent; $ua->agent("AgentName/0.1 " . $ua->agent); $ua->env_proxy; $ua->timeout(30); # grab parser my $parser = new XML::DOM::Parser (LWP_UserAgent => $ua); my $xmlDoc = $parser->parsefile("${host}/" . $r->args) or die("Couldn't parse xml."); # create XML tag for the top of the file my $xmlDecl = $xmlDoc->createXMLDecl('1.0'); $xmlDoc->setXMLDecl($xmlDecl); # write modified values to variable my $xmlStr = $xmlDoc->toString; # clean up $xmlDoc->dispose; $r->print ($xmlStr); return OK; } 1; The Java applet behaves perfectly when I run the load tester against it without going through mod_perl. __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html