Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1149 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs

  Apache ne prends pas en compte la valeur de max_clients

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Apache ne prends pas en compte la valeur de max_clients

n°552769
Limit
Posté le 05-09-2004 à 18:26:07  profilanswer
 

Salut,  
 
Dans mon server-status, on peut voir:

256 requests currently being processed, 0 idle servers


 
Or pourtant quand je démarre Apache

apachectl start
WARNING: MaxClients of 5800 exceeds compile time limit of 2048 servers,
 lowering MaxClients to 2048.  To increase, please see the
 HARD_SERVER_LIMIT define in src/include/httpd.h.
/usr/sbin/apachectl start: httpd started


 
J'ai fais exprès de mettre 5800 pour que ce message apparaisse. Donc pourquoi il dit que Maxclients est à 2048 et il en prends pas plus de 256 en meme temps?
 
merci

mood
Publicité
Posté le 05-09-2004 à 18:26:07  profilanswer
 

n°552872
Limit
Posté le 05-09-2004 à 20:54:35  profilanswer
 

up

n°552879
Limit
Posté le 05-09-2004 à 20:59:22  profilanswer
 

j'ai ceci dans /usr/include/httpd.h
 

/* Limit on the total --- clients will be locked out if more servers than
 * this are needed.  It is intended solely to keep the server from crashing
 * when things get out of hand.
 *
 * We keep a hard maximum number of servers, for two reasons --- first off,
 * in case something goes seriously wrong, we want to stop the fork bomb
 * short of actually crashing the machine we're running on by filling some
 * kernel table.  Secondly, it keeps the size of the scoreboard file small
 * enough that we can read the whole thing without worrying too much about
 * the overhead.
 */
#ifndef HARD_SERVER_LIMIT
#ifdef WIN32
#define HARD_SERVER_LIMIT 1024
#elif defined(NETWARE)
#define HARD_SERVER_LIMIT 2048
#else
#define HARD_SERVER_LIMIT 2048 /* 256 */
#endif
#endif

n°552886
lukefab
Posté le 05-09-2004 à 21:17:21  profilanswer
 

Hum, je ne connais pas vraiment mais est ce qu'un serveur c'est une instance d'Apache qui écoute sur un port ou le fork qui traite la requête?
Parce que dans ce cas, en premier on en a qu'un seul pour plusieurs seconds.
La confusion pourrait peut être expliquer le problème.

n°552923
Limit
Posté le 05-09-2004 à 21:42:45  profilanswer
 

pourtant j'ai bien augmenté la valeur comme dit apache mais au final ca ne change rien :??:

n°553160
lukefab
Posté le 06-09-2004 à 04:40:45  profilanswer
 

heu t'as recompilé apache?

n°553164
Limit
Posté le 06-09-2004 à 06:34:38  profilanswer
 

oui bien sur sinon je n'aurai pas eu le message là.
 

WARNING: MaxClients of 5800 exceeds compile time limit of 2048 servers,
 lowering MaxClients to 2048.  To increase, please see the
 HARD_SERVER_LIMIT define in src/include/httpd.h.

n°553441
Limit
Posté le 06-09-2004 à 16:10:29  profilanswer
 

up

n°553459
Sly Angel
Architecte / Développeur principal
Posté le 06-09-2004 à 16:29:52  profilanswer
 

tu as vraiment un bloquage net à cette valeur de 256 process ? Je veux dire c'est pas un malheureux hasard ? ( des fois... )
 
Parce que j'ai du mal à comprendre, j'utilise également 2048 en HARD_SERVER_LIMIT et j'ai pas le problème ( ~600 process sur un serveur en moyenne et ~800 sur un autre )


---------------
Fan et séquestrateur de Deprem De Prel Photographie, célèbre photographe de tuning automobile :o
n°553460
Limit
Posté le 06-09-2004 à 16:30:28  profilanswer
 

chaque fois que je rafraichis c'est tjs la limite à 256

Current Time: Monday, 06-Sep-2004 16:17:44 CEST
Restart Time: Sunday, 05-Sep-2004 21:04:38 CEST
Parent Server Generation: 0
Server uptime: 19 hours 13 minutes 6 seconds
Total accesses: 10702978 - Total Traffic: 7.5 GB
CPU Usage: u1245.66 s186.85 cu0 cs0 - 2.07% CPU load
155 requests/sec - 114.3 kB/second - 756 B/request
256 requests currently being processed, 0 idle servers
 
WRWRWWWRRWWWWWWWWWRWWWWWWRRWRWRWWRWRWWRRWWWWWWWWWRWRWRWWRWWRWWWW
RRWWRRWWWRRWWWRRWRWWWRRRWRWWWWWWWRWWWRWWRWWWWWWRWWRWWWWWWRWWRWWW
WWWWWWWRWWWWWWRWWWWWWWWRWWRWWRWWWWWWWWWWWWWWWLWWWWWWWRWWRWWWRRWW
WWWWRRWWRWWRWWRWWWWWWWWWRWWWWRWWWWWWWRRWWRWRWWWWWWWWWWWWWWWWWWWW


Message édité par Limit le 06-09-2004 à 16:31:13
mood
Publicité
Posté le 06-09-2004 à 16:30:28  profilanswer
 

n°553462
Sly Angel
Architecte / Développeur principal
Posté le 06-09-2004 à 16:33:27  profilanswer
 

Apache version 2.0 ou 1.3 ?
 
Dans le fichier de conf il y a bien qu'une seule fois la variable MaxClients ? [:wam]


---------------
Fan et séquestrateur de Deprem De Prel Photographie, célèbre photographe de tuning automobile :o
n°553464
Limit
Posté le 06-09-2004 à 16:35:34  profilanswer
 

Apache 1.3.31
 
oui je viens de vérifier un seul MaxClients

n°553466
Sly Angel
Architecte / Développeur principal
Posté le 06-09-2004 à 16:36:46  profilanswer
 

C'est un truc de ouf que t'as :heink:
 
Je vais vérifier si c'est pas server-status qui se vautre, tu as regardé avec pstree ce que ça donnait ?


---------------
Fan et séquestrateur de Deprem De Prel Photographie, célèbre photographe de tuning automobile :o
n°553468
Limit
Posté le 06-09-2004 à 16:39:24  profilanswer
 

pstree
init-+-bdflush
         |-httpd---500*[httpd]


 
je viens de mettre MaxClients à 500 et pourtant serverstatus bloque tjs sur 256

n°553469
Limit
Posté le 06-09-2004 à 16:40:42  profilanswer
 

sinon pour  
MinSpareServers  
MaxSpareServers  
StartServers  
 
tu met combien dans tu as KeepAlive à off?

n°553470
Limit
Posté le 06-09-2004 à 16:41:46  profilanswer
 

ah oui, j'ai aussi un autre problème avec apache :D
 

apachectl stop
/usr/sbin/apachectl stop: httpd (no pid file) not running


 
Pourtant il fonctionne bien :D
du coup, je fais un killall httpd et ensuite apachectl start pour le couper/relancer.

n°553471
Sly Angel
Architecte / Développeur principal
Posté le 06-09-2004 à 16:42:04  profilanswer
 

J'ai jamais KeepAlive à off :o


---------------
Fan et séquestrateur de Deprem De Prel Photographie, célèbre photographe de tuning automobile :o
n°553472
Sly Angel
Architecte / Développeur principal
Posté le 06-09-2004 à 16:42:44  profilanswer
 

Limit a écrit :

ah oui, j'ai aussi un autre problème avec apache :D
 

apachectl stop
/usr/sbin/apachectl stop: httpd (no pid file) not running


 
Pourtant il fonctionne bien :D
du coup, je fais un killall httpd et ensuite apachectl start pour le couper/relancer.


 
Ca c'est parce que t'as pas le même fichier pid annoncé dans le script apachectl et dans le httpd.conf ;)


---------------
Fan et séquestrateur de Deprem De Prel Photographie, célèbre photographe de tuning automobile :o

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs

  Apache ne prends pas en compte la valeur de max_clients

 

Sujets relatifs
[Apache] .htaccess non pris en compte[apache]<Directory /> et <Directory /var/www/users/*/www> : priorité?
faire marcher sftp + apache en toute sécurité?Comment mettre + de droit a un compte sous mandrake help !!!!
apache + .htacessj'ai supprimé le compte nobody :(
Modules Apachehtacces après une reinstall d'apache
[debian] apache 1.3.31 + php 4.3.4 => pb affichage d'image 
Plus de sujets relatifs à : Apache ne prends pas en compte la valeur de max_clients


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR