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: Apache crashes when serving large files
Author
sawo



Joined: 15 May 2008
Posts: 36

PostPosted: Sun 08 Jun '08 20:43    Post subject: Apache crashes when serving large files Reply with quote

When i download file over 4gb (6,3GB to be precise) apache crashes constantly with the following error in the log:
Quote:
Parent: child process exited with status 3221225477 -- Restarting.

I have the following commands in httpd.conf:
Code:
EnableSendfile Off
EnableMMAP Off
Win32DisableAcceptEx

OS: Server 2008
Apache 2.2.8 (default install, no changes)
CPU: C2 Quad 2,4GHz
RAM: 2GB
#Notice i had the same issues with XP PRO SP2/3 but i wasnt sure what caused them.Few days ago we moved to Server 2008 and i found the issue that caused the server crashes.
Does anyone have any idea on how to fix this issue?

EDIT: I noticed that i have this problem only with apache 2.2.8! the earlier versions work just fine!
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Mon 09 Jun '08 6:32    Post subject: Reply with quote

I cannot reproduce this problem using Apache 2.2.8 (from Apache Lounge) on Win2k.
I can download a 11,572,609,024 byte (10.7gb) file OK.

I tried it with:
Code:
EnableSendfile Off
EnableMMAP Off
Win32DisableAcceptEx
just to match your config. No problems.

Are you using the ASF build from httpd.apache.org, or the Apache Lounge build of 2.2.8?

Does "(default install, no changes)" mean that you do not have any 3rd-party modules loaded? Just httpd.conf as it gets installed by default?

Your large file is on a local disk drive on the Apache machine, not on a network drive - right?

-tom-
Back to top
sawo



Joined: 15 May 2008
Posts: 36

PostPosted: Mon 09 Jun '08 16:09    Post subject: Reply with quote

Yes - no modules and no changes to the configuration (except for the 3 commands above, but without them its the same) and the file is on the local system.

I downloaded the apache from httpd.apache.org
i have this problem with my AppServ version of apache so i downloaded the default installation from httpd.apache.org, installed it and it had the same problem.When i installed 2.2.6 it was all ok.

I installed clean Win Server 2008 on Virtual PC 2007 and i was able to reproduce the problem.
I will make more tests with XP-SP3 and Server 2003 to see if they have this issue.

EDIT:
Here is how i was able to reproduce the problem:
Installed XP-SP3 on Virtual PC 2007
Installed apache 2.2.8 from httpd.apache.org
Copied 6,3GB ISO to the htdocs folder
Started downloading it
If i use only one connection to download the file everything seems ok, but if i use two or more connections after just few seconds apache starts crashing with 3-4 seconds interval.
I downloaded the apachelounge version, but it has exactly the same problem.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Wed 11 Jun '08 2:29    Post subject: Reply with quote

I found the time to give it a try using the Apache Lounge 2.2.8 build on XP-SP2 and also on XP-SP3 running in VMware.
I could not reproduce the problem - even with 3 or more concurrent downloads.

Well, that narrows it down a little. The things that are different appear to be:
    * I used a 3.4Ghz P4 with VMware set to use 1gb memory & one cpu. This seems an unlikely cause
    * I used VMware vs. Virtual PC - a more likely cause.
    * different network adapter? - seems unlikely.
You might want to configure Dr Watson to capture more info when the error happens.
There are some debugging notes in the Apache WIKI - and it may help to start Apache from the command line with:
Quote:
httpd.exe -e debug -w -X

The status code - 3221225477 - means "Access is denied", but that doesn't necessarily mean file access. It could refer to many other things in Windows.

FYI - to translate status codes like this:
    * Use the Windows Calculator in "Scientific" mode.
    * Enter the number (3221225477), then click the [Hex] checkbox (C0000005)
    * Re-enter the low-order part of the number (5) and, if it is greater than 9, convert back to [Dec]imal (this step is not necessary for "5")
    * At the DOS prompt enter:
    Code:
    NET HELPMSG 5
    which will display
    Quote:
    Access is denied.
-tom-
Back to top
sawo



Joined: 15 May 2008
Posts: 36

PostPosted: Wed 11 Jun '08 17:54    Post subject: Reply with quote

I will do more testing these days, but i doubt the cause in the virtual pc, because i have this problem on the physical computer too.Also it cant be the network adapter, because i set the virtual pc not to use it.Also VPC uses only one cpu so that cant be the cause too.
Back to top
sawo



Joined: 15 May 2008
Posts: 36

PostPosted: Fri 20 Jun '08 17:11    Post subject: Reply with quote

I was unable to determinate the cause of this, but im 99% sure that the problem was in apache itself, because i dont experience this issue with the new 2.2.9 version, also i was using 2.2.6 without any problem too.
Back to top


Reply to topic   Topic: Apache crashes when serving large files View previous topic :: View next topic
Post new topic   Forum Index -> Apache