Author |
|
Kagome
Joined: 20 Jul 2012 Posts: 8
|
Posted: Fri 20 Jul '12 22:27 Post subject: Apache 2.4.2 Downloads are broken on huge files |
|
|
Hell0,
i use normally the XAMPP for the Apache and all other stuff, but due to a problem I tried also the Apache from this website.
My problem:
If I download a file from my Webserver (even local) I don't get the file complettly downloaded.
Files I tested:
1 file with 376MB
1 file with 1,2GB
with the xampp apache the download stops between 210 and 280 MB.
with the apachelounge apache the dowload stops by 60MB.
Tested on IE9 and FireFox 13/14. The Browser tells me that the download is complete ....
Also other Persons tested it and got the same result.
So the problem seems to be the webserver. if i use the (old) apache 2.2.21 - the download is complete.
System:
Windows 2003 Standard with all updates
Microsoft Firewall
Can anyone else confirm this problem on his/her webserver or know a solution?
Best regards
Kagome
Last edited by Kagome on Sat 21 Jul '12 14:13; edited 1 time in total |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 21 Jul '12 10:47 Post subject: |
|
|
Anything in the Apache logs ?
What file extension(s) ?
Directly download or via a script (cgi, php) ?
Steffen |
|
Back to top |
|
Kagome
Joined: 20 Jul 2012 Posts: 8
|
Posted: Sat 21 Jul '12 12:12 Post subject: |
|
|
There is nothing in the Apachelogs
The access.log tells me that the transfere is ok (200)
File extension(s) are .rar and .exe
The download was directly - no script or anything else.
I tested it with a "plain" installation.
I downloaded simple the files from here (with SSL), stopped the xampp Apache, checked the Paths in the apachelounge apache and simple started the apachelounge apache.
I also tested the Apache 2.2.22 from here and with that version it works correctly. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 21 Jul '12 13:49 Post subject: |
|
|
So nothing in the error.log.
And without SSL ?
Be aware with the SSL issue in 2.4. |
|
Back to top |
|
Kagome
Joined: 20 Jul 2012 Posts: 8
|
Posted: Sat 21 Jul '12 14:06 Post subject: |
|
|
maybe the SSL was not correct explained.
I tried from this page here:
httpd-2.4.2-win32.zip
and now:
httpd-2.4.2-win32-ssl_0.9.8.zip
I started the Apache, tried to download (normal http) and stopped the apache.
access.log
Code: |
88.134.*.* - - [21/Jul/2012:13:56:28 +0200] "GET /web1/TO_AoT.rar HTTP/1.1" 200 385750430 |
The bytes are correct
error.log
Code: |
[Sat Jul 21 13:56:07.832643 2012] [mpm_winnt:notice] [pid 2216:tid 1848] AH00455: Apache/2.4.2 (Win32) configured -- resuming normal operations
[Sat Jul 21 13:56:07.832643 2012] [mpm_winnt:notice] [pid 2216:tid 1848] AH00456: Server built: May 13 2012 13:54:12
[Sat Jul 21 13:56:07.832643 2012] [core:notice] [pid 2216:tid 1848] AH00094: Command line: 'apache24\\bin\\httpd.exe -d E:/xampp/Apache24'
[Sat Jul 21 13:56:07.832643 2012] [mpm_winnt:notice] [pid 2216:tid 1848] AH00418: Parent: Created child process 4724
Apache server shutdown initiated...
pm_winnt:notice] [pid 4724:tid 1840] AH00354: Child: Starting 64 worker threads.
[Sat Jul 21 13:56:59.893954 2012] [mpm_winnt:notice] [pid 2216:tid 1848] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sat Jul 21 13:57:01.893915 2012] [mpm_winnt:notice] [pid 4724:tid 1840] AH00364: Child: All worker threads have exited.
[Sat Jul 21 13:57:01.909540 2012] [mpm_winnt:notice] [pid 2216:tid 1848] AH00430: Parent: Child process exited successfully.
|
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 21 Jul '12 14:28 Post subject: |
|
|
Strange, looks the client (browser) side, Apache says all is OK. Not seen other reports.
What do you get downloaded in you download folder, nothing or partly ?
Using Compression/Deflate ? |
|
Back to top |
|
Kagome
Joined: 20 Jul 2012 Posts: 8
|
Posted: Sat 21 Jul '12 14:48 Post subject: |
|
|
well, i tested on my location with different pcs and different browsers (Firefox 13/14 and IE9).
I asked also some friends to test the download.
A friend with a small internetconnection get only a few MB.
The Clients think that the download is complete. I have in my Download Folder a normal File - only the size is incorrect and the RAR-Archive tell me that it is corrupt.
Compression/Deflate - no idea - what is in the default settings?
I only changed in the httpd.conf the paths - nothing more.
I tested it now on my local PC (Win7 64bit) - there is everything ok.
Seems to be a problem with Windows Server 2003 o_O
I disabled also the Windows Firewall - no differnece.
I installed IPv6 Protocoll - no difference.
I really wonder why the Apache 2.2.22 is working correct. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 21 Jul '12 15:20 Post subject: |
|
|
There are networking changes in 2.4 over 2.2, do not ask me the details
Some limit setting somewhere in Win2003 ?
See Child: Starting 64 worker threads
You can try to up the setting in conf/extra/httpd-mpm.conf, who knows:
ThreadsPerChild 250
MaxConnectionsPerChild 0
Be sure you uncommented in httpd.conf:
# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf |
|
Back to top |
|
Kagome
Joined: 20 Jul 2012 Posts: 8
|
Posted: Sat 21 Jul '12 15:47 Post subject: |
|
|
Networking changes are a good hint.
I added in the past due to slow transfere the following in the registry:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters]
"DefaultReceiveWindow"=dword:4e200000
"DefaultSendWindow"=dword:4e200000
If I remove that and reboot the server and try again the downloaded files are complete - but the speed is slow again (900KB/s - 1,2MB/s) instead of the normal speed (11MB/s - 12,5MB/s)
i will now play a little bit with the values and after that play with the Server-pool management.
edit:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters]
"DefaultReceiveWindow"=dword:00c35000
"DefaultSendWindow"=dword:00c35000
works correctly for me.
nearly Fullspeed and complete downloads.
I will make a small donation for the help.
I will now try to fix the following error if i stress-test the server >_<
Code: | [Sat Jul 21 16:29:14.139183 2012] [mpm_winnt:warn] [pid 724:tid 292] (OS 64)Der angegebene Netzwerkname ist nicht mehr verfügbar. : AH00341: winnt_accept: Asynchronous AcceptEx failed. |
seems to be the same problem as here:
http://www.apachefriends.org/f/viewtopic.php?p=90706
BUT if I add / uncomment Win32DisableAcceptEx - the Server doesen't start again and cry about a syntax error.[/code] |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
|
Back to top |
|
Kagome
Joined: 20 Jul 2012 Posts: 8
|
Posted: Sat 21 Jul '12 18:11 Post subject: |
|
|
thank you for the tip with the AcceptFilter http none.
Seems to work correctly now - finnaly. |
|
Back to top |
|