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: Slow initial connection - Apache/2.4.4 & PHP5.4.4 x64 |
|
Author |
|
m4trix
Joined: 25 Jun 2012 Posts: 3
|
Posted: Wed 10 Jul '13 21:33 Post subject: Slow initial connection - Apache/2.4.4 & PHP5.4.4 x64 |
|
|
Hi everyone.
For some reason the initial connection to a resource (.js, .php, .html - whatever it may be) is extremely slow.
The server is Apache/2.4.4 (Win64) with PHP/5.4.4-Win64 running on Windows Server 2008 R2. There is also an x64 version of MySQL 5.6.11.
I don't believe MySQL or PHP themselves are related to the issue as the same thing happens with static html files as well.
For example, I made a request to http://servername/index.php and it took 20.10s for the server to return a response. Subsequent requests are fast, until such time that, presumably, it needs to create a new connection.
It's worth mentioning that I'm the only one using it at the moment (so no server load) and its only being accessed over an intranet (pinging the server results in a response < 1 ms)
I am trying to replace a server running on my local x86 XP machine which works without issue.
Anyway, I don't even know where to begin looking for the cause. Any thoughts?
Thanks! |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3093 Location: Hilversum, NL, EU
|
Posted: Wed 10 Jul '13 22:14 Post subject: |
|
|
Do you have in your httpd.conf:
AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off
Same when you use the IP or 127.0.0.1 instead of servername ?
Using network folder somewhere in your httpd.conf ? |
|
Back to top |
|
m4trix
Joined: 25 Jun 2012 Posts: 3
|
Posted: Wed 10 Jul '13 22:56 Post subject: |
|
|
Of the four variables you mentioned, "EnableMMAP off" is the only one I have in my httpd.conf file (which I just set earlier today to see if it fixed the issue - but it's had no impact). I also don't believe the SSPI stuff (see below) is causing it either - the problem existed before that was added.
I get the same speed issue whether I use the IP or the servername, and no, it's not using any network folders.
BUT - I did come across a new piece of information that will hopefully help. The server is on my work network - which is where I would have accessed it in the past and experienced the issue. This time I accessed the server from home over VPN and I'm having no delay issues at all - so it seems to be isolated to the internal network.
If it helps, here is my current httpd.conf file (with commented lines removed):
Code: | ServerRoot "d:/Apache24"
Listen 80
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule php5_module "D:/PHP5.4.4/php5apache2_4.dll"
LoadModule authnz_sspi_module modules/mod_authnz_sspi.so
AddHandler application/x-httpd-php .php
PHPIniDir "D:/PHP5.4.4"
<IfModule unixd_module>
User daemon
Group daemon
</IfModule>
ServerAdmin admin@example.com
ServerName EEServer:80
<Directory />
AllowOverride none
Require all denied
</Directory>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^emaapp25 [NC]
RewriteRule ^/(.*) http://eeserver/$1 [L,R]
DocumentRoot "d:/Apache24/htdocs"
<Directory "d:/Apache24/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
ErrorDocument 401 "<h1>Unauthorized</h1>Bad username & password"
AuthName "Authorization Required"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic Off
require valid-sspi-user
</Directory>
<IfModule dir_module>
DirectoryIndex index.php index.html index.htm
</IfModule>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "logs/error.log"
LogLevel notice
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "logs/access.log" combined
</IfModule>
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
EnableMMAP off
<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
|
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3093 Location: Hilversum, NL, EU
|
Posted: Wed 10 Jul '13 23:03 Post subject: |
|
|
Try:
AcceptFilter http none
AcceptFilter https none
Steffen |
|
Back to top |
|
m4trix
Joined: 25 Jun 2012 Posts: 3
|
Posted: Thu 11 Jul '13 0:06 Post subject: |
|
|
Steffen,
from the couple of pages I've tried, that change appears to have solved the issue. However, I won't know for certain until I do more testing
Any idea why that might make a difference on this particular server and not the other one I'm running? Or why it doesn't seem to affect it when I connect via VPN as opposed to directly from on the network? |
|
Back to top |
|
|
|
|
|
|