Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Help prevent a ModPerl application from replacement by Java

by perrin (Chancellor)
on Aug 30, 2005 at 03:01 UTC ( [id://487635]=note: print w/replies, xml ) Need Help??


in reply to Help prevent a ModPerl application from replacement by Java

A few pieces of advice:
  • Sort your profiles by wall clock time if you want to get something useful from them.
  • Class::DBI will hurt you a lot on this test. It's at least 5 times slower than straight DBI code using prepare_cached, bind_columns and bind parameters.
  • A straight mod_perl handler would be faster than Catalyst and is more equivalent to a vanilla servlet environment. You'd have to make sure you set the TT part up right though, so don't try this if you aren't familiar with TT's caching.
  • DBD::Oracle has a parameter for tuning how many rows to fetch at once. It makes a big difference. Crank it up high.
  • Make sure you have MaxClients set at something that prevents your server from using up all the memory and going into swap. That would kill your performance.
Finally, don't feel bad if you don't win. Java is fast these days when used in a lightweight environment like Tomcat.
  • Comment on Re: Help prevent a ModPerl application from replacement by Java

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://487635]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 00:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found