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: Problem With Win32DisableAcceptEx
Author
Shagoon



Joined: 24 May 2009
Posts: 2

PostPosted: Sun 24 May '09 2:37    Post subject: Problem With Win32DisableAcceptEx Reply with quote

Hello,

I run a small file hosting system on a Windows Standard 2008 SP2 x32 Dedicated Server.

Apache 2.0.63
PHP 5.2.9-2 (no extensions enabled)

Whenever people start to download allot of files thats when Apache starts going crazy... Here's what I mean:

Case I:
Running PHP as module (if I run it as php-cgi.exe process it will have same result as Case II)
#EnableMMAP off
#EnableSendfile off
#Win32DisableAcceptEx

Apache crashes with the fallowing error from the logs:
Cannot initialize zend_mm storage [win32]
[Sat May 23 11:46:45 2009] [notice] Parent: child process exited with status 255 -- Restarting.
[Sat May 23 11:46:45 2009] [notice] Apache/2.0.63 (Win32) PHP/5.2.9-2 configured -- resuming normal operations

I've read somewhere on the net that this error is caused when PHP has no more room to work with, and that a solution would be running PHP as php-cgi.exe process instead of running it as apache module.


Case II:
Running PHP as php-cgi.exe process (because if I run it as module it will be same error as above)

#EnableMMAP off
#EnableSendfile off
Win32DisableAcceptEx

OR

EnableMMAP off
EnableSendfile off
Win32DisableAcceptEx


Apache.exe process starts to eat up RAM, for as much as it can get from free RAM... once it gets very high (over 1gig RAM) it will crash with the fallowing error:
[Sat May 23 23:10:28 2009] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Sat May 23 23:10:48 2009] [notice] Apache/2.0.63 (Win32) configured -- resuming normal operations


-------------------------------------

In the cases that I don't have Win32DisableAcceptEx in config it will also spam my logs with this:
[Sun May 24 02:01:53 2009] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.


I have googled for days and still can't figure out why Apache can't handle more downloads at the same time.

I also tried this with Apache 2.2.11 and it had same results.

So my questions are:
- is there something I'm missing? Anything that should be done in PHP or Apache configs for File Hosting?
- is there any module that I might need for this?
- anyone have any ideas what is causing this?
- could it be the Windows 2008 SP2? ( I had x64 before and it was doing the same, changed to x32 now and still got these issues )

Any help is appreciated. Thank you.
Back to top
acid.-.burn



Joined: 15 Jan 2007
Posts: 17

PostPosted: Sun 24 May '09 8:37    Post subject: Reply with quote

The Win32DisableAcceptEx is only for is you are having probs with virtual hosting causing the error then you need to enable the Win32DisableAcceptEx in the config file that is what i do if i am getting probs with virtual hosting & apache will not start but i aint had this prob in
a while
Back to top
Shagoon



Joined: 24 May 2009
Posts: 2

PostPosted: Sun 24 May '09 11:33    Post subject: Reply with quote

acid.-.burn wrote:
The Win32DisableAcceptEx is only for is you are having probs with virtual hosting causing the error then you need to enable the Win32DisableAcceptEx in the config file that is what i do if i am getting probs with virtual hosting & apache will not start but i aint had this prob in
a while


Sorry but I don't understand... my problem could be caused by the virtual host?


Also, I've reduced the Timeout and KeepAliveTimeout to 15 sec, still running php-cgi.exe as process and I get the fallowing error:

[Sun May 24 10:39:04 2009] [warn] (12)Not enough space: mpm_get_completion_context: Failed to create the transaction pool.
[Sun May 24 10:39:08 2009] [notice] Parent: child process exited with status 3221225477 -- Restarting.
Back to top
acid.-.burn



Joined: 15 Jan 2007
Posts: 17

PostPosted: Sun 24 May '09 22:25    Post subject: Reply with quote

well um i looked up on that error you could have a hard wear prob or
you running some kind of build of apache that needs a pach it is 1 or the 2
i do not know i might be wrong maybe some one els knows
Back to top


Reply to topic   Topic: Problem With Win32DisableAcceptEx View previous topic :: View next topic
Post new topic   Forum Index -> Apache