Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th January 2007, 16:52
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 6 Times in 5 Posts
Question MaxClients set to appropriate level, but ISPconfig is crashing from it (I think)

Hi All,

I running ISPConfig and have set my maxclients setting in httpd.conf to an appropriate level: appropriate level meaning my total RAM divided by 2-3 Mbs for each client.

In my case this works out to 2000.

Lately ISPconfig has been crashing - and when I checked the error log I saw notes that "MAX Clients has been reached" and the server goes down.

Is there any way of turning off the function that shuts the server down? Or, a way to set up Max Clients so that the server can accomodate the requests?

Maybe something with Swap?

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 11th January 2007, 11:05
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

So where did you change the settings? Cause the maxClientSetting on the "webserving" apache should not affect the apache used by ISPConfig for Administration.
Reply With Quote
  #3  
Old 11th January 2007, 11:26
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 149 Times in 130 Posts
Default

Please note (as Ben mentioned) the ISPconfig Apache server (port 81) is not the same as the Apache server that is showing your webpages (port 80), so make sure you are editing the correct httpd.conf!

Also. The maxclients problem should not crash your Apache server. It will only slow pages down (a lot!)

Are you sure Apache is crashing?
Reply With Quote
  #4  
Old 11th January 2007, 16:30
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 6 Times in 5 Posts
Default Thanks for the reply -

Hi Guys,

Thanks for your replies!

I'm editting the Apache Conf in /etc/httpd/httpd.conf (I think that's close to the correct path).

I edited the section where the "max clients" section is...

Is there another httpd.conf that runs with ISPconfig that I can adjust?

This would be a great help since ISPconfig "webserver" is always crashing, almost hourly. My sites become inaccessible!
Reply With Quote
  #5  
Old 11th January 2007, 16:52
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 149 Times in 130 Posts
Default

The ISPconfig "webserver" does not serve your webpages!
it's ONLY for the ISPconfig control panel, maybe webmail and maybe awstats! So NO NEED to change anything in it!

What OS are you using, and what version of Apache are you using?

Last edited by edge; 11th January 2007 at 16:55.
Reply With Quote
  #6  
Old 11th January 2007, 17:15
bpmee bpmee is offline
Member
 
Join Date: Aug 2006
Posts: 86
Thanks: 3
Thanked 6 Times in 5 Posts
Unhappy

Ok,

but why does my server continue to crash? Here is a copy of my "top" output:

Code:
top - 08:14:40 up 9 min,  1 user,  load average: 0.57, 0.65, 0.35
Tasks: 916 total,   1 running, 914 sleeping,   0 stopped,   1 zombie
Cpu(s):  8.4% us,  1.8% sy,  0.0% ni, 83.3% id,  5.7% wa,  0.2% hi,  0.7% si,
Mem:   5974676k total,  2009752k used,  3964924k free,    36968k buffers
Swap:  2031608k total,        0k used,  2031608k free,   235924k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 2455 apache    15   0 33072  14m 4384 S    3  0.2   0:03.67 httpd
 2293 apache    16   0 33036  14m 4392 S    3  0.2   0:03.34 httpd
 2292 apache    15   0 32988  14m 4396 S    2  0.2   0:03.30 httpd
 2972 apache    15   0 32296  13m 4244 S    1  0.2   0:00.11 httpd
 3636 root      15   0  2776 1572  780 R    1  0.0   0:02.23 top
 2850 apache    15   0 32208  13m 4244 S    1  0.2   0:00.06 httpd
 3027 apache    15   0 32448  13m 4272 S    1  0.2   0:00.11 httpd
 3549 apache    15   0 32244  13m 4244 S    1  0.2   0:00.07 httpd
 2296 apache    15   0 32324  13m 4276 S    0  0.2   0:00.23 httpd
 2414 apache    15   0 32320  13m 4280 S    0  0.2   0:00.17 httpd
 2460 apache    15   0 32952  14m 4380 S    0  0.2   0:02.78 httpd
 2622 apache    15   0 32232  13m 4248 S    0  0.2   0:00.08 httpd
 2700 apache    15   0 32292  13m 4240 S    0  0.2   0:00.09 httpd
 2752 apache    15   0 32280  13m 4256 S    0  0.2   0:00.10 httpd
 2757 apache    16   0 32300  13m 4260 S    0  0.2   0:00.10 httpd
 2851 apache    15   0 32284  13m 4248 S    0  0.2   0:00.06 httpd
 2951 apache    15   0 32204  13m 4240 S    0  0.2   0:00.04 httpd
 3003 apache    15   0 32260  13m 4264 S    0  0.2   0:00.09 httpd
 3146 apache    15   0 32144  13m 4240 S    0  0.2   0:00.06 httpd
 3226 apache    15   0 32316  13m 4248 S    0  0.2   0:00.12 httpd
 3236 apache    15   0 32256  13m 4252 S    0  0.2   0:00.07 httpd
 3275 apache    15   0 32284  13m 4244 S    0  0.2   0:00.15 httpd
 3449 apache    15   0 32260  13m 4264 S    0  0.2   0:00.09 httpd
 3466 apache    15   0 32228  13m 4248 S    0  0.2   0:00.06 httpd
    1 root      15   0  2012  684  588 S    0  0.0   0:00.92 init
    2 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0
    3 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0
    4 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0
    5 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1
    6 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1
    7 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/1
    8 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/0
    9 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/1
   10 root      10  -5     0    0    0 S    0  0.0   0:00.00 khelper
   11 root      10  -5     0    0    0 S    0  0.0   0:00.00 kthread
   15 root      10  -5     0    0    0 S    0  0.0   0:00.00 kblockd/0
Reply With Quote
  #7  
Old 11th January 2007, 19:29
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
 
Default

Quote:
Originally Posted by bpmee
In my case this works out to 2000.
I think this is pretty much. If your web sites use PHP and MySQL, a child can use up to 20MB, not just 2 or 3. This would mean your swap space would get full, and if that happens, you must reset the server.
To tweak your Apache, have a look here: http://www.howtoforge.com/configurin...um_performance
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie ububtu 6.0.6 error PHP binary line 816 davidsky73 Installation/Configuration 8 17th September 2006 11:51
So I set up ISPConfig with DynDNS CombatGod General 5 23rd June 2006 07:09
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16
Users and websites aren't created Glorfindel Installation/Configuration 9 23rd February 2006 04:20
ispconfig keep crashing on update ablc Installation/Configuration 2 2nd August 2005 09:06


All times are GMT +2. The time now is 08:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.