Re: [users@httpd] MaxClients stuck at 10 bug
I get this when I do a httpd -v Server version: Apache/2.2.3 Server built: Jan 31 2011 17:49:25 I have attached my httpd.conf Thanks for your help. I appreciate it. If there's anything I can do, please let me know. Marion httpd.conf Description: Binary data - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] MaxClients stuck at 10 bug
Here is some more info that might be useful. I got this from yum: Installed Packages Name : httpd Arch : i386 Version: 2.2.3 Release: 45.el5.centos Size : 3.1 M Repo : installed Summary: Apache HTTP Server I also had the problem with the original installed configuration file. I have attached a copy. Thanks again, Marion httpd.bak Description: application/trash - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] MaxClients stuck at 10 bug
This is a follow-up on my previous post, server limit stuck at 10. I gave a whole bunch of details about what I had done trying to cope with this problem, and got one reply saying suggesting I do what the error message said and set the server limit. Since I had already tried to do that multiple times before I posted to the list, I found that a little disappointing. Like most men, I hate to ask directions. I replied to the reply with detail, but got no response. I also found that a little disappointing. I had a php site using prefork.c. Most of the php code was generate by a couple of perl scripts. I modified consolidated the perl scripts into one which generates all the pages of the site in html with only a little editing of html files required so I could switch to the worker.c module and be thread safe. But I was still stuck at 64 users because I got this error message: WARNING: MaxClients (10) must be at least as large as ThreadsPerChild (64). Automatically increasing MaxClients to 64. So I downloaded source code and looked into it some. It seems that the worker_pre_config in worker.c is erroneously setting max clients to 10 for some reason having to do with whether ThreadsPerChild has been set. Then when set_max_clients runs, MaxClients is set to 64 instead of 3 times 64 where I want it to be. I am paying for ram and bandwith that can't use. Is this a configuration problem or an Apache bug? Marion - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] server limit stuck at 10
Igor Cicimo said: So do what the error says: increase the ServerLimit I've tried that a lot of times. Maybe I am doing it wrong. My understanding is that the IfModule prefork.c section of httpd.conf is where this directive is read when using the prefork module. When I change this value, the error message I get sometimes reflects the value I have put in. I have tried various values for ServerLimit and MaxClients, but no joy. My site has one gig memory and 2 gigs burstable. As I said in my original post: Here is the prefork section of httpd.conf IfModule prefork.c StartServers 8 MinSpareServers5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 150 /IfModule If I should be setting the ServerLimit some other way, I would be very happy to hear what that is. I am currently working on switching the site from php to html so I can use the threaded model and get rid of the php overhead from the server. I currently use perl programs to generate most of the php code for the site anyway. I am switching the code to C because I am not that fluent in perl and I spend too much time looking things up. But if I can solve this problem some other way, I might reconsider that plan. Thanks, Marion - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] server limit stuck at 10
I have an unmanaged site, alrightsounds.com, running CentOS. The ServerLimt seems to be stuck at 10. This works OK when most of the people in China a asleep, but... WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers, lowering MaxClients to 10. To increase, please see the ServerLimit directive. [Tue Apr 19 09:37:51 2011] [notice] Digest: generating secret for digest authent ication ... [Tue Apr 19 09:37:51 2011] [notice] Digest: done [Tue Apr 19 09:37:51 2011] [warn] WARNING: Attempt to change ServerLimit ignored during restart [Tue Apr 19 09:37:51 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations After the reboot of Apache, I get this [root@server1 httpd]# ps -e |grep httpd |wc 11 44 330 And I can't get the site on my browser. [root@server1 httpd]# httpd -t Syntax OK [root@server1 httpd]# httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c Here is the prefork section of httpd.conf IfModule prefork.c StartServers 8 MinSpareServers5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 150 /IfModule I have re-installed apache and tried it with the default httpd.conf, and I still have the same problem. Thanks, Marion - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org