0

We are using the following configuration and as far as I know this configuration can execute 8000 requests/processes concurrent.

Apache Server Version: 2.4.57, Server MPM: event

<IfModule mpm_worker_module>
    ServerLimit              250
    StartServers              10
    MinSpareThreads           75
    MaxSpareThreads          250
    ThreadLimit               64
    ThreadsPerChild           32
    MaxRequestWorkers       8000
    MaxConnectionsPerChild 10000
</IfModule>

To increase this value from 8000 to 16000, is it sufficient to set the "MaxRequestWorkers" parameter to 16000, or are the values dependent on other parameters within this configuration?

If we want to check, how can we see the current count of the "MaxRequestWorkers" value?

I think we experience bottlenecks on Apache Server when incoming requests increase. There is no problem in terms of CPU and memory usage on the server. I want to increase the maximum number of requests we can accept and the maximum number of processes we can process.

And when we increase the values on the Apache Server side, what changes should we make in the limits.conf file? I think the two affect each other.

[root@servername ~]# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 95053
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 95053
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
[root@servername ~]#

1 Answers1

0

The usual practice when increasing MaxRequestWorkers is to increase also ServerLimit. This will give "space" of distribute the requests over the processes.

But as commented you do not want to have single machine to handle so big amount of requests. Also increasing mean the value mean more CPU, more RAM.

Based on your input you should increase the number of filehandlers to (at least) 20480 + other, required by software and OS.

Romeo Ninov
  • 6,677