homepage Welcome to WebmasterWorld Guest from 54.204.127.56
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Webmaster Hardware
Forum Library, Charter, Moderator: open

Webmaster Hardware Forum

    
Should my server be this easy to bring down?
lyskl




msg:3844542
 5:55 pm on Feb 7, 2009 (gmt 0)

I have hosting with dreamhost PS (private server). I have 1gb of ram on my server. Now, if I open up say 20-30 tabs in my browser and keep clicking "refresh all tabs". Then it brings my site down.
My site is a pretty popular site and I'm shocked that I can do this so easily.
What do you suggest I do to fix this?

 

lyskl




msg:3844549
 5:59 pm on Feb 7, 2009 (gmt 0)

To clarify, what happens is the server runs out of RAM and gets a 503 error. Its fine a few seconds later. But still, one person could constantly do this and keep my site offline for a long time.

caribguy




msg:3844558
 6:14 pm on Feb 7, 2009 (gmt 0)

Sounds like you need to look at optimizing your configuration. If using Apache (you didn't specify), take a look at these settings in httpd.conf to make sure they're sensible and lower as needed:

Timeout
MaxClients
MaxSpareServers
MaxRequestsPerChild
ThreadsPerChild
ServerLimit
MaxSpareThreads

lyskl




msg:3844559
 6:17 pm on Feb 7, 2009 (gmt 0)

Unforunately Dreamhost won't let me edit those settings. I guess I could ask though.

g1smd




msg:3844581
 6:36 pm on Feb 7, 2009 (gmt 0)

That's how DDoS works, but in this case it was just DoS - nothing Distributed about it.

Looks like you need more capacity to serve requests, as noted above.

jeffatrackaid




msg:3853200
 4:11 pm on Feb 19, 2009 (gmt 0)

I think that PS is actually a virtual server. Likely Virtuozzo powered. They have strict limits on RAM usage. You may need to considered a dedicated server or a larger virtual private server with root level access to you can monitor and tweak the settings.

jecasc




msg:3859990
 8:42 pm on Feb 28, 2009 (gmt 0)

Are you sure the site is down and it is not simply some AntiDOS measures that kick in - only blocking request from your IP? Some CMS and shopping carts have built in bandwith control. They count the number of requests from one IP in a given period of time, and when the limit is exceeded they return a 503.

eeek




msg:3878233
 4:34 am on Mar 25, 2009 (gmt 0)

Unforunately Dreamhost won't let me edit those settings.

You have a private server and you can't edit the config files? I'd go somewhere else.

I think that PS is actually a virtual server. Likely Virtuozzo powered. They have strict limits on RAM usage.

But if they sold him 1Gb, he should be getting that and that much memory should easily handle his little test.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Webmaster Hardware
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved