clocker1996
12-14-2001, 08:25 AM
How do you set it higher then 256? I didn't even know it was set to max 256 unless you specified it higher.
![]() | View Full Version : Setting maxclients with apache clocker1996 12-14-2001, 08:25 AM How do you set it higher then 256? I didn't even know it was set to max 256 unless you specified it higher. zupanm 12-14-2001, 09:27 AM its right in the httpd.conf file. Actually the default is 150 unless you have some preinstalled build for a high end webserver RutRow 12-14-2001, 10:08 AM I vaguely remember seeing something in the Apache README file. You will have to edit the source code and recompile. archangel777 12-14-2001, 01:29 PM The Max under Unix is usually set to 256, with the default at 150. In order to set this higher (usually only needed if you have a really high traffic site), you will need to edit the "httpd.h" file in the Apache source directory.... Then recompile Apache. ClusterMania 12-14-2001, 04:54 PM http://thingy.kcilink.com/modperlguide/performance/Choosing_MaxClients.html Wouldn't is be could if someone made a script that would bench your system and set max settings automaticly for ya? clocker1996 12-15-2001, 04:12 AM My apache 1.3.22 was configured with these settings for 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 256 #endif #endif How do i know which one it used? i dont understand I mean if it said #define HARD_SERVER_LIMIT 256 and only that.. then yeah i could easily change it to 1024 and then recompile But it has 3 things and i have no idea which one it is using and which one to change can anyone help me? clocker1996 12-15-2001, 04:23 AM n/m got it |