logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Very slow file transfert witth apache Page 1, 2  Next
Author
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Sat 26 Apr '14 22:43    Post subject: Very slow file transfert witth apache Reply with quote

Hello,

I use apache 2.4.9 vc11 x64 on Windows 7 pro 64bits.
Using windows transfert, i get 70-80Mb/s but, using apache, i only get 20ko/s max.

I have set :
AcceptFilter http none
AcceptFilter https none
EnableMMAP off
EnableSendfile off

On my httpd.conf but nothing change.

Can you help me to find how to correct this ?
Thanks
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Sun 27 Apr '14 10:44    Post subject: Reply with quote

Hello,

may i ask for some more information about your system?

1. How do you test? (Locally or via internet ...)
2. Do you have a virus scan running and scanning the network transfer?
3. What kind of apache configuration do you use? Especially additional packages?
4. After changing the conf and adding the directives "AcceptFilter http none" ... did you restart?

Greets
JR
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Sun 27 Apr '14 12:29    Post subject: Reply with quote

Of course you can ask Wink

1- Locally and trough internet. The problem happen when i try to download a file attached with a mail on roundcube. But when i use thunderbird (imap) no problem happen and when i transfer files with ftp or samba shares, there is no problem.
2-No, only windows 7 firewall, but i have open the port 80/tcp
3-
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 cloudflare_module modules/mod_cloudflare.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule fcgid_module modules/mod_fcgid.so
LoadModule filter_module modules/mod_filter.so
LoadModule headers_module modules/mod_headers.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 mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so

4-Of course

Thanks
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Mon 28 Apr '14 8:44    Post subject: Reply with quote

Ok, thanks for explaining.

So your problem depends on roundcube to load mails via imap which have files attached. right?
And loading the same mails with thunderbird via imap do not cause such problems. right?

So there must be something very special with the roundcube mailer in combination with your mailserver or in combination with apache.

What about logs?
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Mon 28 Apr '14 11:06    Post subject: Reply with quote

Apache error log, php error log and rouncube error log are empty.

In fact, as soon as the download come from apache, there is two problems :
1-It's slooooowwww
2-The size can be find by browsers
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Mon 28 Apr '14 14:09    Post subject: Reply with quote

What do you mean with "the size can be find by browsers"?
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Mon 28 Apr '14 14:18    Post subject: Reply with quote

Since i am not a roundcube-expert i hope you find good tips here:

http://www.stefanolocati.it/blog/?p=236
https://maze.io/2011/03/25/speed-up-roundcube-webmail/
http://trac.roundcube.net/wiki/Howto_Config/Performance
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Mon 28 Apr '14 14:52    Post subject: Reply with quote

It's not only trough rouncube...

The size can't be find...
So we i launch a download, web browser don't show me the download size, nor the estimated download time...
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Tue 29 Apr '14 10:37    Post subject: Reply with quote

Did you check the links?
Is your database an sql-server on the same machine?
How is the connect organized?
What protocols are used between the components?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 29 Apr '14 12:34    Post subject: Reply with quote

Since it is in rounde cude. It makes sence to test a file download directly from the file system to see if it is the apache settings or to search somewhere else.
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Tue 29 Apr '14 13:10    Post subject: Reply with quote

-An other link, wich is not in roundcube give me the same slow download, even on LAN
-I have chech the links and make some change on roundcube.
-Mail server and database are on the same computer. And roundcube is set to connect on 127.0.0.1 for database AND imap server.

So, as i have said, the problem is not only on roundcube. Roundcube pages are show correctly, messages are display quickly.

But, as soon as i try to download something on my webserver (LAN or WAN, roundcube or not) i only get a really slow download.

And if i try to make and ftp transfert, i get more than 10MB/s on lan and 120KB/s on WAN.

The slow download is only trough apache.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 29 Apr '14 15:15    Post subject: Reply with quote

Did you try EnableSendfile on yet?
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Tue 29 Apr '14 18:11    Post subject: Reply with quote

No change with enablesendfile on or off
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Tue 29 Apr '14 18:45    Post subject: Reply with quote

Ok, than try to configure a directory in apache, put a file in it and download via simple http.

If the download speed is still slow, try to disable modules (for example cloudflare, etc.), you don't need for the core apache functionalities and then test again.

And check for your cache configuration!
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Tue 29 Apr '14 20:34    Post subject: Reply with quote

Here is my cache configuration :

Code:
<IfModule mod_deflate.c>
   DeflateCompressionLevel 9

   AddOutputFilterByType DEFLATE text/plain
   AddOutputFilterByType DEFLATE text/xml
   AddOutputFilterByType DEFLATE text/html
   AddOutputFilterByType DEFLATE text/css
   AddOutputFilterByType DEFLATE image/svg+xml
   AddOutputFilterByType DEFLATE application/xhtml+xml
   AddOutputFilterByType DEFLATE application/xml
   AddOutputFilterByType DEFLATE application/rss+xml
   AddOutputFilterByType DEFLATE application/atom_xml
   AddOutputFilterByType DEFLATE application/x-javascript
   AddOutputFilterByType DEFLATE application/x-httpd-php
   AddOutputFilterByType DEFLATE application/x-httpd-fastphp
   
   SetOutputFilter DEFLATE

   # Ne pas compresser ces formats
   SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
   SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
   SetEnvIfNoCase Request_URI \.(?:pdf|avi|mov|mp3|mp4|rm|doc|xls)$ no-gzip dont-vary

   # Netscape 4.x has some problems...
   BrowserMatch ^Mozilla/4 gzip-only-text/html
   # Netscape 4.06-4.08 have some more problems
   BrowserMatch ^Mozilla/4\.0[678] no-gzip
   # MSIE masquerades as Netscape, but it is fine
   BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
   # Pour les proxies
   Header append Vary User-Agent env=!dont-vary
</IfModule>
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Wed 30 Apr '14 9:02    Post subject: Reply with quote

I don't want to sound picky or smart-alecky but the mod_deflate modul is a compression thing. Maybe you don't use a cache directive, if not, no problem, but if and when, you should check your configuration for that as well.

Try to test with less moduls enabled - just the core components.
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Wed 30 Apr '14 10:28    Post subject: Reply with quote

Ho, sorry, i read too fast and i was reading a post about size detection problem witch can come from deflate configuration.

Same problem with only core module (without cloudflare ,fcgid , expire and deflate - i don't know wich other module i can remove)
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Wed 30 Apr '14 12:26    Post subject: Reply with quote

That's crazy.
Did you test with a simple file in a directory mapped to the apache?

And maybe you can copy that configuration to another computer and test again, but i don't have any further idea what to check.

Sorry bagu, maybe someone else can help you.
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Wed 30 Apr '14 12:28    Post subject: Reply with quote

I've made a test with nginx, there is no problem : ARGH !


I will try to remove and reinstall apache from scratch.
There must be something i missed.
Back to top
bagu



Joined: 06 Jan 2011
Posts: 193
Location: France

PostPosted: Thu 01 May '14 15:03    Post subject: Reply with quote

A complete re-install solve the problem.

I don't know what happen.
Thanks for your help.
Back to top


Reply to topic   Topic: Very slow file transfert witth apache View previous topic :: View next topic
Post new topic   Forum Index -> Apache Page 1, 2  Next