ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА














     АРХИВ :: Apache-Talk
Apache-Talk mailing list archive (apache-talk@lists.lexa.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [apache-talk] Re: [apache-talk] Как побороть HARD_SERVER_LIMIT ?




Hello Igor,

Saturday, June 21, 2003, 12:22:51 PM, you wrote:

>>  Как побороть HARD_SERVER_LIMIT ? =)

> Странно это. ./httpd -V говорит про -D HARD_SERVER_LIMIT=4096, в том время
> как реально собрано с 2048:

Вот и я про то-же.

> ----
> WARNING: MaxClients of 3000 exceeds compile time limit of 2048 servers,
> lowering MaxClients to 2048.  To increase, please see the
> ----

> Я обычно HARD_SERVER_LIMIT описываю не в httpd.h, а в коммандной строке make:
> OPTIM=-DHARD_SERVER_LIMIT=2048 make

> В общем, имеет смысл сделать grep -r HARD_SERVER_LIMIT <apache_src>, чтобы
> посмотреть, может где-то его переопределяют.

grep -r HARD_SERVER_LIMIT src
src/CHANGES:     HARD_SERVER_LIMIT value. [Dirk-Willem van Gulik].
src/CHANGES:     HARD_SERVER_LIMIT.  Some of the previous operations were 
O(n^2),
src/CHANGES:  *) HARD_SERVER_LIMIT can be defined in the Configuration file now.
src/CHANGES:     MaxClients + 1 if less than HARD_SERVER_LIMIT. Also fix 
potential
src/CHANGES:     problem if StartServers > HARD_SERVER_LIMIT. [Ed Korthof]
src/include/httpd.h:#ifndef HARD_SERVER_LIMIT
src/include/httpd.h:#define HARD_SERVER_LIMIT 4096
src/include/httpd.h:#define HARD_SERVER_LIMIT 4096
src/include/httpd.h:#define HARD_SERVER_LIMIT 4096
src/include/scoreboard.h:    short_score servers[HARD_SERVER_LIMIT];
src/include/scoreboard.h:    parent_score parent[HARD_SERVER_LIMIT];
src/include/httpd.h.orig:#ifndef HARD_SERVER_LIMIT
src/include/httpd.h.orig:#define HARD_SERVER_LIMIT 4096
src/include/httpd.h.orig:#define HARD_SERVER_LIMIT 4096
src/include/httpd.h.orig:#define HARD_SERVER_LIMIT 4096
src/main/http_config.c:    ap_daemons_limit = HARD_SERVER_LIMIT;
src/main/http_core.c:    if (ap_daemons_limit > HARD_SERVER_LIMIT) {
src/main/http_core.c:           "of %d servers,\n", ap_daemons_limit, 
HARD_SERVER_LIMIT);
src/main/http_core.c:           "see the\n", HARD_SERVER_LIMIT);
src/main/http_core.c:       fprintf(stderr, " HARD_SERVER_LIMIT define in 
src/include/httpd.h.\n");
src/main/http_core.c:       ap_daemons_limit = HARD_SERVER_LIMIT;
src/main/http_core.c:    if (ap_threads_per_child > HARD_SERVER_LIMIT) {
src/main/http_core.c:                "of %d threads,\n", ap_threads_per_child, 
HARD_SERVER_LIMIT);
src/main/http_core.c:                "see the\n", HARD_SERVER_LIMIT);
src/main/http_core.c:        fprintf(stderr, " HARD_SERVER_LIMIT define in 
src/include/httpd.h.\n");
src/main/http_core.c:        ap_threads_per_child = HARD_SERVER_LIMIT;
src/main/http_main.c:    if ((old = usconfig(CONF_INITUSERS, HARD_SERVER_LIMIT 
+ 1)) == -1) {
src/main/http_main.c:    for (round = 0; round <= (HARD_SERVER_LIMIT - 1) / 
MAXWAITOBJ + 1; round++) {
src/main/http_main.c:        (pi < (round + 1) * MAXWAITOBJ) && (pi < 
HARD_SERVER_LIMIT);
src/main/http_main.c:    printf(" -D 
HARD_SERVER_LIMIT=%ld\n",(long)HARD_SERVER_LIMIT);
Binary file src/main/http_core.o matches
Binary file src/main/http_main.o matches
Binary file src/main/libmain.a matches
src/modules/extra/mod_deflate.c:    for (i = 0; i < HARD_SERVER_LIMIT; i++)
src/modules/extra/mod_deflate.c:        for (i = 0; i < HARD_SERVER_LIMIT; i++)
src/modules/standard/mod_status.c:    char stat_buffer[HARD_SERVER_LIMIT];
src/modules/standard/mod_status.c:    int pid_buffer[HARD_SERVER_LIMIT];
src/modules/standard/mod_status.c:    for (i = 0; i < HARD_SERVER_LIMIT; ++i) {
src/modules/standard/mod_status.c:    for (i = 0; i < HARD_SERVER_LIMIT; ++i) {
src/modules/standard/mod_status.c:          for (i = 0; i < HARD_SERVER_LIMIT; 
++i) {
src/modules/standard/mod_status.c:      for (i = 0; i < HARD_SERVER_LIMIT; ++i) 
{
src/os/tpf/os.c:    for (i = 0; i < HARD_SERVER_LIMIT; ++i) {
Binary file src/httpd matches

..

Best regards,
 Oleg                            mailto:ilin@rinet.ru



 




Copyright © Lexa Software, 1996-2009.