Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: response delay |
|
Author |
|
kotov
Joined: 02 Apr 2009 Posts: 3
|
Posted: Mon 06 Apr '09 20:27 Post subject: response delay |
|
|
i'm trying to trouble shoot web application latency issues... and I am not entirely sure that this is apache issue.
environment: win 2003 server, apache 2.2 ssl precompiled, php5
as well box has IIS running, multiple ip's but all been working good so far, config didnt change in a year, started experiencing issues only few month ago
problem: lets say we have a dozen of requests and one of them would take very long time to respond. For ex. a simple page that takes less than a second to serve, might take 17 seconds and more... Some users report wait up to 20 minutes on actual application, which is strange and i find myself stumbled by it.
keep alive is set to 2 sec
network congestion most likely is not a reason, as those delays can be seen not only requesting from prod server, but dev as well, and network team says we are running under capacity...
p.s. is there an easy way to see how many concurrent connections apache served at some point during the day?
thanks fellas! |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Tue 07 Apr '09 9:36 Post subject: |
|
|
How do the users access the server over the internet or over the LAN?
Do you rotate the logs? under the condition that that error log and the access log grows to heavy apache slows down.
Quote: |
p.s. is there an easy way to see how many concurrent connections apache served at some point during the day?
|
Yes you can enable the server-status page. By enabling the status module
Code: |
LoadModule status_module modules/mod_status.so
......
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1 localhost 192.168.50.23
</Location>
|
Than you can see it http://localhost/server-status
Also you should test the network connection from a different PC to the server. Easiest would be a ping test. In a 100Mbit or GBit network it should be under 3 ms. |
|
Back to top |
|
kotov
Joined: 02 Apr 2009 Posts: 3
|
Posted: Tue 07 Apr '09 16:01 Post subject: |
|
|
Quote: | How do the users access the server over the internet or over the LAN? |
LAN
logs rotated daily for now, later on will change it to weekly and pings are at 3ms....
thanks Bond  |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Wed 08 Apr '09 10:40 Post subject: |
|
|
I think it is not a network issue.
How many RAM is your PHP allowed to use? (memory_limit in php.ini)
What kind of scripts do you run? Maybe MySQL is the bottleneck?
How much RAM of the server is usually in usage? What about the CPU usage? |
|
Back to top |
|
kotov
Joined: 02 Apr 2009 Posts: 3
|
Posted: Thu 09 Apr '09 16:53 Post subject: |
|
|
James Blond wrote: | I think it is not a network issue.
How many RAM is your PHP allowed to use? (memory_limit in php.ini)
What kind of scripts do you run? Maybe MySQL is the bottleneck?
How much RAM of the server is usually in usage? What about the CPU usage? |
I've looked at all those things before, made sure that apache has enough ram to play with (maxKeepAliveRequests), CPU is healthy, and as reported by network guys, we are not congested.... db end is Oracle, and indexing and such done up properly.... actually php and ora in this sense doest matter....
one thing, through the page loading, using Fiddler to see client side stats, all of the requests, even cached images (code 304) come back in no less than 2 sec.... everything at least two seconds... that puts who app to load in 2 and more minutes, where from my machine it can take 10 seconds....
ugh.... |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Thu 09 Apr '09 17:13 Post subject: |
|
|
kotov wrote: | that puts who app to load in 2 and more minutes, where from my machine it can take 10 seconds....
ugh.... |
Are in in a different LAN segment? Do you use a different OS and / or Browser? Some virus scanners slow down the network cause they check all in and out going packages.
What is different from your PC to the other ones?
How long does it take on the server itself to load the app? |
|
Back to top |
|
|
|
|
|
|