PDA

View Full Version : How to increase HARD_SERVER_LIMIT ?


secretman
11-04-2006, 11:51 PM
Hello,
I have need to increase HARD_SERVER_LIMIT on apache.

I have set MaxClients 2048 on httpd.conf but when I start apache show
this error :

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

I have found file httpd.h on /usr/local/apache/include/httpd.h and edited
HARD_SERVER_LIMIT lines, but when restart apache still show error.

How to increase?

Jeremy
11-05-2006, 08:00 PM
Theres only one way :)

You need to compile from source.

secretman
11-06-2006, 12:13 AM
I have change the number on /usr/local/apache/include/httpd.h
and stop/start apache but server don't see new setting.

How to recompile apache under DSM?

Jeremy
11-07-2006, 04:21 AM
Type this
/usr/local/apache/bin/httpd -V

It will show the hard limit.

I would try on a non production box for learning to compile apache.. Doing so will break a few things... the yum update might have a few problems, but if your willing to learn there shouldn't be a problem.

Check out http://httpd.apache.org/docs/1.3/install.html and download the sources and give it a try.

Backup your configs before you start.