Page 1 of 1

Slow serving files and slow upload speed

PostPosted: 13. August 2017 21:09
by pomf123
Apache on the xampp server is taking forever to serve files and then only uses about 20% of upload bandwidth unless you use a download manager that does segmented downloads, any clue what is causing this?

Re: Slow serving files and slow upload speed

PostPosted: 13. August 2017 21:34
by Nobbie

Re: Slow serving files and slow upload speed

PostPosted: 13. August 2017 22:16
by Altrea

Re: Slow serving files and slow upload speed

PostPosted: 13. August 2017 22:32
by pomf123
Nobbie wrote:https://httpd.apache.org/docs/2.4/en/mod/core.html#enablesendfile

Sendfile is already off if that's what you meant
Altrea wrote:https://community.apachefriends.org/f/viewtopic.php?f=16&t=47453#p181915

MPM is already enabled and the registry changes were detrimental to upload speed.

Re: Slow serving files and slow upload speed

PostPosted: 14. August 2017 09:57
by Nobbie
pomf123 wrote:Sendfile is already off if that's what you meant


Only a blindfolded clue. As you did not tell us even a single bit about your server, its definately impossible to go deeper any further.

Re: Slow serving files and slow upload speed

PostPosted: 14. August 2017 17:00
by pomf123
Well what do you want or need to know? It's running windows server 2012, has a 1000mbps up/down bandwidth, I've tried fiddling with the tcp global settings through netsh which helped with segmented downloads but not normal downloads. mmap is enabled, sendfile is off, mpm is enabled and has not helped.

Examples, a 40MB archive takes about 12 seconds for the download prompt to come up and a 100MB or 900MB file takes about 15 seconds.

Re: Slow serving files and slow upload speed

PostPosted: 14. August 2017 20:59
by matrixebiz
I'm experiencing slow access issues as well, are you saying that Xampp has control over if my server serves files to my clients fast or slow? that is ridiculous hope you find your answer on disabling this as I don't want any limits on how fast the server can serve files to clients. I'm running Windows server 2016, should I enable or disable this sendfile thing? Thanks

Re: Slow serving files and slow upload speed

PostPosted: 14. August 2017 20:59
by Nobbie
pomf123 wrote:Well what do you want or need to know?


Everything. Hardware, software - etc.

BUT Anyway: Xampp is NOT designed for Online / Productive usage, it is meant for local development only. You should go for a different distribution than Xampp and honestly: I definately wouldnt go with Windows/Apache, Apache is designed and developed in/for Linux environment and more or less ALL known performance problems are due to Windows and do not exist under Linux. I NEVER would setup a Windows Apache online server. Windows comes with IIS and Apache is a third party module which is not integrated very well.

matrixebiz wrote:as I don't want any limits on how fast the server can serve files to clients


So first of all: dont use Windows/Apache. That does not match very well.

Re: Slow serving files and slow upload speed

PostPosted: 14. August 2017 21:04
by matrixebiz
My only issue going to a LAMP setup is that I have some programs that are only Windows compatible :(

Until I convert to LAMP, I'm running Windows server 2016, should I enable or disable this sendfile thing?

Is there another WebServer I can use then on Windows (not IIS) . I tried minWeb which is great but has a couple little issues.

Re: Slow serving files and slow upload speed

PostPosted: 14. August 2017 21:11
by Nobbie
matrixebiz wrote:My only issue going to a LAMP setup is that I have some programs that are only Windows compatible :(


Tell us why and what it makes "Windows compatible" only. What is missing in Linux and why?


matrixebiz wrote:Until I convert to LAMP, I'm running Windows server 2016, should I enable or disable this sendfile thing?

Is there another WebServer I can use then on Windows (not IIS) . I tried minWeb which is great but has a couple little issues.


Sorry, but these questions are far out of the scope of this forum, remember, this is a Xampp forum and not a "no Xampp" forum.

Re: Slow serving files and slow upload speed

PostPosted: 14. August 2017 22:44
by matrixebiz
When I say Windows only it's because the program was programmed for Windows and the developer did not write a Linux version of it but I guess I can try and see if it will run ok in Wine.

Re: Slow serving files and slow upload speed

PostPosted: 15. August 2017 10:13
by Nobbie
matrixebiz wrote:When I say Windows only it's because the program was programmed for Windows and the developer did not write a Linux version of it but I guess I can try and see if it will run ok in Wine.


You simpy should setup different PCs for your Windows and for the Apache Server. Thats by far the best solution, you can use any super cheap used PC for a linux server, i got one at ebay for less than 50€/50$.

Re: Slow serving files and slow upload speed

PostPosted: 16. August 2017 14:34
by matrixebiz
okay, so my windows program will run under Wine so is everyone in agreeance here that by going with a LAMP server, my user Upload/Download server access speeds will speedup ten fold? Way better than a Windows Apache setup?

Re: Slow serving files and slow upload speed

PostPosted: 21. August 2017 08:49
by pomf123
Nobbie wrote:
pomf123 wrote:Well what do you want or need to know?


Everything. Hardware, software - etc.

BUT Anyway: Xampp is NOT designed for Online / Productive usage, it is meant for local development only. You should go for a different distribution than Xampp and honestly: I definately wouldnt go with Windows/Apache, Apache is designed and developed in/for Linux environment and more or less ALL known performance problems are due to Windows and do not exist under Linux. I NEVER would setup a Windows Apache online server. Windows comes with IIS and Apache is a third party module which is not integrated very well.

matrixebiz wrote:as I don't want any limits on how fast the server can serve files to clients


So first of all: dont use Windows/Apache. That does not match very well.

Well due to software issues I kinda have to use windows but okay.
cpu: core i3-2130 2c4t
ram: 8gb ddr3
harddrives are 3 1tb 7200rpm sata drives each in a raid 1
OS is windows server 2012
xampp revision is v3.2.2
server bandwidth is unmetered 1000mbps upload/download
Server location is in canada, my location is in oklahoma, usa