LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-07-2010, 09:08 AM   #1
razzera
Member
 
Registered: Dec 2009
Posts: 105

Rep: Reputation: 15
apache2 timeout problem


Hello

Im running a Debian webserver on a Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz with 2GB ram and 2X 250GB ATA ST3250310AS in it.

The problem i has is that it has started to get ALLOT of traffic now, say 150~ ish connections all the time. around there it start to timeout so i get error message in chrome saying "cannot find the server with domian.com" bla bla bla.

Apache2 has is using prefork.c according to "apache2 -l" and here is the current settings

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 1000
</IfModule>

I have a 100/100mbit Fiber connection so i dont think there is anyting like that. whu is it timing out when it reaches high connections ? the load on the server before it happens is about 0.14 0.18 0.09 so what could cause this problems ?

Last edited by razzera; 05-07-2010 at 09:15 AM.
 
Old 05-08-2010, 02:51 AM   #2
sunnydrake
Member
 
Registered: Jul 2009
Location: Kiev,Ukraine
Distribution: Ubuntu,Slax,RedHat
Posts: 289
Blog Entries: 1

Rep: Reputation: 61
run htop/top look what process take most time(i think timeouts possibly caused by server overloads/or huge req/s ). Also check server-status to see actual apache load. If you bumped to connections limit tweak ServerLimit / MaxClients values.
 
Old 05-09-2010, 11:58 AM   #3
ninohead
LQ Newbie
 
Registered: Apr 2010
Posts: 11

Rep: Reputation: 0
use "ab2" or "ab" command to check your apache threshold

# man ab2
# man ab

example.
# ab -n 1000 -c 10 http://localhost/index.html

pass other option as well to check your keepalive threshold..

you might get some idea...



You can lead a horse to water, but if you can get him to float on his back, you've got something.
 
  


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
VPNC seems to timeout quickly- how do I lengthen the timeout? spiffytech Linux - Software 30 10-05-2018 04:04 AM
apache2 timeout problem razzera Debian 3 04-12-2010 01:09 PM
Executing shell script with shell_exec from PHP5 on Apache2 gives timeout raven Programming 1 02-06-2008 02:04 AM
apache2.x : force timeout instead of 404 Nathanael Linux - Server 1 09-25-2006 06:45 AM
ftp timeout problem eric_marsh Debian 4 06-29-2004 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:43 AM.

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