kprasanna_79 has asked for the wisdom of the Perl Monks concerning the following question:

Greating Monks,
My development of a product involves following software configuration
  • Perl 5.8.5
  • apache 1.3 with mod_perl
  • mysql 4.0.2
  • linux kernel 2.4
  • This is a pure web product and it involves lot of database connection and processing at cgi.After the product developed i found lot of performance issues.
    In the coding level i can able to manage things. But as for as other tunning things i require ur desired advice.
    Kindly render ur help by giving me a lot full of advices in all software configuration areas.
    Thanks in advance
    --prasanna.k

    Replies are listed 'Best First'.
    Re: Performance Tuning
    by perrin (Chancellor) on May 22, 2005 at 03:32 UTC
          Good point, but the mod_perl book also has a lot of help for finding the bottleneck, using the Perl profiler and the DBI profiler.
    Re: Performance Tuning
    by dragonchild (Archbishop) on May 22, 2005 at 17:57 UTC
      The biggest bangs for the buck:
      • pre-loading modules in startup.pl and not scribbling on shared data - reduces both memory usage and response time by up to 30% each
      • Correct database schema - reduces SQL query response time by up to 90%
      • Usage of CPAN modules - reduces response time by up to 30%

      Those numbers are cumulative. I've seen a report go from 270 seconds to 3 seconds, just by following those three items.


      • In general, if you think something isn't in Perl, try it out, because it usually is. :-)
      • "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"
    Re: Performance Tuning
    by lamp (Chaplain) on May 23, 2005 at 06:40 UTC