|
Home > Archive > Apache Server configuration support > June 2007 > handling slow script execution caused by external dependencies
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
handling slow script execution caused by external dependencies
|
|
| lkosak@gmail.com 2007-06-11, 1:25 pm |
| I've got an application built in php that's currently running on a
CentOS 4 reverse-proxied Apache 1.3.37 server (Apache 2.2.4 is doing
the proxying, externally facing).
The problem I'm running into is that many of the php scripts being
executed have to perform requests on a cluster of servers on the LAN
via SOAP. Those servers are reasonably fast, but can sometimes
produce delays of several seconds, up to about 15 seconds at the very
worst.
This causes slow php script execution times, most of which is spent
waiting for responses from the remote servers. Thus, while a given
script spends very little time actually processing, its execution can
take up to 15 seconds. The cluster of servers is running my company's
primary production environment, and I can't expect any speed increases
in the foreseeable future.
If I set MaxClients on Apache 1.3 above ~75, load avg. jumps to about
15 and stays there, things become slow, and at some point the server
becomes unresponsive. The server is a 2.4 ghz Xeon with 500 megs of
ram.
Is there anything I can do besides adding more servers that will allow
Apache to handle a lot of concurrently executing php scripts which
aren't individually demanding too much of the server?
Thanks,
Lou Kosak
| |
| Davide Bianchi 2007-06-12, 7:23 am |
| On 2007-06-11, lkosak@gmail.com <lkosak@gmail.com> wrote:
> The problem I'm running into is that many of the php scripts being
> executed have to perform requests on a cluster of servers on the LAN
> via SOAP. Those servers are reasonably fast, but can sometimes
> produce delays of several seconds, up to about 15 seconds at the very
> worst.
> Is there anything I can do besides adding more servers that will allow
> Apache to handle a lot of concurrently executing php scripts which
> aren't individually demanding too much of the server?
If your bottleneck is in the response time of the backoffice servers you
should optimize that, fix that, and you'll get a substantial advantage
without messing around with other things that could give a really little
advantage and nothing else.
Davide
--
Lusers. Can't live with 'em, can't run 'em over in the car park and make
it look like an accident...
--Chris King
|
|
|
|
|