Re: Why so much difference in memory used per process in apache2 between two different systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, May 17, 2021 at 1:34 PM Marc Serra <mserra@xxxxxxxxx> wrote:
>
> I have a pair of Ubuntu dedicated servers...
>
> Server1:
> Ubuntu 16.04.7 (64 bits)
> 16GB RAM
> 8 Xeon CPU
> Apache 2.4.18
> MPM mode: prefork
>
> Server2:
> Ubuntu server 20.04.2 (64 bits)
> 32GB RAM
> 8 Xeon CPU
> 2.4.41
> MPM mode: event

MPM prefork is single threaded, while MPM event uses multiple threads,
and each thread "consumes" 8MB of rss (for its stack) on a typical
linux system.
The default thread stack size can be changed with "ulimit -s" (or
LimitSTACK= on systemd), depending on the loaded modules and their
stack "consumption".
I usually run httpd with "ulimit -s 512" (KB) without issues, but this
needs testing in your environment (i.e. no crash)..

Regards;
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux