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: Apache Performance Customization on Windows is not Working |
|
Author |
|
Assaadh
Joined: 11 May 2016 Posts: 1 Location: Lebanon
|
Posted: Wed 11 May '16 9:55 Post subject: Apache Performance Customization on Windows is not Working |
|
|
Hello,
I am currently deploying a web application on 2 servers with the following configuration:
Server A (Web Server) – Windows Server Standard 2012 – 11 GB RAM – 2 x 4 Cores
Installed Apache httpd-2.4.12-win32-VC11 as a service using httpd.exe -k install.
php-5.6.10-Win32-VC11-x86
vcredist_x86
msodbcsql
The reason I am using those exact versions is for compatibility reasons with the web application. Additionally, I am not using the 64 bit versions because it is still experimental and I need stable versions because I am installing them on a production server.
Server B (Database Server) – Windows Server Standard 2012 – 17 GB RAM – 1 x 2 Cores
SQL Standard Edition 2012
All my configuration seems working well so far – Hopefully. (kindly find attached the phpinfo page). Kindly be advised that whenever I try to open http://localhost or http://127.0.0.1 I cannot get the “It Works!” but I am able to login normally and use the application.
The issue I am facing is regarding the performance. After doing a load and performance test, I am receiving some results indicating a limitation in the Apache performance. I am assuming that I need to make additional configurations under the hood in order to maximize the performance of Apache.
Note: The application is going to be used by 2000 users. Please note that my knowledge in Apache is very limited.
Following the search I made, I have been able to do the below without any success of making them work:
1- Enable MPM on WinNT
2- Keep Alive – Is by default On. I tried to turn it off from the httpd-default.conf file (I switched the value from on to off) but it seems that it is still on. (check phpinfo page).
3- KeepAlive timeout decreased to 5. Yet it is still the same.
4- MaxKeppaliveRequests 100
5- EnableSendfile Off
6- EnableMMAP off
7- Changed ThreadsPerChild from 150 to 1000
*****************************************************
Apache Version Apache/2.4.12 (Win32) PHP/5.6.10
Apache API Version 20120211
Server Administrator admin@example.com
Hostname:Port localhost:80
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 60 - Keep-Alive: 5
Virtual Server No
Server Root C:/Apache24
Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_access_compat mod_actions mod_alias mod_allowmethods mod_asis mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_headers mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_php5
*****************************************************
• How do I Increase the Max requests?
• How do I apply the configuration (nothing is happening when I change the values)?
• Is there any additional configuration I can apply?
I have attached some log files which might be useful.
N.B: I am using Notepad++ as administrator.
Attachments are available on this link
https://www.dropbox.com/sh/2b6kjyml14oztlj/AAC70EvyuOyfTBrUaeYWwse0a?dl=0
Hope i can get the help i need.
Thank you, |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 12 May '16 19:40 Post subject: |
|
|
Your problem with KeepAlive is because you did not "Include" httpd-default.conf, it's commented out in httpd.conf
Code: |
# Various default settings
#Include conf/extra/httpd-default.conf |
MaxRequestsPerChild was removed in Apache 2.4. |
|
Back to top |
|
|
|
|
|
|