Apache :: Busy Servers Reaches Maxclients

Jun 18, 2015

I am using apache 2.2 webserver and tomcat 6 as app server.

I have two unix boxes (let say A and B) where apache is installed for load balancing purpose.

The issue is now and then I see that on both the server reaches to 250 busy servers which makes my site very slow and after some time the site is unaccessible.

When I see this I restart apache on both unix boxes and also restart my app server.

But that does not work. As soon as I start apache the httpd process ramps up to 12 (ps -ef | grep httpd) within a minute and the busy servers still remains at 250.

The only I have to do is wait and watch till the busy servers goes down to 250 and then site is back to normal.

Some times it takes hours for busy servers to go down below 250.

I dont understand that why even restarting apache and tomcat doesn't work. why the busy servers are still at 250. even after I restart.

This is what I have in httpd.conf

<IfModule worker.c>
ServerLimit 80
StartServers 2
MaxClients 250
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

I tried to increase MaxClients to 300, which also didn't work and apache or httpd process shuts down by itself.

View 3 Replies


ADVERTISEMENT

Apache ServerLimit MaxClients / MaxSpareServers?

Mar 23, 2005

I am using prefork MPM in apache because we are running php which is not thread safe.

I have a ServerLimit of 500 and a MaxClients/MaxSpareServers set at 500. However, the server seems to be stuck at 352 processes.

Any ideas of why that may be?

View 0 Replies View Related

Apache Seems To Be Busy But Load Is 0.00

Feb 12, 2007

i'm hosting a forum (~80 simultalinous users online) In a VDS 512 MB RAM, Linux Debian with apache 1.3 and mysql 4.1 , php4.

Apache seems to be busy, pages don't even load, this can be resolved by restating apache. and after a couple of time (about 4 hours) it does the same thing again, and i do have to restart it again and looping ...

Here is my httpd.conf file :

Code:
Timeout 200
KeepAlive On
MaxKeepAliveRequests 200
KeepAliveTimeout 3
MinSpareServers 5
MaxSpareServers 15
StartServers 5
MaxClients 20
HostnameLookups Off

MaxRequestsPerChild 2000

View 14 Replies View Related

Apache Errors / Down Server Seems Busy

Apr 20, 2008

Tailed apache logs and found this:

[Sun Apr 20 08:29:34 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 10308 for (*)
[Sun Apr 20 08:29:34 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 10309 for worker proxy:reverse
[Sun Apr 20 08:29:34 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 10310 for worker proxy:reverse
[Sun Apr 20 08:29:34 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Sun Apr 20 08:29:34 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Sun Apr 20 08:29:34 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 10309 for (*)
[Sun Apr 20 08:29:34 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 10310 for (*)
[Sun Apr 20 08:29:35 2008] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 2 idle, and 45 total children
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 10311 for worker proxy:reverse
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 10311 for (*)
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 10312 for worker proxy:reverse
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 10312 for (*)
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 10313 for worker proxy:reverse
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 10313 for (*)
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 10314 for worker proxy:reverse
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 10314 for (*)
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 10315 for worker proxy:reverse
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 10315 for (*)
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 10316 for worker proxy:reverse
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 10316 for (*)
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 10317 for worker proxy:reverse
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 10317 for (*)
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1670): proxy: grabbed scoreboard slot 0 in child 10318 for worker proxy:reverse
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1689): proxy: worker proxy:reverse already initialized
[Sun Apr 20 08:29:35 2008] [debug] proxy_util.c(1778): proxy: initialized single connection worker 0 in child 10318 for (*)

What on earth is all these proxy_util.c errors?

Also, I could not find any details in the httpd.conf file regarding StartServers, or Min/MaxSpareServers.

I'm using Centos 4 / Apache 2.2 / PHP 5 / Cpanel

View 4 Replies View Related

Numiptents Reaches Maximun Value

Aug 8, 2008

I'm using a Virtuozo - Plesk 8.6 based VPs. Since the first day I'm suffering hundreds of brute force ssh atacks. I decided to use BFD in combination with APF, and other security measures (thanks to the tutorial aboput securing VPS of this forum )

Since I installed APF, the value of numiptents reaches the maximum every few hours. The maximum value allowed in my vps is 256, and my provider says that he can not increase it (unless I upgrade to a more expensive plan ).

Is there any thing I can do to fix this problem? Perhaps an cron iptables flush every two hours or something like that?

What problems can I have when the numiptents value reachs the maximum?

View 13 Replies View Related

Warm When Maxheld Reaches Barrier/limit

May 12, 2009

Is there any scripts that can warn ( as email ) when maxheld reaches barrier/limit in openvz

View 0 Replies View Related

Scripts To Auto Restart Server When CPU Reaches A Limit

Jun 17, 2009

way to restart httpd when my CPU or http connection is reaching a limit? I would rather have it restarted then having it down.

View 14 Replies View Related

Maxclients

May 27, 2009

im using apache2, and in apache config i set maxclients value is 60.

it mean, my vps will accept only 60 clients at the same time.And when vps have more than 60 clients, all clients over are locked out till my vps have less than 60 connections.
But when my vps had more than 60 clients, apache is crash, ram is not full, and i must restart apache.

View 6 Replies View Related

Modify MaxClients

Jun 13, 2008

i want to larger the "MaxClients",

i add the MaxClients 1000 in the httpd/conf/httpd.conf and restart the httpd

but it looks likely not work at all,

what should i do else?

my apache is version 2

View 10 Replies View Related

No HardServerLimit, Just MaxClients

May 25, 2008

Noticed that our http.conf file only contains MaxClients but not HardServerLimit. Is it because we are running an older version of Apache where the server limit has to be compiled with that set? We are running: 1.3.37

Our management server has set MaxClients to 2000 and it seems to work. Have been doing lots of reading and this number may cause issues when the server spikes in traffic. Most users recommend a number below 500.

View 0 Replies View Related

Apache2 - Where To Set Maxclients

Aug 17, 2014

I am using Plesk 12 / Ubuntu 14.04

In PLESK 11 I could set maxclients, ServerLimit ..... in /etc/apache2/apache2.conf

But I cannot find these settings in apache2.conf.

Where to configure these settings, in which file?

View 6 Replies View Related

Server Reached Maxclients

Mar 25, 2008

I`m on VPS 768Ram WHM/Cpanel

when i check error log on apache i see that error around 5 times daily.

[error] server reached MaxClients setting, consider raising the MaxClients setting

the apache restart automatically (~3 second). and that the problem when user make downloading all connections CUT.

my httpd.conf

maxclients 150
maxrequestperchild 0

i can increase maxclients no problem but i don`t know if i need to do something else or not.

Is there any way to LIMIT connection ( if server get more than 256 connection it says SERVER BUSY and doesn`t accept any connection )

View 7 Replies View Related

How To Change MaxClients On Apache2

Jan 8, 2008

Since I upgraded to apache2.2 I dont seem to be able to find the "MaxClients" setting in httpd.conf.

I spent some time on google and aparently this has been taken out because apache2 is multi-threaded. What I do know is no more than about 250 people can connect to my server.

View 13 Replies View Related

Increase Maxclients Limit

Nov 30, 2007

well now my server load is back to normal i.e 1 - 2

but i want to increase the maxclients limit in my httpd.conf..

when i did 312 and restarted it, it says the max is 256.. so how do i increase the limit

View 8 Replies View Related

Plesk 12.x / Linux :: (Notify When Disk Space / Traffic Usage Reaches) Sending To Customers Not Admin

Jan 29, 2015

I migrated from one server running Plesk 10.4.4 Update #59 to a new server running Plesk 11 which I then updated to 12.0.18 Update #32. Since moving to Plesk 12 the "Notify when disk space/traffic usage reaches" emails have been being sent to our customers set up on the server whereas previously they were sent to the server admin email address.

Is this a change with this version?

View 1 Replies View Related

Sites Have Gone Slow. Should Increase Maxclients

Feb 1, 2007

One of my sites gets around 10k+ visitors a day which has caused my httpd to be really slow.

My MaxClients is set to 250.

What should I do to get it back to normal?

View 5 Replies View Related

Server Seems Busy

Jun 28, 2007

../logs/error_log

[info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 6 idle, and 37 total children

../httpd.conf
StartServers 7
MinSpareServers 8
MaxSpareServers 13

I think it's already high values, Is it safe to increase it?

View 3 Replies View Related

How To Track Busy Web On Server

Aug 29, 2007

Is there a way I can track the HTTP traffic to which domain is running with high traffic. Due to traffic load I/O wait is increasing. I want to suspend the domain that have the large traffic to avoid down time.

View 4 Replies View Related

How To Customize Server Busy Message

Apr 27, 2009

I've VPS, I want to cutomize server busy message.

what i should do to cutomize this page?

View 4 Replies View Related

Hostmonster - Site Shutdown Because Its Busy

Jun 3, 2009

Wanted to share a bit (read vent a bit if you're cynical ).

Just got the following e-mail from hostmonster.

-----------
Dear Dale:

Your web hosting account for ibycus.com has been deactivated (reason: site causing performance problems).

Although your web site has been disabled, your data may still be available for up to 15 days, after which it will be deleted.

If you feel this deactivation is in error, please contact customer support as soon as possible.

Thank you,
Support

For support go to
Toll-Free: (866) 573-4678
-------------

Apparently, there are two files on my website that are being hit quite a bit, and causing the server to slow down. (I admit, its a busy site, and the files are very big).

The files aren't new there, and neither is the traffic, but the plug was pulled with no warning what so ever, and no offer of remediation on their part beyond refunding the remaining portion of my contract (I would hope so too!).

I can understand that they may not be able to continue to host my site due to the volume of traffic it generates, but they really could have handled this much better.

View 14 Replies View Related

Inexpensive VPS For Busy PHPBB Forum

Jul 10, 2008

What minimum VPS specs should I be looking for to support a PHPBB3 forum that uses 100GB/mth bandwidth and has 50 concurrent users at peak times (measured by PHPBB, so not real-time concurrent)?

And are there any suggestions for inexpensive ($30 or less) options that would be worth trying? Have never used a VPS before.

If not, are there any shared hosting providers that specialize in hosting message boards like PHPBB?

View 7 Replies View Related

Mysql Server Busy And Slow

Sep 23, 2008

Mysql server always busy and slow (in my VPS).

How I can know which website/account uses mysql very heavely?

or just any monitoring Idea?

I want to know which user is responsible of that overuse?

View 7 Replies View Related

French Web Hosting To Handle Busy Site

Jun 8, 2009

Can anybody suggest a large hosting company based in France?

I'm looking for hosting that can handle a high bandwith, high profile, busy website. We will require excellent customer support and a professional attitude.

View 4 Replies View Related

Server Seems Busy, (you May Need To Increase StartServers, Or Min/MaxSpareServers)

Mar 17, 2008

I have a pages with high load - load avg is about 10-20.

and in the error_log of the apache message:

[Mon Mar 17 18:10:19 2008] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 6 idle, and 32 total children

I have in apache:

KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeOut 1
StartServers 15
MinSpareServers 15
MaxSpareServers 20
MaxClients 256
MaxRequestsPerChild 500

What values should be of these parameters for the such high traffic pages?

View 5 Replies View Related

Optimizing MySQL On A Busy Server (4 Gigs Of Ram)

Dec 8, 2008

it's getting to the point where I need to optimize MySQL to better handle a busy server.

These days it seems MySQL is using 30% - 60% CPU almost constantly. But, the good news is that I've got 4 gigs of ram on this box and their seems to be an access of 600mb free constantly throughout the day.

Is it possible to tweak MySQL to a little more RAM dependent and take some of the load off the CPU? It seems MySQL wont go over 300mb of ram at any given time.. I'm already working on optimizing the SQL Querys on the web page itself.

my.cnf (4.1.22-standard):

# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
# old_passwords=1

# [mysql.server]
# user=mysql
# basedir=/var/lib

# [mysqld_safe]
# err-log=/var/log/mysqld.log
# pid-file=/var/run/mysqld/mysqld.pid

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
safe-show-database
old_passwords
back_log = 75
max_connections = 600
table_cache = 128
thread_cache = 32
wait_timeout = 60
interactive_timeout = 80
connect_timeout = 60
tmp_table_size = 64M
max_heap_table_size = 64M
max_allowed_packet = 64M
max_connect_errors = 10
read_rnd_buffer_size = 524288
bulk_insert_buffer_size = 64M
query_cache_limit = 8M
query_cache_size = 100M
query_cache_type = 1
default-storage-engine = MyISAM
local-infile=0
thread_concurrency = 4

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open_files_limit = 8192

[mysqldump]
quick
set-variable = max_allowed_packet=16M

[myisamchk]
set-variable = key_buffer=256M
set-variable = sort_buffer=64M
set-variable = read_buffer=16M

View 4 Replies View Related

Optimizing Dedicated Server With MYSQL And Busy Forum

May 11, 2009

Are there any services where an ADMIN can monitor DB usage on system and make some recommendations or even find SQL that is poorly written ...

I have a DUAL harpertown, 10GB RAM, and RAID

I have a typical, gallery, busy VB forum, and video script...

THe site traffic has not increased much but my Memory keeps getting chewed up... i already did some tuning that VBULLLETIN suggested... but the memory still goes... i need a tool or someone to just monitor the server for a day and grab as much diagnostic info as possible..

I suspect that its a single query giving problems cuz i have some custom coded pages...

I don't want to split the DB and HTTP request on diff servers cuz the traffic that i get shouldn't warrant it... for now...

View 12 Replies View Related

2 Separate Servers (IIS & Apache)

Oct 14, 2009

I'm more of an application programming guy than network/internet guy so excuse any ignorance on my part.

I am currently using shared hosting on an IIS server.

I running SMF Forums and a business on the IIS server. I have a payment system that I've programmed tied into the MySQL SMF database. This payment system uses ASP.net. I'm a .Net programmer. SMF is also being currently ran on the IIS server, and it does ok.

I'm really wanting to start running my forums on a separate Unix Server.

So my question is, can i run my ASP.net scripts on my IIS server that access the MySQL database on a separate Apache server? The Apache server and IIS server would have different domains (I'm guessing that'd be required).

I think this is possible, but wondering what others think. All I should need to do is change some connection strings on my Web.config on my IIS server to point to the new SQL databases.

View 7 Replies View Related

Two Servers One For Apache And One For Mysql

Mar 29, 2007

we plan to buy one server for apashe and one for mysql.

So first server will handle apache + cpanel + exim
Dual Processor Dual Core Xeon 5140 - 2.33GHz (Woodcrest) - 2 x 4MB cache
8 GB FB-DIMM
3 x 73GB 15k RPM SA-SCSI
Linux RHE 4 ES

second will handle only mysql
Dual Processor Quad Core Xeon 5345 - 2.33GHz (Clovertown) - 2 x 8MB cache
8 GB FB-DIMM
3 x 73GB 15k RPM SA-SCSI
Linux RHE 4 ES

Server will be used for forums about 4000, 5000 Simultaneous users.

View 3 Replies View Related

Do I Need Separate Apache & Mysql Servers Etc

Mar 21, 2007

here's my current setup has my stuff running on 2 separate "self contained" servers (eg; each runs their own apache/php/mysql):

Main site/server:
content: mostly static content (no mysql, very little php). currently has about 4tb/m traffic. in the summer it could push up to 6tb/m
hardware: P4 2.8ghz. 1gb ram. this server has no problem handling the load. only problem is bandwidth (i have to get it off the current host)

Forums site/server:
content: running vBulletin. currently 400-500 peak (probably jump to 800 peak this summer) users active per 15 mins.
hardware: 64bit dual Opteron 242. 4gb ram. it's absolutely griding that to a halt at peak times. it acts like 4gb memery isn't enough (it will run fine then eat through most of the 4gb. grind to a halt, then recover) personally i think it was setup/configured wrong but i've had multiple people look at it and nobody can find anything wrong in the apache/mysql settings.

What I want to know:
what type of server setup should I start migrating to? should I keep both parts of the site separate? eg; main site on one server, forums on another server(s)?

what i've sorta been looking into is 3-server setup.
(server1) main apache/php server. probably on unmetered (honestly don't think i'll find anything else that offers high enough traffic). run the main site and the vB php from here
(server2) dedicated mysql 'read only' server (server3) dedicated mysql 'write only' server.

and have mysql read/write synced and have all 3 servers networked directly together. i have a friend running a single mysql driven site using this setup and it works really well for him.

is this overkill for me? should the current dual Opteron be able to handle the forums and i just need to hire someone smarter, or is there some other setup that would work better for me? i'm tight so i want to go cheap as possible, but I also realize i need room for summer traffic expansion that always hits us.

View 4 Replies View Related

Apache :: Can Forward Requests To Different Servers?

Sep 16, 2014

We have an Apache acting as a reverse-proxy and listening on the Internet ("Our URL" on port 443).

We would have two ways of accessing this reverse-proxy:

-From a mobile app (authentication would be based on a corporate certificate)
-From any browser (authentication would be a login form)

The question is: can Apache forward requests to either server 1 or server 2, depending on whether a certificate is sent by the client?

View 10 Replies View Related

Apache :: SSL For Proxy Server And Individual Web Servers

Feb 27, 2014

I have a total of 3 web servers:

x1 gateway.domain.com:443 (Using as a proxy to web1 and web2)
x1 web1.domain.com:443
x1 web2.domain.com:443

I was able to have gateway.domain.com play nicely with a wildcard certificate and handshake perfectly with web1 and web2. Now currently, web1 and web2 have their own SSL certificates while gateway has a wildcard cert for *.domain.com. Is it necessary to have certs on all 3 servers or just have the single wildcard cert on gateway.domain.com?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved