LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 12: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, 12: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, 01: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



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 03:53 AM
APACHE: limit max connections from the same IP ? tclwp Linux - Networking 3 06-24-2005 11:47 AM
max connections yuhuashi Programming 1 09-25-2004 10:38 AM
Max connections from a IP cli_man Linux - Networking 2 04-08-2004 02:57 PM
IE max connections mrozkan General 16 03-20-2004 09:20 PM

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

All times are GMT -5. The time now is 04:17 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
Open Source Consulting | Domain Registration