LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2004, 01:19 AM   #1
yanix
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
Max Connections message on Apache


Is it possible to get my apache to display something like a
"503 - Server it too busy" page
when the number of visitors exceeds a certain number?

I've seen this message when visiting other sites sometimes.

There are a number of config directives in the httpd.conf file that sound like they'd help.

MaxKeepAliveRequests
MaxClients
ListenBackLog
...

Ive tried changing everything to 1 and testing it by refreshing a few browser windows, but the connections just seem to hang around and get served eventually rather than display a busy message.

If anyone knows if how to make a busy page display (or if its even possible on apache) your feedback would be appreciated.
 
Old 12-02-2004, 01:34 AM   #2
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
My guess is that you really need to flood the system, send a ton of requests at once, maybe write a script that does a while loop with the GET command, in bash it's as simple as:

while true
do
GET 'http://localhost'
done

see if that works for ya, once its run for about 20 seconds try to access the site with your browser.
 
Old 12-02-2004, 02:25 AM   #3
hostprotect
Member
 
Registered: Nov 2004
Posts: 56

Rep: Reputation: 15
You can edit the amount of connections in the httpd.conf . That will fix your problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to increase apache max connections? newlinuxnewbie Linux - General 5 08-29-2008 04:53 AM
APACHE: limit max connections from the same IP ? tclwp Linux - Networking 3 06-24-2005 12:47 PM
max connections yuhuashi Programming 1 09-25-2004 11:38 AM
Max connections from a IP cli_man Linux - Networking 2 04-08-2004 03:57 PM
IE max connections mrozkan General 16 03-20-2004 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration