According to Rasmus Lerdorf:
> > I have a site running Apache-1.3.6, PHP-3.0.9, mod_perl-1.20 on Solaris with
> > a Sybase Database. And it has some performance flaws. This site has
> > thousands of hits per day (not sure of how many, though) and it should be
> > faster (few images, no animations whatsoever).
> > 
> > Can anybody tell me what could be done here? EmbPerl instead of PHP?
> > mod_perl/apache tuning? Should database access be done through PHP or
> > mod_perl? When should I use PHP? and mod_perl? do I need both?
> 
> Well, which one are you using for talking to Sybase with?  Choosing one or
> the other would reduce your memory requirements a bit.  Performance-wise
> they really are quite similar.  Choosing one over the other is more of a
> personal preference thing.

If the hits are coming over the internet, you could reduce memory
usage with a lightweight front-end apache proxying to your
heavyweight backends.  The front end can deliver any static
content directly.  If you currently have both mod_perl and php
scripts, you could try serving from separate backend servers
each with only one interpreter included running on different ports.
The front end can use RewriteRules with the [p] flag to transparently
pass requests to the right server.  The mod_perl connections  to
Sybase should be using Apache::DBI if possible.

  Les Mikesell
   [EMAIL PROTECTED]

Reply via email to