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

 


Dernière réponse
Sujet : Apache ne prends pas en compte la valeur de max_clients
Sly Angel

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 ;)


Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
Sly Angel

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 ;)

Sly Angel J'ai jamais KeepAlive à off :o
Limit 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.

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

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


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

Sly Angel 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 ?
Limit Apache 1.3.31
 
oui je viens de vérifier un seul MaxClients
Sly Angel Apache version 2.0 ou 1.3 ?
 
Dans le fichier de conf il y a bien qu'une seule fois la variable MaxClients ? [:wam]
Limit 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

Sly Angel 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 )
Limit up
Limit 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.

lukefab heu t'as recompilé apache?
Limit pourtant j'ai bien augmenté la valeur comme dit apache mais au final ca ne change rien :??:
lukefab 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.
Limit 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

Limit up
Limit 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


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)