Large files download problem from Apache2/Tomcat5 webserver.

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.
centronikerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

(ginge aber auch in Deutsch ;-)
0
centronikerAuthor Commented:
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
nanocosmCommented:

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

BlackAdderDKCommented:
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
centronikerAuthor Commented:
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
nanocosmCommented:
It was a quote. I removed the third directive because it applies on Windows Hosts only.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.