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 enabling large address aware , D.D.O.S etc
Author
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Tue 06 Apr '10 14:16    Post subject: Apache enabling large address aware , D.D.O.S etc Reply with quote

Has Any One some experience witch apache overloand. Last day i had some problems witch pokemons every seconds whose about 300 connection to my server Frames DDoS Attacks. So i simple add to my config Header append X-FRAME-OPTIONS "DENY" that works until today.
Today it had Slowloris HTTP DoS so i use mod_limitipconn.c and limit connection to IP.

Now i see ever ting work fine but my server had resources for handle this but apache had some limitation witch memory usage


I using Apache on x64 machine and run on wow64 ( 32bit emulation )

I know that in x86 is memory limit for application to 2Gb

http://www.eggheadcafe.com/software/aspnet/30101315/wow64-and-actual-phisical.aspx

On this topic you can see that to enabled LARGEMEMORYADDRESSAWAR you need to compile Apache witch this switch

In official compilation i not see that is selected

So i found how to enabled in other way

http://www.jaloonz.com/2008/04/enabling-large-address-aware-for-games.html

Now apache use ~+-:500Mb of RAM it also had
sub process like Fcgid every process ~10Mb
= 900MB

Every 24/h I use in proceslasso option like -> trim virtual memory for database and apache, that works not so bad memory usage for 6GB drop to 2 -> 4Gb witch out restarting.


I try to found solution for this issue try use apache x64 but no all modules are compiled, so i thinka about use nginx (Beta) for static file and loand balancing on one server.

Has some one similar problems ?
Back to top
James Blond
Moderator


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

PostPosted: Tue 06 Apr '10 17:16    Post subject: Reply with quote

I don't see your problem since apache takes only 500 MB. Every process that is emulated can use 2 GB of from. Since you separated other stuff with fcgid there shouldn't be a problem. If there is enough physical RAM.

Which x64 modules do you need? Maybe I'm able to build them.
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Tue 06 Apr '10 21:22    Post subject: Reply with quote

bw_module modules/mod_bw.so
limitipconn_module modules/mod_limitipconn.dll
fcgid_module modules/mod_fcgid.so

Also PHP need be in 64bit ?
In IIS x64 can run PHP as 32bit but on apache i think need x64 PHP
Back to top
James Blond
Moderator


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

PostPosted: Wed 07 Apr '10 8:14    Post subject: Reply with quote

if you run php over fcgid it doesn't matter if you use 32 or 64 bit version. Only if you need to run php as module you need the 64 bit version. Honestly I haven't tried out to run the 32 bit module in the 64 bit apache.
Back to top
James Blond
Moderator


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

PostPosted: Wed 07 Apr '10 23:48    Post subject: Reply with quote

Kanashii wrote:
bw_module modules/mod_bw.so
limitipconn_module modules/mod_limitipconn.dll
fcgid_module modules/mod_fcgid.so


I was able to compile mod_fcgid in 64 bit. I will test it and than post the link, if it works Wink
Back to top
James Blond
Moderator


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

PostPosted: Thu 08 Apr '10 21:06    Post subject: Reply with quote

For mod_bw see http://www.apachelounge.com/viewtopic.php?p=15460#15460
Back to top
James Blond
Moderator


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

PostPosted: Sat 10 Apr '10 11:09    Post subject: Reply with quote

James Blond wrote:
Kanashii wrote:
bw_module modules/mod_bw.so
limitipconn_module modules/mod_limitipconn.dll
fcgid_module modules/mod_fcgid.so


I was able to compile mod_fcgid in 64 bit. I will test it and than post the link, if it works Wink


OK here we go

http://mariobrandt.de/download/apache/mod_bw_0.8_x64.zip
http://mariobrandt.de/download/apache/mod_limitipconn.so
http://mariobrandt.de/download/apache/mod_fcgid-2.3.5_x64.zip

Please test and report.
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Sun 11 Apr '10 13:27    Post subject: Reply with quote

thank you very much Smile
Back to top


Reply to topic   Topic: Apache enabling large address aware , D.D.O.S etc View previous topic :: View next topic
Post new topic   Forum Index -> Apache