Thank's James,

99% of the hosted content is static. I think it's time to migrate to MPM
event.

Thank's again.

Missatge de James Smith <j...@sanger.ac.uk> del dia dl., 14 de juny 2021 a
les 11:21:

> Yes the answer is almost certainly to do with the number of domains/size
> of code – even if all the sites are running the same code – they are likely
> to have different copies of it (unless they are all running the exact same
> copy of the code – and using a name based switch somewhere in it) There may
> be better ways of handling this – having 800 PHP children is not ideal –
> look at ways of using static servers if you can e.g.
>
>    - you may be able to sit another apache in front of this one to handle
>    the static requests {using the event mpm} and use this one to server PHP
>    code;
>    - or more this to mpm event model and use one of the fcgi wrappers for
>    PHP {mileage may vary on this if you have a large number of PHP code
>    basese};
>
>
>
> *From:* Marc Serra <mse...@manxa.com>
> *Sent:* 14 June 2021 10:08
> *To:* users@httpd.apache.org
> *Subject:* [users@httpd] Improve memory use [EXT]
>
>
>
> Hi again,
>
> I got an old Ubuntu server 16.04 with apache 2.4.18 serving 140 different
> domains.
>
> The server has 8 vCPUs and 16GB of memory. It's a virtual server hosted in
> Digital Ocean.
>
> As you can see above, the average memory use per apache process is 93MB.
>
> It's possible to improve that? If not, why is so much memory used? In
> other servers with similar configurations but with fewer hosted domains and
> low resources (see at the bottom of this email), the memory usage is much
> lower. Is it due precisely to the number of domains hosted? If not, what?
>
> Sorry to insist on the memory used by each apache process, but I need to
> improve it (if it's possible).
>
> # ls /etc/apache2/sites-enabled/|grep -v ssl |wc
> 140
>
> # cat /etc/issue
> Ubuntu 16.04.6 LTS
>
> # apache2 -V
> Server version: Apache/2.4.18 (Ubuntu)
> Server built:   2019-10-08T13:31:25
> Server's Module Magic Number: 20120211:52
> Server loaded:  APR 1.5.2, APR-UTIL 1.5.4
> Compiled using: APR 1.5.2, APR-UTIL 1.5.4
> Architecture:   64-bit
> Server MPM:     prefork
>   threaded:     no
>     forked:     yes (variable process count)
> Server compiled with....
>  -D APR_HAS_SENDFILE
>  -D APR_HAS_MMAP
>  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
>  -D APR_USE_SYSVSEM_SERIALIZE
>  -D APR_USE_PTHREAD_SERIALIZE
>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  -D APR_HAS_OTHER_CHILD
>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>  -D DYNAMIC_MODULE_LIMIT=256
>  -D HTTPD_ROOT="/etc/apache2"
>  -D SUEXEC_BIN="/usr/lib/apache2/suexec"
>  -D DEFAULT_PIDLOG="/var/run/apache2.pid"
>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>  -D DEFAULT_ERRORLOG="logs/error_log"
>  -D AP_TYPES_CONFIG_FILE="mime.types"
>  -D SERVER_CONFIG_FILE="apache2.conf"
>
> # apache2 -M
> Loaded Modules:
>  core_module (static)
>  so_module (static)
>  watchdog_module (static)
>  http_module (static)
>  log_config_module (static)
>  logio_module (static)
>  version_module (static)
>  unixd_module (static)
>  access_compat_module (shared)
>  alias_module (shared)
>  auth_basic_module (shared)
>  authn_core_module (shared)
>  authn_file_module (shared)
>  authz_core_module (shared)
>  authz_host_module (shared)
>  authz_user_module (shared)
>  autoindex_module (shared)
>  deflate_module (shared)
>  dir_module (shared)
>  env_module (shared)
>  expires_module (shared)
>  filter_module (shared)
>  headers_module (shared)
>  mime_module (shared)
>  mpm_prefork_module (shared)
>  negotiation_module (shared)
>  php7_module (shared)
>  rewrite_module (shared)
>  setenvif_module (shared)
>  socache_shmcb_module (shared)
>  ssl_module (shared)
>  status_module (shared)
>
> Relevant part of /etc/apache2/apache2.conf ...
> <IfModule mpm_prefork_module>
>         ServerLimit             800
>         StartServers            10
>         MinSpareServers         200
>         MaxSpareServers         400
>         MaxRequestWorkers       800
>         MaxConnectionsPerChild  10000
> </IfModule>
>
> # free -m
>               total        used        free      shared  buff/cache
> available
> Mem:          16046        7198         496         232        8351
>  8187
> Swap:          4095         243        3852
>
> # ps aux | grep apache
> root      1204  0.0  0.2 431016 47312 ?        Ss   May04   7:43
> /usr/sbin/apache2 -k start
> www-data  4778  0.0  0.4 531744 77132 ?        S    09:00   0:03
> /usr/sbin/apache2 -k start
> www-data 11661  0.1  0.3 518652 57868 ?        S    10:00   0:03
> /usr/sbin/apache2 -k start
> www-data 13839  0.0  0.2 443036 45928 ?        S    10:12   0:01
> /usr/sbin/apache2 -k start
> www-data 14763  0.1  0.2 443004 40676 ?        S    10:18   0:02
> /usr/sbin/apache2 -k start
> www-data 26848  0.0  0.4 533496 81960 ?        S    06:35   0:11
> /usr/sbin/apache2 -k start
> www-data 26849  0.0  0.5 537956 96632 ?        S    06:35   0:14
> /usr/sbin/apache2 -k start
> www-data 26850  0.0  0.5 528608 87912 ?        S    06:35   0:09
> /usr/sbin/apache2 -k start
> www-data 26851  0.0  0.4 519652 79560 ?        S    06:35   0:10
> /usr/sbin/apache2 -k start
> www-data 26852  0.1  0.6 545400 103880 ?       S    06:35   0:19
> /usr/sbin/apache2 -k start
> www-data 26853  0.0  0.5 541456 97776 ?        S    06:35   0:09
> /usr/sbin/apache2 -k start
> www-data 26854  0.0  0.8 578080 132944 ?       S    06:35   0:10
> /usr/sbin/apache2 -k start
> www-data 26855  0.0  0.5 535320 94640 ?        S    06:35   0:11
> /usr/sbin/apache2 -k start
> www-data 26856  0.0  0.4 528912 73644 ?        S    06:35   0:05
> /usr/sbin/apache2 -k start
> www-data 26857  0.0  0.5 528156 86332 ?        S    06:35   0:08
> /usr/sbin/apache2 -k start
> www-data 26872  0.0  0.4 522028 69292 ?        S    06:35   0:07
> /usr/sbin/apache2 -k start
> www-data 26873  0.0  0.5 530952 86820 ?        S    06:35   0:11
> /usr/sbin/apache2 -k start
> www-data 26874  0.0  0.4 524660 77884 ?        S    06:35   0:07
> /usr/sbin/apache2 -k start
> www-data 26875  0.0  0.4 522320 77392 ?        S    06:35   0:11
> /usr/sbin/apache2 -k start
> www-data 26876  0.0  0.4 529936 80368 ?        S    06:35   0:13
> /usr/sbin/apache2 -k start
> www-data 26877  0.0  0.6 553920 109604 ?       S    06:35   0:10
> /usr/sbin/apache2 -k start
> www-data 26887  0.0  0.5 534996 87504 ?        S    06:35   0:06
> /usr/sbin/apache2 -k start
> www-data 26888  0.1  0.5 524512 86896 ?        S    06:35   0:14
> /usr/sbin/apache2 -k start
> www-data 26889  0.0  0.4 519904 80188 ?        S    06:35   0:12
> /usr/sbin/apache2 -k start
> www-data 26890  0.0  0.4 523004 77304 ?        S    06:35   0:07
> /usr/sbin/apache2 -k start
> www-data 26891  0.0  0.5 536500 95164 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26892  0.0  0.5 543876 91908 ?        S    06:36   0:05
> /usr/sbin/apache2 -k start
> www-data 26893  0.0  0.4 521592 71296 ?        S    06:36   0:08
> /usr/sbin/apache2 -k start
> www-data 26894  0.0  0.6 546540 106028 ?       S    06:36   0:07
> /usr/sbin/apache2 -k start
> www-data 26895  0.0  0.6 547308 107360 ?       S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 26896  0.0  0.4 520464 79968 ?        S    06:36   0:08
> /usr/sbin/apache2 -k start
> www-data 26897  0.0  0.6 548696 105372 ?       S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26898  0.0  0.4 519640 77728 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26899  0.1  0.5 534680 95384 ?        S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 26900  0.0  0.4 522144 81592 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26901  0.0  0.5 525848 90668 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 26902  0.0  0.5 537980 95880 ?        S    06:36   0:08
> /usr/sbin/apache2 -k start
> www-data 26903  0.0  0.8 577704 136672 ?       S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26904  0.0  0.5 531536 88820 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26905  0.1  0.8 571304 138996 ?       S    06:36   0:18
> /usr/sbin/apache2 -k start
> www-data 26906  0.0  0.7 557736 116024 ?       S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26907  0.1  0.7 551868 117784 ?       S    06:36   0:18
> /usr/sbin/apache2 -k start
> www-data 26908  0.0  0.6 540604 103584 ?       S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 26909  0.0  0.5 521668 87288 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26910  0.0  0.5 524268 84732 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26911  0.1  0.5 533072 93176 ?        S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 26912  0.0  0.4 520120 82120 ?        S    06:36   0:10
> /usr/sbin/apache2 -k start
> www-data 26913  0.0  0.6 541632 108492 ?       S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26914  0.0  0.4 525260 75120 ?        S    06:36   0:07
> /usr/sbin/apache2 -k start
> www-data 26915  0.0  0.7 560688 121476 ?       S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26916  0.0  0.5 536120 94080 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26917  0.0  0.6 538184 100656 ?       S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26918  0.0  0.5 527952 84436 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26919  0.0  0.5 532980 92624 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 26920  0.1  0.5 531448 96240 ?        S    06:36   0:21
> /usr/sbin/apache2 -k start
> www-data 26921  0.1  0.6 542152 105976 ?       S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 26922  0.0  0.5 526024 82464 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 26923  0.0  0.5 524584 90632 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 26924  0.0  0.6 540708 99428 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 26925  0.1  0.5 536780 95872 ?        S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 26926  0.0  0.4 524756 77776 ?        S    06:36   0:08
> /usr/sbin/apache2 -k start
> www-data 26927  0.0  0.4 520352 80060 ?        S    06:36   0:10
> /usr/sbin/apache2 -k start
> www-data 26928  0.0  0.5 531528 97112 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 26929  0.0  0.5 532668 91860 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26930  0.0  0.7 556160 116284 ?       S    06:36   0:10
> /usr/sbin/apache2 -k start
> www-data 26931  0.1  0.4 522208 77116 ?        S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 26932  0.1  0.6 536508 101740 ?       S    06:36   0:25
> /usr/sbin/apache2 -k start
> www-data 26933  0.0  0.5 527408 84192 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 26934  0.0  0.5 536420 93424 ?        S    06:36   0:10
> /usr/sbin/apache2 -k start
> www-data 26935  0.0  0.6 538876 100112 ?       S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26936  0.0  0.4 525952 81880 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26937  0.0  0.4 522420 76936 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26938  0.0  0.4 520092 71724 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 26939  0.1  0.7 555572 121268 ?       S    06:36   0:18
> /usr/sbin/apache2 -k start
> www-data 26940  0.1  0.7 568736 123464 ?       S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 26941  0.0  0.7 558060 116840 ?       S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 26942  0.0  0.5 528900 94064 ?        S    06:36   0:08
> /usr/sbin/apache2 -k start
> www-data 26943  0.0  0.4 522884 80040 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26944  0.0  0.5 535836 93336 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 26945  0.1  0.4 526944 80564 ?        S    06:36   0:18
> /usr/sbin/apache2 -k start
> www-data 26946  0.1  0.5 536728 97784 ?        S    06:36   0:17
> /usr/sbin/apache2 -k start
> www-data 26947  0.1  0.5 538744 97380 ?        S    06:36   0:19
> /usr/sbin/apache2 -k start
> www-data 26948  0.0  0.4 526324 77244 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 26949  0.0  0.6 542460 106052 ?       S    06:36   0:10
> /usr/sbin/apache2 -k start
> www-data 26950  0.0  0.4 522028 78136 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 26951  0.0  0.5 536500 92496 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26952  0.1  0.4 531572 81156 ?        S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 26953  0.0  0.8 577768 134572 ?       S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26954  0.0  0.4 519476 65864 ?        S    06:36   0:07
> /usr/sbin/apache2 -k start
> www-data 26955  0.0  0.4 521836 69876 ?        S    06:36   0:07
> /usr/sbin/apache2 -k start
> www-data 26956  0.1  0.4 521500 80656 ?        S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 26957  0.1  0.6 545200 106808 ?       S    06:36   0:17
> /usr/sbin/apache2 -k start
> www-data 26958  0.0  0.5 524352 83780 ?        S    06:36   0:08
> /usr/sbin/apache2 -k start
> www-data 26959  0.0  0.5 523468 88020 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26960  0.0  0.5 534268 88396 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26961  0.0  0.7 574580 130332 ?       S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 26962  0.0  0.5 530728 86572 ?        S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 26963  0.0  0.5 530908 95472 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26964  0.1  0.6 549456 107764 ?       S    06:36   0:18
> /usr/sbin/apache2 -k start
> www-data 26965  0.1  0.6 536936 100896 ?       S    06:36   0:17
> /usr/sbin/apache2 -k start
> www-data 26966  0.0  0.5 524540 86120 ?        S    06:36   0:08
> /usr/sbin/apache2 -k start
> www-data 26967  0.0  0.4 523868 77980 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26968  0.0  0.6 547208 108608 ?       S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26969  0.1  0.4 520424 81960 ?        S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 26970  0.0  0.4 524584 78812 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 26971  0.0  0.5 522984 86940 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 26972  0.0  0.8 581384 132668 ?       S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26973  0.0  0.6 543788 111104 ?       S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26974  0.0  0.5 525672 84156 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 26975  0.0  0.4 525020 79384 ?        S    06:36   0:06
> /usr/sbin/apache2 -k start
> www-data 26976  0.1  0.5 533224 97164 ?        S    06:36   0:19
> /usr/sbin/apache2 -k start
> www-data 26977  0.0  0.5 531060 93784 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26978  0.0  0.7 567952 123064 ?       S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 26979  0.0  0.5 528988 86380 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 26980  0.1  0.5 535572 94256 ?        S    06:36   0:17
> /usr/sbin/apache2 -k start
> www-data 26981  0.1  0.4 522572 77576 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 26982  0.1  0.4 529240 81412 ?        S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 26983  0.0  0.4 520052 73052 ?        S    06:36   0:08
> /usr/sbin/apache2 -k start
> www-data 26984  0.1  0.5 527876 87960 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 26985  0.0  0.5 519816 83936 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 26986  0.1  0.5 528092 90224 ?        S    06:36   0:17
> /usr/sbin/apache2 -k start
> www-data 26987  0.1  0.5 531620 98228 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 26988  0.0  0.5 525164 84000 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 26989  0.1  0.6 532952 100068 ?       S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 26990  0.1  0.5 527420 83456 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 26991  0.0  0.5 539336 97424 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 26992  0.0  0.4 533300 80832 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 26993  0.0  0.4 523308 81388 ?        S    06:36   0:10
> /usr/sbin/apache2 -k start
> www-data 26994  0.0  0.5 531616 95952 ?        S    06:36   0:10
> /usr/sbin/apache2 -k start
> www-data 26995  0.1  0.5 523200 87804 ?        S    06:36   0:25
> /usr/sbin/apache2 -k start
> www-data 26996  0.1  0.6 538852 104932 ?       S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 26997  0.1  0.5 522432 84204 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 26998  0.1  0.7 557036 121100 ?       S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 26999  0.0  0.4 519648 69948 ?        S    06:36   0:04
> /usr/sbin/apache2 -k start
> www-data 27000  0.1  0.5 542584 94104 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 27001  0.1  0.5 530568 93648 ?        S    06:36   0:17
> /usr/sbin/apache2 -k start
> www-data 27002  0.1  0.6 556860 107728 ?       S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 27003  0.0  0.5 538228 94536 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27004  0.1  0.8 581208 137540 ?       S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 27005  0.0  0.5 530140 84508 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27006  0.0  0.8 586136 145720 ?       S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 27007  0.1  0.7 575788 131104 ?       S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 27008  0.1  0.5 533184 87128 ?        S    06:36   0:19
> /usr/sbin/apache2 -k start
> www-data 27009  0.0  0.6 551928 110940 ?       S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 27010  0.0  0.4 522324 77844 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27011  0.0  0.7 568524 127628 ?       S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 27012  0.0  0.6 535848 100020 ?       S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 27013  0.1  0.7 560752 121832 ?       S    06:36   0:18
> /usr/sbin/apache2 -k start
> www-data 27014  0.0  0.6 547328 103744 ?       S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 27015  0.0  0.5 532328 83036 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 27016  0.0  0.5 535192 91012 ?        S    06:36   0:07
> /usr/sbin/apache2 -k start
> www-data 27017  0.0  0.4 522176 77164 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27018  0.1  0.6 551396 112044 ?       S    06:36   0:18
> /usr/sbin/apache2 -k start
> www-data 27019  0.1  0.7 559700 119996 ?       S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 27020  0.0  0.4 524804 80604 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 27021  0.0  0.6 539416 101992 ?       S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 27022  0.0  0.4 525112 76924 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 27023  0.0  0.4 524548 76976 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 27024  0.0  0.4 528604 80356 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27025  0.0  0.4 520224 80616 ?        S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 27026  0.1  0.5 532060 92060 ?        S    06:36   0:21
> /usr/sbin/apache2 -k start
> www-data 27027  0.1  0.6 545352 109016 ?       S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 27028  0.1  0.5 538984 97816 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 27029  0.1  0.5 529892 86188 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 27030  0.1  0.6 540104 102212 ?       S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 27031  0.1  0.8 575016 137560 ?       S    06:36   0:19
> /usr/sbin/apache2 -k start
> www-data 27032  0.0  0.4 520308 81420 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 27033  0.1  0.5 537936 92944 ?        S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 27034  0.1  0.5 522704 89108 ?        S    06:36   0:22
> /usr/sbin/apache2 -k start
> www-data 27035  0.0  0.6 556492 111672 ?       S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27036  0.1  0.5 520440 86884 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 27037  0.0  0.4 520624 72276 ?        S    06:36   0:08
> /usr/sbin/apache2 -k start
> www-data 27038  0.1  0.5 530124 91796 ?        S    06:36   0:17
> /usr/sbin/apache2 -k start
> www-data 27039  0.1  0.5 520332 89796 ?        S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 27040  0.1  0.5 528156 95112 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 27041  0.0  0.5 533976 93888 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27042  0.1  0.6 537948 102620 ?       S    06:36   0:18
> /usr/sbin/apache2 -k start
> www-data 27043  0.0  0.4 522048 81096 ?        S    06:36   0:10
> /usr/sbin/apache2 -k start
> www-data 27044  0.1  0.5 530396 93288 ?        S    06:36   0:19
> /usr/sbin/apache2 -k start
> www-data 27045  0.0  0.5 531388 88804 ?        S    06:36   0:10
> /usr/sbin/apache2 -k start
> www-data 27046  0.0  0.4 521360 70844 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27047  0.0  0.5 535216 91672 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 27048  0.0  0.5 528040 88680 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 27049  0.0  0.5 538836 97572 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27050  0.0  0.5 522132 84728 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 27051  0.0  0.4 525956 76956 ?        S    06:36   0:05
> /usr/sbin/apache2 -k start
> www-data 27052  0.1  0.5 530108 87724 ?        S    06:36   0:17
> /usr/sbin/apache2 -k start
> www-data 27053  0.1  0.5 538632 95240 ?        S    06:36   0:18
> /usr/sbin/apache2 -k start
> www-data 27054  0.0  0.4 521788 79312 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27055  0.0  0.5 536316 82960 ?        S    06:36   0:07
> /usr/sbin/apache2 -k start
> www-data 27056  0.0  0.7 556240 124972 ?       S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 27057  0.1  0.6 550912 110344 ?       S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 27058  0.0  0.7 559472 115888 ?       S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 27059  0.0  0.5 534732 93712 ?        S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 27060  0.1  0.5 528764 84880 ?        S    06:36   0:17
> /usr/sbin/apache2 -k start
> www-data 27061  0.1  0.6 537024 102628 ?       S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 27062  0.0  0.4 524216 81064 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27063  0.0  0.5 531488 88208 ?        S    06:36   0:08
> /usr/sbin/apache2 -k start
> www-data 27064  0.0  0.7 565756 122960 ?       S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 27065  0.1  0.4 523656 81400 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 27066  0.1  0.5 538944 97656 ?        S    06:36   0:17
> /usr/sbin/apache2 -k start
> www-data 27067  0.1  0.5 536044 97820 ?        S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 27068  0.1  0.6 544248 100456 ?       S    06:36   0:20
> /usr/sbin/apache2 -k start
> www-data 27069  0.0  0.5 523808 87216 ?        S    06:36   0:10
> /usr/sbin/apache2 -k start
> www-data 27070  0.1  0.5 536608 96324 ?        S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 27071  0.0  0.5 528188 89908 ?        S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 27072  0.0  0.5 529380 85000 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27073  0.0  0.5 537376 88504 ?        S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 27074  0.0  0.4 523140 79232 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 27075  0.0  0.5 527100 88844 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 27076  0.1  0.5 525336 86228 ?        S    06:36   0:21
> /usr/sbin/apache2 -k start
> www-data 27077  0.0  0.4 521832 78072 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 27078  0.0  0.5 530812 86788 ?        S    06:36   0:13
> /usr/sbin/apache2 -k start
> www-data 27079  0.1  0.6 541220 103632 ?       S    06:36   0:18
> /usr/sbin/apache2 -k start
> www-data 27080  0.1  0.8 585308 146236 ?       S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 27081  0.0  0.5 523564 91084 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 27089  0.1  0.5 534692 93812 ?        S    06:36   0:15
> /usr/sbin/apache2 -k start
> www-data 27092  0.1  0.8 585228 143020 ?       S    06:36   0:16
> /usr/sbin/apache2 -k start
> www-data 27093  0.1  0.5 536568 92112 ?        S    06:36   0:17
> /usr/sbin/apache2 -k start
> www-data 27096  0.0  0.4 521912 71456 ?        S    06:36   0:08
> /usr/sbin/apache2 -k start
> www-data 27101  0.0  0.4 526092 78952 ?        S    06:36   0:11
> /usr/sbin/apache2 -k start
> www-data 27102  0.0  0.5 528516 92736 ?        S    06:36   0:14
> /usr/sbin/apache2 -k start
> www-data 27111  0.0  0.4 523792 74276 ?        S    06:36   0:04
> /usr/sbin/apache2 -k start
> www-data 27112  0.0  0.5 532540 94280 ?        S    06:36   0:09
> /usr/sbin/apache2 -k start
> www-data 27114  0.0  0.5 530608 91216 ?        S    06:36   0:12
> /usr/sbin/apache2 -k start
> www-data 27116  0.0  0.5 528664 87540 ?        S    06:36   0:10
> /usr/sbin/apache2 -k start
> www-data 28428  0.1  0.6 552568 101516 ?       S    07:08   0:13
> /usr/sbin/apache2 -k start
> www-data 28453  0.1  0.5 540024 96476 ?        S    07:08   0:14
> /usr/sbin/apache2 -k start
> www-data 28454  0.1  0.5 531336 94940 ?        S    07:08   0:15
> /usr/sbin/apache2 -k start
> www-data 28556  0.1  0.5 527256 87120 ?        S    07:09   0:13
> /usr/sbin/apache2 -k start
> www-data 28557  0.0  0.6 538428 100244 ?       S    07:09   0:12
> /usr/sbin/apache2 -k start
> www-data 28558  0.0  0.6 555736 110636 ?       S    07:09   0:11
> /usr/sbin/apache2 -k start
> www-data 28559  0.1  0.6 540892 99320 ?        S    07:09   0:17
> /usr/sbin/apache2 -k start
> www-data 28560  0.1  0.5 536812 98452 ?        S    07:09   0:16
> /usr/sbin/apache2 -k start
> www-data 28561  0.1  0.4 523224 81780 ?        S    07:09   0:21
> /usr/sbin/apache2 -k start
> www-data 28562  0.1  0.7 570844 127008 ?       S    07:09   0:20
> /usr/sbin/apache2 -k start
> www-data 28563  0.1  0.5 539044 98296 ?        S    07:09   0:14
> /usr/sbin/apache2 -k start
> www-data 28564  0.0  0.5 528376 85424 ?        S    07:09   0:10
> /usr/sbin/apache2 -k start
> www-data 28565  0.1  0.7 570392 129428 ?       S    07:09   0:21
> /usr/sbin/apache2 -k start
> www-data 28566  0.0  0.4 525804 80060 ?        S    07:09   0:05
> /usr/sbin/apache2 -k start
> www-data 28567  0.1  0.5 522436 86684 ?        S    07:09   0:17
> /usr/sbin/apache2 -k start
> www-data 28568  0.0  0.7 559216 116156 ?       S    07:09   0:11
> /usr/sbin/apache2 -k start
> www-data 28569  0.1  0.5 531404 94140 ?        S    07:09   0:14
> /usr/sbin/apache2 -k start
> www-data 28570  0.1  0.4 519344 74340 ?        S    07:09   0:15
> /usr/sbin/apache2 -k start
>
>
>
>
>
>
>
>
> An example of a very similar server with very similar apache configuration
> but with less domains (6). The average memory used are 27MB ...
>
>
> # ls /etc/apache2/sites-enabled/|grep -v ssl  |wc
>       6       6     148
>
> # ps aux|grep apache
> www-data   936  0.0  1.4 414692 14272 ?        S    10:55   0:00
> /usr/sbin/apache2 -k start
> www-data   937  0.1  2.1 423736 21900 ?        S    10:55   0:00
> /usr/sbin/apache2 -k start
> www-data   941  0.0  1.0 414328 10244 ?        S    10:55   0:00
> /usr/sbin/apache2 -k start
> www-data   943  0.0  2.8 500268 29376 ?        S    10:55   0:00
> /usr/sbin/apache2 -k start
> root     21633  0.0  3.1 414296 32304 ?        Ss   May04   1:46
> /usr/sbin/apache2 -k start
> www-data 28923  0.0  3.1 500432 31840 ?        S    06:30   0:00
> /usr/sbin/apache2 -k start
> www-data 28924  0.0  3.1 500392 32264 ?        S    06:30   0:00
> /usr/sbin/apache2 -k start
> www-data 28925  0.0  3.1 500412 31756 ?        S    06:30   0:00
> /usr/sbin/apache2 -k start
> www-data 28926  0.0  3.2 500324 33124 ?        S    06:30   0:00
> /usr/sbin/apache2 -k start
> www-data 29160  0.0  3.2 500456 33184 ?        S    06:41   0:00
> /usr/sbin/apache2 -k start
> www-data 29612  0.0  3.5 504596 35632 ?        S    06:47   0:00
> /usr/sbin/apache2 -k start
>
> # apache2 -M
> Loaded Modules:
>  core_module (static)
>  so_module (static)
>  watchdog_module (static)
>  http_module (static)
>  log_config_module (static)
>  logio_module (static)
>  version_module (static)
>  unixd_module (static)
>  access_compat_module (shared)
>  alias_module (shared)
>  auth_basic_module (shared)
>  authn_core_module (shared)
>  authn_file_module (shared)
>  authz_core_module (shared)
>  authz_host_module (shared)
>  authz_user_module (shared)
>  autoindex_module (shared)
>  deflate_module (shared)
>  dir_module (shared)
>  env_module (shared)
>  expires_module (shared)
>  filter_module (shared)
>  headers_module (shared)
>  mime_module (shared)
>  mpm_prefork_module (shared)
>  negotiation_module (shared)
>  php7_module (shared)
>  rewrite_module (shared)
>  setenvif_module (shared)
>  socache_shmcb_module (shared)
>  ssl_module (shared)
>  status_module (shared)
>
> # cat /etc/issue
> Ubuntu 16.04.6 LTS
>
> # apache2 -V
> Server version: Apache/2.4.18 (Ubuntu)
> Server built:   2019-10-08T13:31:25
> Server's Module Magic Number: 20120211:52
> Server loaded:  APR 1.5.2, APR-UTIL 1.5.4
> Compiled using: APR 1.5.2, APR-UTIL 1.5.4
> Architecture:   64-bit
> Server MPM:     prefork
>   threaded:     no
>     forked:     yes (variable process count)
> Server compiled with....
>  -D APR_HAS_SENDFILE
>  -D APR_HAS_MMAP
>  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
>  -D APR_USE_SYSVSEM_SERIALIZE
>  -D APR_USE_PTHREAD_SERIALIZE
>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  -D APR_HAS_OTHER_CHILD
>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>  -D DYNAMIC_MODULE_LIMIT=256
>  -D HTTPD_ROOT="/etc/apache2"
>  -D SUEXEC_BIN="/usr/lib/apache2/suexec"
>  -D DEFAULT_PIDLOG="/var/run/apache2.pid"
>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>  -D DEFAULT_ERRORLOG="logs/error_log"
>  -D AP_TYPES_CONFIG_FILE="mime.types"
>  -D SERVER_CONFIG_FILE="apache2.conf"
>
>
>
> Thank's
>
>
>
> --
>
> Marc Serra
>
> Organització i Sistemes
>
>
>
>
>
>
> [image: Image removed by sender.]
> *Manxa 1876, S.L. *
> * Ctra. Les Tries, 85. 17800 Olot (Girona)*
>
> *Tel. 972 27 45 30 Fax 972 27 45 32*
>
> [image: Image removed by sender.]* Manxa Industrial | *Coneix més aquí
> [manxaindustrial.com]
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.manxaindustrial.com&d=DwMFaQ&c=D7ByGjS34AllFgecYw0iC6Zq7qlm8uclZFI0SqQnqBo&r=oH2yp0ge1ecj4oDX0XM7vQ&m=pQV1jHPlxzfuw_p5Ktm7o3CMXrP4SHt4n6fHBEMjBmE&s=W_8rtt6biJEreQNQiP0DoY_5o1BRywVsaBL5EotCCsg&e=>
>
> [image: Image removed by sender.]* Manxa Ferros | *Coneix més aquí
> [manxaferros.com]
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.manxaferros.com_&d=DwMFaQ&c=D7ByGjS34AllFgecYw0iC6Zq7qlm8uclZFI0SqQnqBo&r=oH2yp0ge1ecj4oDX0XM7vQ&m=pQV1jHPlxzfuw_p5Ktm7o3CMXrP4SHt4n6fHBEMjBmE&s=rIN3hs76lA0diPQkpa_v5hyH-WDD0AXJfRBYgNNCVvU&e=>
>
> [image: Image removed by sender.]* Manxa Ferreteria i Parament de la Llar
> | *Coneix més aquí [manxabricolatge.com]
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.manxabricolatge.com&d=DwMFaQ&c=D7ByGjS34AllFgecYw0iC6Zq7qlm8uclZFI0SqQnqBo&r=oH2yp0ge1ecj4oDX0XM7vQ&m=pQV1jHPlxzfuw_p5Ktm7o3CMXrP4SHt4n6fHBEMjBmE&s=pHW3on4Q_mVEe_8wIOizSgj39TEvd7bW00XGqQ9vUyQ&e=>
>
>
>
> El contingut d’aquest correu electrònic i els seus annexos és estrictament
> confidencial. En el cas que no siguis el destinatari i hagis rebut aquest
> missatge per error, preguem que ho comuniquis al remitent i procedeixis a
> la seva eliminació, sense difondre, emmagatzemar o copiar el seu contingut.
> Imprimeix aquest correu només si és necessari.
>
> El contenido de este correo electrónico y sus anexos es estrictamente
> confidencial. En el caso de que no seas el destinatario y hayas recibido
> este mensaje por error, rogamos lo comuniques al remitente y procedas a su
> eliminación, sin difundir, almacenar o copiar su contenido. Imprimir este
> correo solo si es necesario.
>
> The content of this email and its attachments is strictly confidential. If
> you are not the recipient and you have received this message by mistake,
> please notify the sender and proceed to its elimination, without spreading,
> storing or copying its content. Print this email only if necessary.
>
> Le contenu de cet e-mail et de ses pièces jointes est strictement
> confidentiel. Dans le cas où vous n'êtes pas le destinataire et avez reçu
> ce message par erreur, veuillez en informer l'expéditeur et procéder à sa
> suppression, sans diffuser, stocker ou copier son contenu. Imprimez cet
> e-mail uniquement si nécessaire.
> -- The Wellcome Sanger Institute is operated by Genome Research Limited, a
> charity registered in England with number 1021457 and a company registered
> in England with number 2742969, whose registered office is 215 Euston Road,
> London, NW1 2BE.
>


-- 
Marc Serra
Organització i Sistemes

-- 

Manxa 
1876, S.L. *
Ctra. 
Les Tries, 85. 17800 Olot (Girona)**Tel. 972 27 
45 30 Fax 972 27 45 32*


* Manxa Industrial | *Coneix
més aquí 
<http://www.manxaindustrial.com>



* Manxa Ferros | *Coneix
més aquí 
<http://www.manxaferros.com/>



* Manxa Ferreteria i Parament de la Llar | 
*Coneix
més aquí <https://www.manxabricolatge.com>


**

-- 


El contingut d’aquest correu electrònic i els seus annexos és 
estrictament confidencial. En el cas que no siguis el destinatari i hagis 
rebut aquest missatge per error, preguem que ho comuniquis al remitent i 
procedeixis a la seva eliminació, sense difondre, emmagatzemar o copiar el 
seu contingut. Imprimeix aquest correu només si és necessari.

El contenido 
de este correo electrónico y sus anexos es estrictamente confidencial. En 
el caso de que no seas el destinatario y hayas recibido este mensaje por 
error, rogamos lo comuniques al remitente y procedas a su eliminación, sin 
difundir, almacenar o copiar su contenido. Imprimir este correo solo si es 
necesario.

The content of this email and its attachments is strictly 
confidential. If you are not the recipient and you have received this 
message by mistake, please notify the sender and proceed to its 
elimination, without spreading, storing or copying its content. Print this 
email only if necessary.

Le contenu de cet e-mail et de ses pièces jointes 
est strictement confidentiel. Dans le cas où vous n'êtes pas le 
destinataire et avez reçu ce message par erreur, veuillez en informer 
l'expéditeur et procéder à sa suppression, sans diffuser, stocker ou copier 
son contenu. Imprimez cet e-mail uniquement si nécessaire.

Reply via email to