?
Solved

Large files download problem from Apache2/Tomcat5 webserver.

Posted on 2010-04-09
6
Medium Priority
?
528 Views
Last Modified: 2013-12-02
Hello,

I have the mysterious problem that (larger) files (>3mb) which i provide in the cms on my linux (lamp) webserver (running apach2/tomcat5) can't be downloaded successfully.
The files are downloaded only partially using ie or firefox and "save target as" option. After some tries the download then is successful.
I found nothing in the server logs. I did an analysis with tcpdump an wireshark but got no interesting results.
The problem is replicable on different clients with different internet connections so it must be the server.
Any suggestions?

Thanks in advance,
Michael S.

Please excuse me if my english is not so good at all but i'm from germany.
0
Comment
Question by:centroniker
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:nanocosm
ID: 30186727
Is the download really handled by apache httpserver or by tomcat/php?
Which CMS is used?

(ginge aber auch in Deutsch ;-)
0
 

Author Comment

by:centroniker
ID: 30187527
The downloads are handled by apache2 only. The cms is a proprietary development of my customer but based on openCMS. The files provided for download are stored in a separate folder and delivered trough the apache2.

(Deutsch wäre schön aber ich möchte ja unsere nicht-deutschsprachigen Experten nicht ausschließen ;)
0
 
LVL 3

Accepted Solution

by:
nanocosm earned 1500 total points
ID: 30191066

Quote:
If you encounter problems running Apache 2 under, such as corrupted or incomplete file downloads, unexplained error messages, or a conflict with a software firewall, please place the following three directives in your httpd.conf configuration file to see if they eliminate the problems:

    EnableSendfile Off  http://httpd.apache.org/docs-2.2/mod/core.html#enablesendfile
    EnableMMAP Off  http://httpd.apache.org/docs-2.2/mod/core.html#enablemmap

The general problem is that many people install various add-ons to windows (such as software firewalls, virus checkers, etc) that break some of the advanced functionality that Apache uses to speed the sending of files. The above directives turn off the advanced functionality and make Apache fall back to more basic (but slower) techniques. This resolves most, but not all of the potential problems. If you continue to experience problems, be certain that there is no spyware installed on the box, which exhibits exactly the same sorts of flaws (often more obviously).

Another possible could be some kind of load balancing and/or traffic shaping configurations.

0
2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

 
LVL 3

Expert Comment

by:BlackAdderDK
ID: 30191707
Hi

As nonocosm is suggesting, this could also be a problem with the network configuration - are you using Bond-networking? if so, which bond-configuration are you using?

regards
'Adder
0
 

Author Comment

by:centroniker
ID: 30192636
the server is a standalone lamp server only connected over a cisco switch to the network/internet. so i don't think that there is a network problem. I recently added the two (where is the third ? ;) apache parameters (which nanocosm posted) to my global apache configuration an I couldn't reproduce the issue since i added them. maybe this is the solution but first my customer and me will test this extensive.
0
 
LVL 3

Expert Comment

by:nanocosm
ID: 30487246
It was a quote. I removed the third directive because it applies on Windows Hosts only.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Suggested Courses
Course of the Month3 days, 23 hours left to enroll

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question